LP#1743650: Bib vis testing needs different handling user/miker/lp-1743650-more-luri-visibility-adjustments
authorMike Rylander <mrylander@gmail.com>
Tue, 16 Jan 2018 23:54:47 +0000 (18:54 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 17 Jan 2018 15:49:39 +0000 (10:49 -0500)
commit9a00b18414d5ceb6538a3acfb9c2bb6b278dcccc
treece14ad1a3b2c124dd6d160ca2826b9c5222b8616
parent56bcda57b3d8a364abc883afe9e27563bef8f6cd
LP#1743650: Bib vis testing needs different handling

For bib-level visibility testing, we can only use the source helper for
positive inclusion, and have to deal with LURIs on a case-by-case basis.
This is because, unlike the copy visibility cache, the LURI cache is pre-
composed in a single value for all LURIs on a record, not separate ones
for each.  This is fine, as we just need to find the effectively visible
org units and test for that subset of the relevant orgs. This commit provides
a sub to test for that, and handles LURI test composition at the perl
level rather than in the database.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm
Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.special-bib-vis-handling.sql [new file with mode: 0644]