LP#1358392: See references not always displaying on browse search
authorSrey Seng <sreyseng@gmail.com>
Fri, 5 Sep 2014 21:28:07 +0000 (14:28 -0700)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 26 Jul 2017 19:40:21 +0000 (19:40 +0000)
commit28824da5d12fe2357e97806326ba7c2cffe99cac
tree20486f399ba6e7d95aea71be65021ff6db325866
parentcc534f920a583037e76f5d06a8e3a721dcbdc72d
LP#1358392: See references not always displaying on browse search

When browsing for an unauthorized heading, See references are not always
displaying on browse search. Those that do display surface due to the
existence of cross-reference(s).

Desired behaviour is that unauthorized headings should also surface in browse
results, even without the existence of cross-reference(s), as long as the
authority record containing the unauthorized heading controls at least one bib.
There are many authority records that do not have cross-references but do contain
unauthorized headings, so browse results that would otherwise be hidden would now
be exposed.

This fix adds an additional logic to check if the browse term is an
unauthorized term and if so, perform a slightly modified procedure
but otherwise, perform the usual procedure so as not to break any existing
functionality.

Signed-off-by: Srey Seng <sreyseng@gmail.com>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.metabib.staged_browse.sql [new file with mode: 0644]