Bug 28693

Summary: Main heading box not populated in search authorities from bibliographic record
Product: Koha Reporter: Bernard <bernard.scaife>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, m.de.rooy, mvsonmez
Version: 20.11   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27737
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Bernard 2021-07-08 15:00:41 UTC
Workflow (on 20.11.05)
1. Add 610 values of 
a Great Britain. 
b Parliament 
x Rules and practice 
in order to edit catalogue record

2. Click gadget for authority search

3. Observe only "search main heading ($a only):" box is populated (Great Britain) but not "Search main heading:" box (which should contain Parliament Rules and practice)

This means you get loads of results when you click search as it just searches for Great Britain. This makes it difficult to find navigate to the authority record you need.

NB/ In 19.11.04 both boxes are populated.
Comment 1 Volkan Sonmez 2021-07-09 11:38:09 UTC
In

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/js/cataloging.js
file, replace

var inputs = element.parentNode.parentNode.getElementsByTagName("input");

line with,

var inputs = element.parentNode.parentNode.parentNode.getElementsByTagName("input");

line and in

/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/authorities/authorities.tt

file replace,

<a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>

line with,

<a href="#" class="buttonDot tag_editor" onclick="openAuth(this.parentNode.parentNode.parentNode.getElementsByTagName('input')[1].id,'[%- mv.authtypecode | html -%]','auth'); return false;" tabindex="1" title="Tag editor">Tag editor</a>

It should work as expected.
Comment 2 Bernard 2021-07-14 09:01:22 UTC
Thanks. This has worked for me!
Comment 3 Fridolin Somers 2022-01-06 20:28:15 UTC
Seems linked to Bug 27737
I can't reproduce the bug with Koha 20.11.12
Is it still valid ?
Comment 4 Katrin Fischer 2022-01-08 22:10:48 UTC
I believe this is a duplicate of bug 28812, fixed in: 
21.11.00,21.05.04,20.11.10

*** This bug has been marked as a duplicate of bug 28812 ***