Bug 19457: Handle 'PREVISSUE' return by CanBookBeIssued from SIP (CheckPrevCheckout)
If CheckPrevCheckout is set to Do, then checkouts are blocked at the SIPServer
To test:
- Do not apply this patch
- Set CheckPrevCheckout to "Do", or "Unless overridden, do"
Verify the SIP server is blocking checkouts with this setting set
- Apply this patch
- Note that the checkout is now allowed, with a screen message telling
the borrower they've issued the item before.
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit b40e58343e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
6b44e31457
commit
67bddf78e2
|
|
@ -96,6 +96,9 @@ sub do_checkout {
|
|||
$noerror = 0;
|
||||
last;
|
||||
}
|
||||
} elsif ($confirmation eq 'PREVISSUE') {
|
||||
$self->screen_msg("This item was previously checked out by you");
|
||||
last;
|
||||
} else {
|
||||
# We've been returned a case other than those above
|
||||
$self->screen_msg("Item cannot be issued: $confirmation");
|
||||
|
|
|
|||
Loading…
Reference in New Issue