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:
parent
9a954f7263
commit
7a882cff07
1 changed files with 1 additions and 2 deletions
|
@ -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 = /,.*\)/;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue