bugfix in MARC editor to deal with clonefield (+) that is an authority
authorPaul POULAIN <paul@koha-fr.org>
Tue, 30 Oct 2007 18:02:48 +0000 (13:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 31 Oct 2007 10:45:12 +0000 (05:45 -0500)
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>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl

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