From 33370ea55b34b234d8d0f05e84dd03dc5d4313aa Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 14 May 2024 11:41:57 +0200 Subject: [PATCH] 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 Signed-off-by: Pedro Amorim Signed-off-by: Katrin Fischer (cherry picked from commit 5080eecc2268c2b7b88856800e728041c2fc29ec) Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt index 741f0b48ce..c753c62f9f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -462,7 +462,7 @@
    [% FOREACH field IN catalog_details %]
  1. - + [% field.value | html %]
  2. [% END %] -- 2.39.5