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

(-)a/Koha/Item.pm (+13 lines)
Lines 1733-1738 sub itemtype { Link Here
1733
    return Koha::ItemTypes->find( $self->effective_itemtype );
1733
    return Koha::ItemTypes->find( $self->effective_itemtype );
1734
}
1734
}
1735
1735
1736
=head3 not_for_loan
1737
1738
  my $nfl = $item->not_for_loan;
1739
1740
Returns the effective not for loan status of the item
1741
1742
=cut
1743
1744
sub not_for_loan {
1745
    my ($self) = @_;
1746
    return $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
1747
}
1748
1736
=head3 orders
1749
=head3 orders
1737
1750
1738
  my $orders = $item->orders();
1751
  my $orders = $item->orders();
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/item-status.inc (-4 / +2 lines)
Lines 43-52 Link Here
43
    [% END %]
43
    [% END %]
44
[% END %]
44
[% END %]
45
45
46
[% IF ( item.notforloan || item.effective_itemtype.notforloan ) %]
46
[% IF ( item.not_for_loan ) %]
47
    [% SET itemavailable = 0 %]
47
    [% SET itemavailable = 0 %]
48
    [% SET notforloan = item.notforloan || item.effective_itemtype.notforloan %]
48
    [% notforloan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => item.not_for_loan ) %]
49
    [% notforloan_description = AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => notforloan ) %]
50
    [% IF notforloan_description %]
49
    [% IF notforloan_description %]
51
        <span class="item-status notforloan">[% notforloan_description | html %]</span>
50
        <span class="item-status notforloan">[% notforloan_description | html %]</span>
52
    [% ELSE %]
51
    [% ELSE %]
53
- 

Return to bug 28762