View | Details | Raw Unified | Return to bug 31315
Collapse All | Expand All

(-)a/catalogue/moredetail.pl (-1 / +2 lines)
Lines 151-157 foreach my $item (@items){ Link Here
151
151
152
    my $item_info = $item->unblessed;
152
    my $item_info = $item->unblessed;
153
    $item_info->{object} = $item;
153
    $item_info->{object} = $item;
154
    $item_info->{itemtype} = $itemtypes->{$item->effective_itemtype};
154
    $item_info->{itype} = $itemtypes->{ $item->itype }->{'translated_description'} if exists $itemtypes->{ $item->itype };
155
    $item_info->{effective_itemtype} = $itemtypes->{$item->effective_itemtype};
155
    $item_info->{'ccode'}              = $ccodes->{ $item->ccode } if $ccodes && $item->ccode && exists $ccodes->{ $item->ccode };
156
    $item_info->{'ccode'}              = $ccodes->{ $item->ccode } if $ccodes && $item->ccode && exists $ccodes->{ $item->ccode };
156
    if ( defined $item->copynumber ) {
157
    if ( defined $item->copynumber ) {
157
        $item_info->{'displaycopy'} = 1;
158
        $item_info->{'displaycopy'} = 1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt (-2 / +1 lines)
Lines 89-95 Link Here
89
89
90
    [% FOREACH ITEM_DAT IN ITEM_DATA %]
90
    [% FOREACH ITEM_DAT IN ITEM_DATA %]
91
        [% SET not_for_loan = 0 %]
91
        [% SET not_for_loan = 0 %]
92
        [% IF ITEM_DAT.notforloan || ITEM_DAT.itemtype.notforloan %]
92
        [% IF ITEM_DAT.notforloan || ITEM_DAT.effective_itemtype.notforloan %]
93
            [% SET not_for_loan = 1 %]
93
            [% SET not_for_loan = 1 %]
94
            [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
94
            [% SET not_for_loan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.notforloan ) %]
95
        [% END %]
95
        [% END %]
96
- 

Return to bug 31315