Skip to content

Commit

Permalink
MsgType: always generate 101 returns
Browse files Browse the repository at this point in the history
Do not generate the 100 return for books not on loan but always
generate a 101, return ok instead. This is simply as EasyCheck will
otherwise desensitize the chips as it does not understand 100.

Addresses #5
  • Loading branch information
aw-bib committed Nov 22, 2018
1 parent fa9f039 commit 6a329a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sip/MsgType.pm
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,11 @@ sub handle_checkin {
$patron = $status->patron;
$item = $status->item;

$resp .= $status->ok ? '1' : '0';
# $resp .= $status->ok ? '1' : '0';
# Always return "OK" as EasyCheck will desensitize all chips
# otherwise. (It throws an error as it does not understand the
# message but continues to switch off the alert.)
$resp .= '1';
$resp .= $status->resensitize ? 'Y' : 'N';
if ($item && $ils->supports('magnetic media')) {
$resp .= sipbool($item->magnetic);
Expand Down

0 comments on commit 6a329a9

Please sign in to comment.