unapi: avoid deleted call numbers, copies, and sunits
authorDan Scott <dscott@laurentian.ca>
Sun, 18 Dec 2011 16:21:19 +0000 (11:21 -0500)
committerDan Scott <dscott@laurentian.ca>
Sun, 18 Dec 2011 16:31:38 +0000 (11:31 -0500)
commitec3f67f59999c423feff973424a9678838e3ffa5
tree17f4f005121cf8797a5eab08d71989554ab4c1da
parent1d350df1519aada0557e2fa109591e1833eeef9e
unapi: avoid deleted call numbers, copies, and sunits

The rewrite of unapi removed the filters for deleted call numbers that
were added to master in LP# 893315 / commit hash 47a16f516d. Without
this filter, it is possible to return pages of results that would show
nothing in the TPAC because all of the call numbers were deleted.

This commit reinstates the check for the deleted condition on call
numbers and adds a check for the deleted condition on copies and serial
units as well.

The check could be made conditional by adding yet another parameter to
the unapi api, but there appears to be no compelling reason to make the
signature more complex for now.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/990.schema.unapi.sql