LP#1067823: Genre links launch subject search
authorMike Rylander <mrylander@gmail.com>
Thu, 15 Oct 2015 21:20:07 +0000 (17:20 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 2 Nov 2015 20:00:17 +0000 (20:00 +0000)
commit699c64cfceea47ca5c1fdb53f6b5a49bba290c3b
tree11325427b887effeb2d521bb5af69b8cab9cb4cd
parentb15a61ffc934e5e4f558de69505f904b4de0d2e3
LP#1067823: Genre links launch subject search

And genres are not subjects.  So now we will index genres in the identifier
class and teach the tpac to build links appropriately.  Genre is herein
defined as data in tags 655 or 659 (as the tpac currently thinks), restricted
to subfields [abvxyz], per LoC documentation.

To test:

[1] Apply the update and run the partial reingest as suggested
    by the upgrade script.
[2] In the public catalog, navigate to a record that has one
    or more 655 fields.  Click on one of the genre links and
    verify that it retrieves records sharing that genre heading.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.genre-indexing.sql [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/record/subjects.tt2