Koha/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing
Nick Clemens 2f2e4ecb25 Bug 28828: Fix unimarc_field_4XX.tt and marc21_linking_section.tt value builders
Find closest ul for value builders.

Since Bug 22399 changes in biblio editor, value builder unimarc_field_4XX.tt JavaScript
code does not do its job anymore.
This is because a div is added and this call is now wrong:
  var subfields = whichfield.parentNode.parentNode.getElementsByTagName('input');

Test plan 1:
1) Use a UNIMARC DB
2) Define value builder unimarc_field_4XX on 463$t
3) Create a record B1 with 200$a, 200$f
4) Create a new record B2
5) Click on value builder in 463$t
6) Search for record B1
7) Click on "Choose"
=> Without patch only 463$t is filled with a value
=> With patch 463 $t, $a, $0 and $9 are filled with a value

Test plan 2:
1) Use a MARC_21 DB
2) Define plugin marc21_linking_section.pl on 773$t
3) Make sure 773$t and other subfields are visible in intranet/editor
4) Create a new record in basic cataloging editor
5) Click on value builder in 773$t
6) Search fro a record
7) Click on "Choose"
=> Without patch fields are not fileld
=> With patch subfields are correctly filled

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-08-11 12:53:54 +02:00
..
value_builder Bug 28828: Fix unimarc_field_4XX.tt and marc21_linking_section.tt value builders 2021-08-11 12:53:54 +02:00
addbiblio.tt Bug 26703: cataloguing folder 2021-04-21 11:16:33 +02:00
addbooks.tt Bug 28543: Clicking on 'New record' will use default framework 2021-07-26 12:46:32 +02:00
additem.tt Bug 28611: Fix width to 50% for additem form elements 2021-07-06 10:18:52 +02:00
editor.tt Bug 26703: cataloguing folder 2021-04-21 11:16:33 +02:00
linkitem.tt Bug 26703: cataloguing folder 2021-04-21 11:16:33 +02:00
merge.tt Bug 26703: cataloguing folder 2021-04-21 11:16:33 +02:00
moveitem.tt Bug 26703: cataloguing folder 2021-04-21 11:16:33 +02:00
z3950_auth_search.tt Bug 28773: (QA follow-up) Additional changes 2021-08-04 14:06:43 +02:00
z3950_search.tt Bug 28773: (QA follow-up) Additional changes 2021-08-04 14:06:43 +02:00