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)
committerMike Rylander <miker@esilibrary.com>
Tue, 7 Nov 2017 20:41:14 +0000 (15:41 -0500)
commit25a1fbba9d9cdfceb319dbd73d6a15acb0b295a1
tree0c28e73fc63d46658a76b23188d77e480d49aca0
parent2e697a09bc83f4fd2dfc1ab7aae7fbcdf43a2992
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
Open-ILS/src/sql/Pg/300.schema.staged_search.sql