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 5080eecc22)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 33370ea55b)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Fridolin Somers 2024-05-14 11:41:57 +02:00 committed by Lucas Gass
parent e16fea9ec5
commit d2bb68a9d5
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@
<ol>
[% FOREACH field IN catalog_details %]
<li class="subfield_line">
<label>[% field.lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
<label>[% field.marc_lib | html %] ([% field.tag | html %][% field.subfield | html %])</label>
[% field.value | html %]
</li>
[% END %]