Lines 266-272
if ($barcode) {
Link Here
|
266 |
# Check if we should display a checkin message, based on the the item |
266 |
# Check if we should display a checkin message, based on the the item |
267 |
# type of the checked in item |
267 |
# type of the checked in item |
268 |
my $itemtype = Koha::ItemTypes->find( $biblio->{'itemtype'} ); |
268 |
my $itemtype = Koha::ItemTypes->find( $biblio->{'itemtype'} ); |
269 |
if ( $itemtype->checkinmsg ) { |
269 |
if ( $itemtype && $itemtype->checkinmsg ) { |
270 |
$template->param( |
270 |
$template->param( |
271 |
checkinmsg => $itemtype->checkinmsg, |
271 |
checkinmsg => $itemtype->checkinmsg, |
272 |
checkinmsgtype => $itemtype->checkinmsgtype, |
272 |
checkinmsgtype => $itemtype->checkinmsgtype, |
Lines 274-280
if ($barcode) {
Link Here
|
274 |
} |
274 |
} |
275 |
|
275 |
|
276 |
# make sure return branch respects home branch circulation rules, default to homebranch |
276 |
# make sure return branch respects home branch circulation rules, default to homebranch |
277 |
my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype->itemtype)->{'returnbranch'} || "homebranch"; |
277 |
my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype ? $itemtype->itemtype : undef )->{'returnbranch'} || "homebranch"; |
278 |
my $returnbranch = $biblio->{$hbr} ; |
278 |
my $returnbranch = $biblio->{$hbr} ; |
279 |
|
279 |
|
280 |
$template->param( |
280 |
$template->param( |
281 |
- |
|
|