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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 29 May 2024 13:44:40 +0000 (15:44 +0200)
commit33370ea55b34b234d8d0f05e84dd03dc5d4313aa
tree35124d8948cf9325112b7d9cfe1211753a984d53
parent172981c95e6d0d8f7acd119f30e3cddb1d9cea83
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>
(cherry picked from commit 5080eecc2268c2b7b88856800e728041c2fc29ec)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt