LP#1743650: Bib vis testing needs different handling
authorMike Rylander <mrylander@gmail.com>
Tue, 16 Jan 2018 23:54:47 +0000 (18:54 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 16 Mar 2020 21:14:29 +0000 (17:14 -0400)
commita97a00f337fd7a9e7e8c3196949ab6d7a2dd94ea
tree1b12bb15ec903654e4a281ad0dee6fcdea72798e
parent5f495ddf145b9e9ff46223f6e0489e8a60e60240
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.function.special-bib-vis-handling.sql [new file with mode: 0644]