From aeaf0600285526f5f2e2f7dbae6645ca76f61d89 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Wed, 30 May 2012 11:02:51 -0400 Subject: [PATCH] Bug 8206: Specify index in OPAC authority search Content-Type: text/plain; charset="UTF-8" Adds a dropdown to allow the user to choose to search the 'mainentry,' 'match-heading,' and 'see-from' indexes, in addition to the 'any' index which is the default. To test (you will need authority records with see-from and see-also headings): 1. Go to the browse subjects and authors section in the OPAC 2. Do a search for a fairly generic term that is used as a see-also term in a lot of records. Note that your search results include both the record that you wanted and all the other records that refer to it. 3. Apply the patch. 4. Repeat the search from step 2. Notice there is no change to the results. 5. Repeat the search from step 2, but choose "in main entry" and observe that you are now only seeing authority records with the search entered in their main entry. 6. Repeat the search from step 2, but choose "in any heading" and observe that the results are the same as in step 2. This is intentional, so that in the future notes in authorities can be made searchable. 7. Search for an obsolete form of heading with the "in keyword" option selected. Notice what results you get. 8. Repeat the search from step 7 with the "in see from heading" option selected, and notice that the results are more specific (at least if the term you are searching for is generic enough to find false positives in keyword searches on current headings) --- .../prog/en/modules/opac-authorities-home.tt | 16 +++++++++++----- opac/opac-authorities-home.pl | 20 ++++++-------------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authorities-home.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authorities-home.tt index 04d5a8c..8357fe7 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-authorities-home.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-authorities-home.tt @@ -22,15 +22,21 @@ [% END %] [% END %] - - - - - + + + + +