From 9bbf90969304943210e24dcd69422c9fe7d28303 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 25 Sep 2020 16:53:52 +0100 Subject: [PATCH] Bug 26323: (follow-up) Add new cases introduced Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../prog/en/modules/circ/branchtransfers.tt | 2 +- .../prog/en/modules/course_reserves/course-details.tt | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt index 2a31499d7c..c9ba832d7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt @@ -127,7 +127,7 @@ [% IF ( Koha.Preference('BranchTransferLimitsType') == 'itemtype' ) %]
  • Item type: [% ItemTypes.GetDescription( errmsgloo.code ) | html %]
  • [% ELSE %] -
  • Collection: [% AuthorisedValues.GetByCode( 'CCODE', errmsgloo.code ) | html %]
  • +
  • Collection: [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', errmsgloo.code ) | html %]
  • [% END %]
  • Originating library: [% Branches.GetName( errmsgloo.fbr ) | html %]
  • Destination library: [% Branches.GetName( errmsgloo.tbr ) | html %]
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index 7e0b054387..32b33b6ba4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -125,20 +125,20 @@ [% IF cr.course_item.ccode_enabled %] [% IF cr.course_item.enabled == 'yes' %] - [% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) | html %] + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorized_value => cr.item.ccode ) | html %] [% IF cr.item.ccode %] - ([% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode_storage ) | html %]) + ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', cr.course_item.ccode_storage ) | html %]) [% END %] [% ELSE %] - [% AuthorisedValues.GetByCode( 'CCODE', cr.course_item.ccode ) | html %] + [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', cr.course_item.ccode ) | html %] [% IF cr.item.ccode %] - ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) | html %]) + ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', cr.item.ccode ) | html %]) [% END %] [% END %] [% ELSE %] Unchanged [% IF cr.item.ccode %] - ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) | html %]) + ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', cr.item.ccode ) | html %]) [% END %] [% END %] -- 2.39.5