diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 4397f44e8d..82dcd6697a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -137,6 +137,11 @@ [% FOREACH ITEM_DAT IN ITEM_DATA %]
+ [% SET not_for_loan = 0 %] + [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] + [% SET not_for_loan = 1 %] + [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => ITEM_DAT.notforloan ) %] + [% END %]

[% IF ITEM_DAT.barcode -%] @@ -144,14 +149,9 @@ [% ELSE -%] Item number [% ITEM_DAT.itemnumber | html %] [% END %] - [% IF not_for_loan %][% not_for_loan_description | html %][% END %] + [% IF not_for_loan %]([% not_for_loan_description | html %])[% END %]

- [% SET not_for_loan = 0 %] - [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %] - [% SET not_for_loan = 1 %] - [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %] - [% END %] [% IF withdraw_error %]
[% IF withdraw_error == 'intransit_cannot_withdraw' %]