Lines 92-98
sub new {
Link Here
|
92 |
|
92 |
|
93 |
my $it = C4::Context->preference('item-level_itypes') ? $item->{itype} : $item->{itemtype}; |
93 |
my $it = C4::Context->preference('item-level_itypes') ? $item->{itype} : $item->{itemtype}; |
94 |
my $itemtype = Koha::Database->new()->schema()->resultset('Itemtype')->find( $it ); |
94 |
my $itemtype = Koha::Database->new()->schema()->resultset('Itemtype')->find( $it ); |
95 |
$item->{sip_media_type} = $itemtype->sip_media_type() if $itemtype; |
95 |
if ($itemtype) { |
|
|
96 |
$item->{sip_media_type} = $itemtype->sip_media_type(); |
97 |
$item->{fee} = $itemtype->rentalcharge(); |
98 |
} |
96 |
|
99 |
|
97 |
# check if its on issue and if so get the borrower |
100 |
# check if its on issue and if so get the borrower |
98 |
my $issue = GetItemIssue($item->{'itemnumber'}); |
101 |
my $issue = GetItemIssue($item->{'itemnumber'}); |
99 |
- |
|
|