[Koha-bugs] [Bug 28812] New: Authority tag editor only copy $a
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Aug 4 16:51:42 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28812
Bug ID: 28812
Summary: Authority tag editor only copy $a
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Cataloging
Assignee: koha-bugs at lists.koha-community.org
Reporter: didier.gautheron at biblibre.com
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at rijksmuseum.nl
Depends on: 7882
Steps to reproduce:
1- Create a notice with a 700$a and 700$d
2- Click on Tag Editor
3- Only 700$a is copied
Expect result:
same as 19.11 all other subfields should be copied.
There's now one more level in HTML tree and
koha-tmpl/intranet-tmpl/prog/js/cataloging.js:openAuth() selects the wrong
node.
To check: still working in
authorities/authorities.pl
====
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<inputs.length;myindex++){
if (inputs[myindex].name && inputs[myindex].name.match(tagsubfield)){
var subfieldcode=getSubfieldCode(inputs[myindex].name);
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7882
[Bug 7882] Add ability to move and reorder fields and subfields in MARC editor
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list