From 04226824dfa35eae72ab3dd1427211297b07236e Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Wed, 17 Jul 2013 16:01:49 +0200 Subject: [PATCH 3/3] Bug 7706 - Show image in item lost status If lostimageurl is defined, use it and do not show the lost text. This is the behavior existing before Bug 4173 changed item-status.inc. --- koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc index 98fdb38..9a83e3f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc @@ -14,12 +14,12 @@ [% ELSIF ( item.wthdrawn ) %] Item withdrawn [% ELSIF ( item.itemlost ) %] - [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] - [% IF ( av_lib_include ) %] - [% av_lib_include %] + [% IF ( item.lostimageurl ) %] + [% item.lostimagelabel %] [% ELSE %] - [% IF ( item.lostimageurl ) %] - [% item.lostimagelabel %] + [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] + [% IF ( av_lib_include ) %] + [% av_lib_include %] [% ELSE %] Item lost [% END %] -- 1.7.10.4