|
Lines 54-59
sub do_checkin {
Link Here
|
| 54 |
my $cv_triggers_alert = $account->{cv_triggers_alert}; |
54 |
my $cv_triggers_alert = $account->{cv_triggers_alert}; |
| 55 |
my $holds_block_checkin = $account->{holds_block_checkin}; |
55 |
my $holds_block_checkin = $account->{holds_block_checkin}; |
| 56 |
my $holds_get_captured = $account->{holds_get_captured} // 1; |
56 |
my $holds_get_captured = $account->{holds_get_captured} // 1; |
|
|
57 |
my @forbidden_notforloan_status = split(",",$account->{forbidden_notforloan_status}); |
| 57 |
|
58 |
|
| 58 |
if (!$branch) { |
59 |
if (!$branch) { |
| 59 |
$branch = 'SIP2'; |
60 |
$branch = 'SIP2'; |
|
Lines 108-113
sub do_checkin {
Link Here
|
| 108 |
$return = 1 unless keys %$messages; |
109 |
$return = 1 unless keys %$messages; |
| 109 |
} |
110 |
} |
| 110 |
|
111 |
|
|
|
112 |
if (@forbidden_notforloan_status) { |
| 113 |
my @results = grep { $_ == $item->notforloan } @forbidden_notforloan_status; |
| 114 |
if (@results) { |
| 115 |
my $notforloan_desc = |
| 116 |
Koha::AuthorisedValues->get_description_by_koha_field( |
| 117 |
{ |
| 118 |
kohafield => 'items.notforloan', |
| 119 |
authorised_value => $item->notforloan |
| 120 |
} |
| 121 |
); |
| 122 |
my $f_status = $item->notforloan; |
| 123 |
$f_status .= "-$notforloan_desc->{lib}" if $notforloan_desc->{lib}; |
| 124 |
$messages->{ForbiddenNotForLoanStatus} = $f_status; |
| 125 |
} |
| 126 |
} |
| 127 |
|
| 111 |
# biblionumber, biblioitemnumber, itemnumber |
128 |
# biblionumber, biblioitemnumber, itemnumber |
| 112 |
# borrowernumber, reservedate, branchcode |
129 |
# borrowernumber, reservedate, branchcode |
| 113 |
# cancellationdate, found, reservenotes, priority, timestamp |
130 |
# cancellationdate, found, reservenotes, priority, timestamp |
|
Lines 142-147
sub do_checkin {
Link Here
|
| 142 |
$self->{item}->destination_loc($item->homebranch); |
159 |
$self->{item}->destination_loc($item->homebranch); |
| 143 |
$self->alert_type('04'); # send to other branch |
160 |
$self->alert_type('04'); # send to other branch |
| 144 |
} |
161 |
} |
|
|
162 |
if ( $messages->{ForbiddenNotForLoanStatus} ) { |
| 163 |
$self->alert_type('99'); |
| 164 |
} |
| 145 |
if ($messages->{ResFound} || $checkin_blocked_by_holds ) { |
165 |
if ($messages->{ResFound} || $checkin_blocked_by_holds ) { |
| 146 |
if ($checkin_blocked_by_holds) { |
166 |
if ($checkin_blocked_by_holds) { |
| 147 |
$self->alert_type('99'); |
167 |
$self->alert_type('99'); |
| 148 |
- |
|
|