|
Lines 269-275
if ($barcode) {
Link Here
|
| 269 |
# Check if we should display a checkin message, based on the the item |
269 |
# Check if we should display a checkin message, based on the the item |
| 270 |
# type of the checked in item |
270 |
# type of the checked in item |
| 271 |
my $itemtype = Koha::ItemTypes->find( $biblio->{'itemtype'} ); |
271 |
my $itemtype = Koha::ItemTypes->find( $biblio->{'itemtype'} ); |
| 272 |
if ($itemtype->checkinmsgtype eq 'question' && $accept != '1' && $accept !='2'){ |
272 |
if (($itemtype->checkinmsgtype eq 'question' && $accept != '1' && $accept !='2')||$itemtype->checkinmsgtype ne 'question'){ |
| 273 |
if ( $itemtype && $itemtype->checkinmsg ) { |
273 |
if ( $itemtype && $itemtype->checkinmsg ) { |
| 274 |
$template->param( |
274 |
$template->param( |
| 275 |
checkinmsg => $itemtype->checkinmsg, |
275 |
checkinmsg => $itemtype->checkinmsg, |
|
Lines 278-283
if ($barcode) {
Link Here
|
| 278 |
); |
278 |
); |
| 279 |
} |
279 |
} |
| 280 |
} |
280 |
} |
|
|
281 |
elsif($itemtype->checkinmsgtype eq 'question' && $accept == '2'){ |
| 282 |
$template->param( |
| 283 |
checkinmsgtype => "rejected", |
| 284 |
); |
| 285 |
} |
| 281 |
|
286 |
|
| 282 |
# make sure return branch respects home branch circulation rules, default to homebranch |
287 |
# make sure return branch respects home branch circulation rules, default to homebranch |
| 283 |
my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype ? $itemtype->itemtype : undef )->{'returnbranch'} || "homebranch"; |
288 |
my $hbr = GetBranchItemRule($biblio->{'homebranch'}, $itemtype ? $itemtype->itemtype : undef )->{'returnbranch'} || "homebranch"; |