From 4b88e53ffcd3f3631833177bfc7c9eaa3916d89c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 17 Aug 2023 11:37:30 +0000 Subject: [PATCH] Bug 34565: Label mismatch in MARC21 006 and 008 cataloging plugins This patch modifies the JS which builds the table of options for populating MARC21 fields 006 and 008 when using the cataloging plugin. To test, apply the patch and go to Cataloging -> New record. - Click the plugin trigger link next to the 006 input field (you may need to click the tag to expand it. - In the table of input fields, test that clicking the label, e.g. "Type of material", "00 - Form of material," etc, moves focus to the corresponding form field. - Perform the same test on the plugin-popup for field 008. Signed-off-by: Andrew Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit fb48155cc4bdb17935c7d3cd4bdd4e74695d3948) Signed-off-by: Fridolin Somers (cherry picked from commit ae8937fb8d4b545309b2ecf02281f7264c644dde) Signed-off-by: Matt Blenkinsop --- koha-tmpl/intranet-tmpl/prog/js/xmlControlfield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/xmlControlfield.js b/koha-tmpl/intranet-tmpl/prog/js/xmlControlfield.js index 25acae56fa..052cb9f39f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/xmlControlfield.js +++ b/koha-tmpl/intranet-tmpl/prog/js/xmlControlfield.js @@ -307,7 +307,7 @@ function changeH4Result(form, h4_result, tr_result, pos, value) try { url = ((nodePos.getAttributeNode("url") || nodePos.hasAttribute("url")) && nodePos.getAttribute("url") != "" && nodePos.getElementsByTagName('urltext')[0].textContent != "")?" " + nodePos.getElementsByTagName('urltext')[0].textContent + "":""; } catch (e) { url = "";} - td.innerHTML = ""; + td.innerHTML = ""; td = tr.insertCell(tr.cells.length); value = returnValuePosFromResult(result, pos); if ((index = pos.indexOf("-")) > 0) { // Position interval -- 2.20.1