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

(-)a/Koha/Item.pm (+13 lines)
Lines 1832-1837 sub item_type { Link Here
1832
    return shift->itemtype;
1832
    return shift->itemtype;
1833
}
1833
}
1834
1834
1835
=head3 not_for_loan
1836
1837
  my $nfl = $item->not_for_loan;
1838
1839
Returns the effective not for loan status of the item
1840
1841
=cut
1842
1843
sub not_for_loan {
1844
    my ($self) = @_;
1845
    return $self->notforloan ? $self->notforloan : $self->itemtype->notforloan;
1846
}
1847
1835
=head3 orders
1848
=head3 orders
1836
1849
1837
  my $orders = $item->orders();
1850
  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