(bug #3395) fix unimarc plugin 225$a
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
a9ecff3d98
commit
a3491250a3
1 changed files with 2 additions and 5 deletions
|
@ -78,16 +78,13 @@ sub plugin_javascript {
|
|||
var isbn_found = 0;
|
||||
var editor_found = 0;
|
||||
|
||||
var re1 = /'tag_010_subfield_a_.*'/;
|
||||
var re2 = /'tag_210_subfield_c_.*'/;
|
||||
|
||||
var inputs = document.getElementsByTagName('input');
|
||||
|
||||
for(var i=0 , len=inputs.length ; i \< len ; i++ ){
|
||||
if(inputs[i].id.match(re1)){
|
||||
if(inputs[i].id.match(/^tag_010_subfield_a_.*/)){
|
||||
isbn_found = inputs[i].value;
|
||||
}
|
||||
if(inputs[i].id.match(re2)){
|
||||
if(inputs[i].id.match(/^tag_210_subfield_c_.*/)){
|
||||
editor_found = inputs[i].value;
|
||||
}
|
||||
if(editor_found && isbn_found){
|
||||
|
|
Loading…
Reference in a new issue