From 00a6995c2eda4b8ecae568517b766dddc66a459f Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 2 Apr 2019 09:57:35 +0200 Subject: [PATCH] Bug 22620: OPAC description for CCODE in opac-reserve.tt Bug 20450 added CCODE to opac-reserve.tt using AuthorisedValues TT plugin. This patch changes the plugin call so that it requests OPAC description. Test plan : 1) Define a CCODE with staff and OPAC descriptions 2) Apply this collection on an item 3) At OPAC, place an hold on this item 4) Verify the collection display correctly OPAC description and not staff description --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 75d206f231..d643c80f9a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -382,7 +382,7 @@ [% Branches.GetName( itemLoo.holdingBranchName ) | html %] [% END %] [% IF ( itemdata_ccode ) %] - [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemLoo.ccode ) | html %][% END %] + [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemLoo.ccode, 1 ) | html %][% END %] [% END %] [% itemLoo.callNumber | html %] [% IF ( itemdata_enumchron ) %] -- 2.17.1