Bugzilla – Attachment 154556 Details for
Bug 34565
Label mismatch in MARC21 006 and 008 cataloging plugins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34565: Label mismatch in MARC21 006 and 008 cataloging plugins
Bug-34565-Label-mismatch-in-MARC21-006-and-008-cat.patch (text/plain), 2.20 KB, created by
Biblibre Sandboxes
on 2023-08-17 12:20:40 UTC
(
hide
)
Description:
Bug 34565: Label mismatch in MARC21 006 and 008 cataloging plugins
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2023-08-17 12:20:40 UTC
Size:
2.20 KB
patch
obsolete
>From da8c58d848d82a2ce9c7e4cfcea7b8f04f46f905 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <andrew.auld@ptfs-europe.com> >--- > 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 != "")?" <a href='" + nodePos.attributes.getNamedItem("url").nodeValue + "' target='_blank'>" + nodePos.getElementsByTagName('urltext')[0].textContent + "</a>":""; > } catch (e) { url = "";} >- td.innerHTML = "<label for='" + pos + "' title='" + title + "'>" + pos + " - " + name + url + "</label>"; >+ td.innerHTML = "<label for='f" + pos + "' title='" + title + "'>" + pos + " - " + name + url + "</label>"; > td = tr.insertCell(tr.cells.length); > value = returnValuePosFromResult(result, pos); > if ((index = pos.indexOf("-")) > 0) { // Position interval >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34565
:
154547
|
154556
|
154766