LP#1662541: several new subject browse index definitions user/gmcharlt/lp1662541_additional_subject_browse_indexes
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 17 Feb 2017 21:40:02 +0000 (16:40 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 17 Feb 2017 21:40:02 +0000 (16:40 -0500)
commit9980e0a26313374ad9862ec1cbb4353bcbdfff96
treecbb94cd8547df7a4e865dc3424e749a5da0786a3
parent6c537fc3a063cbb2d1c13907b3d94b6fcde09e73
LP#1662541: several new subject browse index definitions

This patch adds several config.metabib_field definitions
that are specifically for subject browses:

subject / topic_browse
subject / geographic_browse
subject / temporal_browse

These new definitions index the entire heading as a unit,
so a heading like this:

=650 \0$aCats$zUnited States$vCorrespondence.

will end up in the subject/topic_browse index as a single
entry for

Cats -- United States -- Correspondence

rather than separate browse entries for "Cats" as a subject/topic,
and "United States" as a subject/geographic.

Since the new *_browse indexes are meant to replace the browse
functions of the existing subject/topic, subject/geographic, and
subject/temporal indexes, the browse flag is turned off for the
older definitions.

This patch intentionally does not include an entry for subject/name_browse,
as additional coding would be required to get the display form of the
heading to be punctuated correctly.

To test
-------
[1] After applying the patch, perform subject browses in the
    OPAC and staff interfaces and verify that fully composed
    headings from bib records are now displayed as browse entries.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.subject_browse.sql [new file with mode: 0644]