(bug #3411) escape authorities values

The values are not escaped in javascript, so if there is double quotes, the authority cannot be imported because of javascript error. This patch fix this.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Nahuel ANGELINETTI 2009-08-26 01:44:28 +02:00 committed by Henri-Damien LAURENT
parent fb11e453b1
commit 1bbc0324c4

View file

@ -24,12 +24,12 @@
if (subfield){subfield.value="" ;}
<!--TMPL_ELSE-->
if(code.value=='9'){
subfield.value = "<!-- TMPL_VAR NAME="authid" -->";
subfield.value = "<!-- TMPL_VAR ESCAPE="JS" NAME="authid" -->";
}
<!-- TMPL_LOOP NAME="0XX" -->
<!-- TMPL_LOOP NAME="subfield" -->
if (code.value == "<!-- TMPL_VAR NAME="marc_subfield" -->"){
subfield.value = "<!-- TMPL_VAR NAME="marc_value" -->";
if (code.value == "<!-- TMPL_VAR ESCAPE="JS" NAME="marc_subfield" -->"){
subfield.value = "<!-- TMPL_VAR ESCAPE="JS" NAME="marc_value" -->";
}
<!-- /TMPL_LOOP -->
<!-- /TMPL_LOOP -->