Hide OPAC-invisible holdings from SRU/Z39.50 user/artunit/sru_hide_opac_invisible
authorDan Scott <dscott@laurentian.ca>
Mon, 16 Jul 2012 17:27:54 +0000 (13:27 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Thu, 16 Aug 2012 16:26:55 +0000 (12:26 -0400)
commit09e849083ffe591436da9ef6bab8cfd0d5f39994
treebc28e1ccef4e33c17be3fa928912d1e39c036fcb
parent4f9b04b8c0bdee378838532db3fd825b8b344462
Hide OPAC-invisible holdings from SRU/Z39.50

The basic_holdings Supercat method filtered out deleted call numbers and
copies, but didn't filter out copies based on the OPAC visibility status
of copy location / status / the copy itself. This has undesired results
when third-party services request copies via SRU or Z39.50 and expose
copies that should not be visible to the public.

We wrap all of the visibility and deletedness checks for a given copy up
into a subroutine so that we can avoid repeating ourselves in the
basic_holdings logic. Also, if we missed a test, we can add it in one
handy place :)

(Thanks to Galen Charlton for finding two missing tests: circ lib
visibility and owning lib visibility!)

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Art Rhyno <art632000@yahoo.ca>
Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm