(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:
parent
fb11e453b1
commit
1bbc0324c4
1 changed files with 3 additions and 3 deletions
|
@ -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 -->
|
||||
|
|
Loading…
Reference in a new issue