]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1423813: adjust some queries to account for deleted copy locations
authorGalen Charlton <gmc@esilibrary.com>
Mon, 23 Feb 2015 21:03:41 +0000 (21:03 +0000)
committerBen Shum <bshum@biblio.org>
Mon, 23 Feb 2015 22:07:06 +0000 (17:07 -0500)
commit4a1c335a4d229e66244dc0ce8a564dbe80be1049
treeb9fe25a7275c09dc55fdf56a4547c81d2fcdb119
parent5f648064b80c6f6e08174650a0dcb886e4d2f7a1
LP#1423813: adjust some queries to account for deleted copy locations

This patch adjusts some queries so that if a copy location
is deleted, any undeleted items that are attached to it
are considered deleted for the purpose of generating
OPAC item lists and seeing if items are potentially available
to fill hold request.

It should be noted that if a copy location is marked as
logically deleted, there shouldn't be any undeleted
copies associated with it.  However, as this condition is not
presently enforced by a database contraint, adding additional
checks on acpl.deleted provides some additional defense.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm