]> git.evergreen-ils.org Git - Evergreen.git/commit - Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
LP#1489955: enable filtering authority search/browse by thesaurus
authorGalen Charlton <gmc@esilibrary.com>
Fri, 28 Aug 2015 21:18:04 +0000 (21:18 +0000)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:16 +0000 (15:44 -0400)
commit8adca92befae05371a5707f933fe91efd7450692
tree849ba8baf44feb0ae82c010c257ca25d416a903d
parentb1f25d1d3b93617adb6e498c5960c87db4038a01
LP#1489955: enable filtering authority search/browse by thesaurus

This patch adds support for restricting the scope of an
authority headings browse or authority record search by
thesaurus.  For example, in SuperCat, the URL pattern

/opac/extras/browse/marcxml/authority.subject/1/heart/0/20

generates returns a browse of up to 20 authority records
centered around the subject heading "heart".  With this patch,
the URL pattern

/opac/extras/browse/marcxml/authority.subject/1/heart/0/20/c

restricts the browse to MeSH headings. Multiple thesauruses
can be specified as well; for example, this URL pattern

/opac/extras/browse/marcxml/authority.subject/1/heart/0/20/a,b

browses in LCSH and LC Children's.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/authority.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm
Open-ILS/src/sql/Pg/011.schema.authority.sql
Open-ILS/src/sql/Pg/999.functions.global.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.filter_authority_browse_search_by_thesaurus.sql [new file with mode: 0644]