@@ -, +, @@ In sql for 007: update marc_subfield_structure set value_builder='EXAMPLE.pl' where tagfield='007' and tagsubfield='@'; Check also that the plugin works on the value corresponding with the button you clicked. an SQL statement to update value_builder values for 007, 246$h and 269$c (UPDATE `marc_subfield_structure` SET value_builder = 'EXAMPLE.pl' WHERE frameworkcode = 'B213' AND ( (tagfield = '007' AND tagsubfield = '@') OR ( tagfield LIKE '246' AND tagsubfield = 'h') OR (tagfield = '260' AND tagsubfield = 'c')) plugin support in the cloned fields were noted. correctly cloned and found to be functional. --- koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js +++ a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js @@ -131,7 +131,8 @@ function CloneField(index, hideMarc, advancedMARCEditor) { } } if( $(inputs[1]).hasClass('framework_plugin') ) { - var oldcontrol= original.getElementsByTagName('input')[1]; + var olddiv= original.getElementsByTagName('div')[i]; + var oldcontrol= olddiv.getElementsByTagName('input')[1]; AddEventHandlers( oldcontrol,inputs[1],id_input ); } @@ -177,7 +178,8 @@ function CloneField(index, hideMarc, advancedMARCEditor) { // 2 possibilities : try{ if( $(buttonDot).hasClass('framework_plugin') ) { - var oldcontrol= original.getElementsByTagName('a')[0]; + var olddiv= original.getElementsByTagName('div')[i]; + var oldcontrol= olddiv.getElementsByTagName('a')[0]; AddEventHandlers(oldcontrol,buttonDot,id_input); } else { if(buttonDotOnClick.match('Dopop')) { // -2- It's a auth value --