]> git.evergreen-ils.org Git - working/NCIPServer.git/commit
Move circulation, copy and user checks to check_circ_details method.
authorJason Stephenson <jason@sigio.com>
Sun, 14 Sep 2014 14:19:54 +0000 (10:19 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 14 Sep 2014 14:19:54 +0000 (10:19 -0400)
commitdd33641abe86e2b03b5b79be2d98836e5600ceb5
treeebc998daee77e0c76c534b69af91154371fc4b3f
parent2e366b7229924c606bba92349feeeb85d1db9778
Move circulation, copy and user checks to check_circ_details method.

Before implementing renewitem in NCIP::ILS::Evergreen, it became
apparent that we'd want to make the same checks for the copy being
checked out, owned by or checked out at our working ou, and being
checked out to the provided user, if any, before proceeding with
renewal. It makes sense therefore to move the checks from being
inside checkinitem to being its own function that returns a
NCIP::Problem or undef.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm