Lines 169-175
if ( $code eq 'CHECKIN' ) {
Link Here
|
169 |
push @messages, { code => 'not_checked_in_yet', type => 'message' }; |
169 |
push @messages, { code => 'not_checked_in_yet', type => 'message' }; |
170 |
} |
170 |
} |
171 |
else { |
171 |
else { |
172 |
warn "No checkout"; |
172 |
push @messages, { code => 'no_checkout', type => 'alert' }; |
|
|
173 |
$letter_params = {}; |
173 |
} |
174 |
} |
174 |
} |
175 |
} |
175 |
elsif ( $code eq 'CHECKOUT' ) { |
176 |
elsif ( $code eq 'CHECKOUT' ) { |
Lines 193-199
elsif ( $code eq 'CHECKOUT' ) {
Link Here
|
193 |
push @messages, { code => 'not_checked_out_yet', type => 'message' }; |
194 |
push @messages, { code => 'not_checked_out_yet', type => 'message' }; |
194 |
} |
195 |
} |
195 |
else { |
196 |
else { |
196 |
warn "No item or no patron"; |
197 |
push @messages, { code => 'no_item_or_no_patron', type => 'alert' }; |
|
|
198 |
$letter_params = {}; |
197 |
} |
199 |
} |
198 |
} |
200 |
} |
199 |
elsif ( $code eq 'HOLD_SLIP' ) { |
201 |
elsif ( $code eq 'HOLD_SLIP' ) { |
Lines 212-222
elsif ( $code eq 'HOLD_SLIP' ) {
Link Here
|
212 |
}; |
214 |
}; |
213 |
} |
215 |
} |
214 |
else { |
216 |
else { |
215 |
warn "No hold placed by this patron on this bibliographic record."; |
217 |
push @messages, { code => 'no_hold', type => 'alert' }; |
|
|
218 |
$letter_params = {}; |
216 |
} |
219 |
} |
217 |
} |
220 |
} |
218 |
else { |
221 |
else { |
219 |
warn "Preview for letter code $code is not available"; |
|
|
220 |
push @messages, { type => 'alert', code => 'preview_not_available', letter_code => $code, }; |
222 |
push @messages, { type => 'alert', code => 'preview_not_available', letter_code => $code, }; |
221 |
} |
223 |
} |
222 |
|
224 |
|
223 |
- |
|
|