]> git.koha-community.org Git - koha.git/commit
Bug 7417: Include see from references in bibliographic searches
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 2 Jun 2012 17:32:25 +0000 (13:32 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 13 Sep 2012 12:19:28 +0000 (14:19 +0200)
commitbc05b5d163ae1aabd6fad813a8cf8e784ea6e90b
treeff422526d228864c2a22f80da5521849ad2172c8
parent12c48b7ff7bc5ae4a2bae8e291ede3fa08e70808
Bug 7417: Include see from references in bibliographic searches

This patch adds the Koha::Indexer::RecordNormalizer and
Koha::Indexer::MARC::RecordNormalizer::EmbedSeeFromHeadings packages
to enable the inclusion of alternate forms of headings in bibliographic
searches. When the new syspref IncludeSeeFromInSearches is turned on
(default is off) rebuild_zebra.pl will insert see from headings from
authority records into bibliographic records when indexing, so that a
search on an obsolete term will turn up relevant records.

To test:
1) Enable IncludeSeeFromInSearches
2) Add a heading that has an alternate form to a record (for example,
   "Cooking" has the alternate form "Cookery," if you have authority
   records from LC)
3) Index the zebraqueue (or reindex if you haven't indexed your system
   yet)
4) Confirm that if you search for "Cookery" you get the record you
   just modified

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Rebased on master 5 August 2012
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Rebased on master 11 September 2012

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Also checked:
- Verified database update works correctly
- Checked system preference and its description
- Checked staff/opac detail pages with feature on/off
- Checked staff/opac search facets
- Downloaded and tested records in various formats
- Tried different searches for 'see from' entries of authorities
- Ran all unit tests

No problems found.
20 files changed:
C4/AuthoritiesMarc.pm
C4/Search.pm
Koha/Authority.pm [new file with mode: 0644]
Koha/Filter/MARC/EmbedSeeFromHeadings.pm [new file with mode: 0644]
Koha/Filter/MARC/Null.pm [new file with mode: 0644]
Koha/RecordProcessor.pm [new file with mode: 0644]
Koha/RecordProcessor/Base.pm [new file with mode: 0644]
Koha/SearchEngine/Solr/Index.pm
installer/data/mysql/sysprefs.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl
koha-tmpl/intranet-tmpl/prog/en/xslt/NORMARCslim2intranetResults.xsl
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl
koha-tmpl/opac-tmpl/prog/en/xslt/NORMARCslim2OPACResults.xsl
misc/maintenance/process_record_through_filter.pl [new file with mode: 0755]
misc/migration_tools/rebuild_zebra.pl
t/RecordProcessor.t [new file with mode: 0755]
t/db_dependent/Koha_Authority.t [new file with mode: 0755]
t/db_dependent/RecordProcessor_EmbedSeeFromHeadings.t [new file with mode: 0755]