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

(-)a/Koha/Item.pm (+13 lines)
Lines 1699-1704 sub itemtype { Link Here
1699
    return Koha::ItemTypes->find( $self->effective_itemtype );
1699
    return Koha::ItemTypes->find( $self->effective_itemtype );
1700
}
1700
}
1701
1701
1702
=head3 not_for_loan
1703
1704
  my $nfl = $item->not_for_loan;
1705
1706
Returns the effective not for loan status of the item
1707
1708
=cut
1709
1710
sub not_for_loan {
1711
    my ($self) = @_;
1712
    return $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
1713
}
1714
1702
=head3 orders
1715
=head3 orders
1703
1716
1704
  my $orders = $item->orders();
1717
  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