bugfix in MARC editor to deal with clonefield (+) that is an authority

the ... were not pointing to the duplicated entry but to the 1st one

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Paul POULAIN 2007-10-30 13:02:48 -05:00 committed by Joshua Ferraro
parent 9a954f7263
commit 7a882cff07

View file

@ -225,7 +225,7 @@ function CloneField(index) {
// button ... // button ...
var spans=0; var spans=0;
try { try {
spans = divs[i].getElementsByTagName('span'); spans = divs[i].getElementsByTagName('a');
} catch(e) { } catch(e) {
// no spans // no spans
} }
@ -245,7 +245,6 @@ function CloneField(index) {
} }
} else { } else {
if(buttonDotOnClick.match('Dopop')) { // -2- It's a auth value if(buttonDotOnClick.match('Dopop')) { // -2- It's a auth value
var re1 = /&index=.*',/; var re1 = /&index=.*',/;
var re2 = /,.*\)/; var re2 = /,.*\)/;