LP#1723977: Move no-LURIs test to be a peer of no-copies test
authorMike Rylander <miker@esilibrary.com>
Tue, 7 Nov 2017 16:09:07 +0000 (11:09 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 12 Nov 2018 18:13:28 +0000 (13:13 -0500)
commitf0e293517a6e0fd9ee3f43d5a40738cd9dad8998
tree1189e3acc621746091ebbd0a916c9496b1d4a27d
parenta58f9b58ff4001c01ced22bfaecfdf9b3c9d4f57
LP#1723977: Move no-LURIs test to be a peer of no-copies test

The correct place to test the no-LURIs condition is as a peer to the
no-copies test, when searching in staff mode.  We therefore move that
test with this commit.

In addition, the bib attribute vector may be null, in the case of a
record with no bib source or LURI.  When testing emptiness we need to
ask if the field IS NULL rather than just testing its contents.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Boyer <JBoyer@library.in.gov>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm