@@ -, +, @@ of database code --- catalogue/moredetail.pl | 3 ++- .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/catalogue/moredetail.pl +++ a/catalogue/moredetail.pl @@ -151,7 +151,8 @@ foreach my $item (@items){ my $item_info = $item->unblessed; $item_info->{object} = $item; - $item_info->{itemtype} = $itemtypes->{$item->effective_itemtype}; + $item_info->{itype} = $itemtypes->{ $item->itype }->{'translated_description'} if exists $itemtypes->{ $item->itype }; + $item_info->{effective_itemtype} = $itemtypes->{$item->effective_itemtype}; $item_info->{'ccode'} = $ccodes->{ $item->ccode } if $ccodes && $item->ccode && exists $ccodes->{ $item->ccode }; if ( defined $item->copynumber ) { $item_info->{'displaycopy'} = 1; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -89,7 +89,7 @@ [% FOREACH ITEM_DAT IN ITEM_DATA %] [% SET not_for_loan = 0 %] - [% IF ITEM_DAT.notforloan || ITEM_DAT.itemtype.notforloan %] + [% 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 %] --