(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: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Nahuel ANGELINETTI 2009-07-10 12:16:18 +02:00 committed by Henri-Damien LAURENT
parent 4183dd0a11
commit 8a6fe3afd8
1 changed files with 3 additions and 3 deletions

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 -->