From e7e66d4938427dd2e7d2be6f24c17bbb16bf7518 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 Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 05e49e6be98723f67ec85a5843fad1fc9787925f) Signed-off-by: Martin Renvoize (cherry picked from commit 8a501d6e6368d7e72e349bf9909d62acfff6dd49) Signed-off-by: Lucas Gass --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 c3dff27271..5d72403ddc 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -370,8 +370,11 @@ [% itemLoo.barcode %] [% UNLESS ( singleBranchMode ) %] - [% Branches.GetName( itemLoo.homeBranchName ) %] - [% Branches.GetName( itemLoo.holdingBranchName ) %] + [% Branches.GetName( itemLoo.homeBranchName ) | html %] + [% Branches.GetName( itemLoo.holdingBranchName ) | html %] + [% END %] + [% IF ( itemdata_ccode ) %] + [% IF ( itemLoo.ccode ) %][% AuthorisedValues.GetByCode( 'CCODE', itemLoo.ccode, 1 ) | html %][% END %] [% END %] [% itemLoo.callNumber %] [% IF ( itemdata_enumchron ) %] -- 2.39.5