@@ -, +, @@ "advancedMARCeditor" is set to "Display". this tag" button near the MARC tag record to ensure that it makes duplicate in the interface as expected. "advancedMARCeditor" to "Don't display". have no MARC field labels displayed, and try duplicating the tag again. "Cannot read property "setAttribute" of undefined..." in the JavaScript console of your browser. the tag gets duplicated even when description labels are not present. --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -230,8 +230,13 @@ function CloneField(index, hideMarc, advancedMARCEditor) { } } // when cloning a subfield, re set its label too. - var labels = divs[i].getElementsByTagName('label'); - labels[0].setAttribute('for', id_input); + try { + var labels = divs[i].getElementsByTagName('label'); + labels[0].setAttribute('for', id_input); + } + catch(e) { + // do nothing if label does not exist. + } // setting its '+' and '-' buttons try { --