@@ -, +, @@ available when it is checked out --- .../bootstrap/en/includes/item-status.inc | 24 ++++++++++---------- .../bootstrap/en/modules/opac-course-details.tt | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc @@ -1,6 +1,17 @@ [% USE KohaAuthorisedValues %] -[% IF ( item.datedue ) %] +[% IF ( item.itemlost ) %] + [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] + [% IF ( av_lib_include ) %] + [% av_lib_include %] + [% ELSE %] + [% IF ( item.lostimageurl ) %] + [% item.lostimagelabel %] + [% ELSE %] + Item lost + [% END %] + [% END %] +[% ELSIF ( item.datedue || issue.date_due ) %] [% IF ( OPACShowCheckoutName ) %] Checked out to [% item.cardnumber %] [% item.firstname %] [% item.surname %] [% ELSE %] @@ -13,17 +24,6 @@ On hold [% ELSIF ( item.withdrawn ) %] Item withdrawn -[% ELSIF ( item.itemlost ) %] - [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] - [% IF ( av_lib_include ) %] - [% av_lib_include %] - [% ELSE %] - [% IF ( item.lostimageurl ) %] - [% item.lostimagelabel %] - [% ELSE %] - Item lost - [% END %] - [% END %] [% ELSIF ( item.itemnotforloan ) %] [% IF ( item.notforloanvalueopac ) %] [% item.notforloanvalueopac %] [% IF ( item.restrictedopac ) %]([% item.restrictedopac %])[% END %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt @@ -67,7 +67,7 @@ [% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %] [% cr.item.itemcallnumber %] [% cr.item.copynumber %] - [% INCLUDE 'item-status.inc' item = cr.item %] + [% INCLUDE 'item-status.inc' item=cr.item issue=cr.issue %] [% cr.issue.date_due | $KohaDates %] [% cr.public_note %] --