Bug 36856: Fix MARC subfield name in new order from existing bibliographic record
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 14 May 2024 09:41:57 +0000 (11:41 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Tue, 21 May 2024 11:39:50 +0000 (13:39 +0200)
commit5080eecc2268c2b7b88856800e728041c2fc29ec
tree2dc64bd9c3ff0c9a844d42aabb98149706faac7c
parent3b9a43ec5a5ce24865f93a345215858b74348b2b
Bug 36856: Fix MARC subfield name in new order from existing bibliographic record

In form of the bibliographic details when adding an order 'From an existing record' in a basket, the marc subfield name is not shown.
The template calls [% field.lib | html %] but this comes from Koha::UI::Form::Builder::Biblio generate_subfield_form() which gives 'marc_lib'.

Test plan:
1) Be sure to have an ACQ biblio framework
2) Enable system preference UseACQFrameworkForBiblioRecords
3) Go to an acquisition basket
4) Add a term in 'From an existing record' and submit
5) On first result click on 'Add order'
6) Look at 'Catalog details'
=> Without patch you only see subfield tag and letter : (123a)
=> With patch you also see subfield name : Name (123a)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt