From 79ab54cc5a4faebd8b23a342024e5d3ad477e645 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Thu, 26 Aug 2021 15:27:45 +0200 Subject: [PATCH] Bug 28812: (bug 7882 follow up) Copy all subfields in plugin editor To test: 1- Create a notice with a 700$a and 700$d 2- Click on 700 $a field Tag Editor 3- Only 700$a is copied in search windows eg /authorities/auth_finder.pl pop up 4- Apply patch 5- Redo 2 6- 700$a is copied in 'Search main heading ($a only)' and $d is copied in 'Search main heading' Signed-off-by: George Veranis Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit d35efbd1fbfd19f6fe4b3e5a924fe0c95cb4da13) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index f126c86de2..35cbe499ae 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -43,8 +43,8 @@ function openAuth(tagsubfieldid,authtype,source) { var elementsubfcode=getSubfieldCode(element.name); var mainmainstring=element.value; var mainstring = new Array(); - var inputs = element.parentNode.parentNode.getElementsByTagName("input"); + var inputs = element.parentNode.parentNode.parentNode.getElementsByTagName("input"); for (var myindex =0; myindex