]> git.evergreen-ils.org Git - NCIPServer.git/commit
Cancel requests via RequestId in NCIP::ILS::Evergreen.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 27 Oct 2015 17:13:42 +0000 (13:13 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 27 Oct 2015 18:30:56 +0000 (14:30 -0400)
commit34e9b9e3412ccad1850d909293e35a8462644a5c
treeb3ee6d32cad130501e4d75d7a233ffd6e5ab8710
parenta5de8ec8c9b1225ceb463034c246b92c055e61a3
Cancel requests via RequestId in NCIP::ILS::Evergreen.

Add a routine to search for holds via the RequestIdentifierValue of
the CancelRequestItem message's RequestId.  This searches action::
hold_request_note by title and body for  uncancelled, unfilled holds
where request_lib is equal to our working org. unit.  If found, the
corresponding hold is returned to be canceled.

The original logic of searching by ItemId remains as a fallback
when the above fails and for those cases where holds were placed
before this logic was added.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
lib/NCIP/ILS/Evergreen.pm