Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Jared Camins-Esakov 4feb6a4736 Bug 8211: Add exploded search options
When working with hierarchical subject headings, it is sometimes helpful
to do a search for all records with a specific subject, plus
broader/narrower/related subjects. This patch adds support for these
"exploded" subject searches to Koha.

To test:
1) Make sure you have a bunch of hierarchical subjects. I created
   geographical subjects for "Arizona," "United States," and "Phoenix,"
   and linked them together using 551s, and made sure I had a half
   dozen records linking to each (but not all to all three).
2) Do a search for su-br:Arizona (or choose "Subject and broader terms"
   on the advanced search screen with "more options" displayed), and
   check that you get the records with the subject "Arizona" and the
   records with the subject "United States"
3) Do a search for su-na:Arizona (or choose "Subject and narrower terms"
   on the advanced search screen with "more options" displayed), and
   check that you get the records with the subject "Arizona" and the
   records with the subject "Phoenix"
4) Do a search for su-rl:Arizona (or choose "Subject and related terms"
   on the advanced search screen with "more options" displayed), and
   check that you get the records with the subject "Arizona," the
   records with the subject "United States," and the records with the
   subject "Phoenix"
5) Ensure that other searches still work (keyword, subject, ccl,
   whatever)
6) Sign off

Technical details:
This patch adds a shim in front of C4::Search::buildQuery in order to
preprocess the query and call the _handle_exploding_search callback.
This shim will allow us to gradually offload query parsing to a new
query parser module.

Signed-off-by: wajasu <matted-34813@mypacks.net>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-09-18 15:20:48 +02:00
..
virtualshelves/merge
acquisitions-add-to-basket.inc Bug 2780 - Capitalize strings consistently 2012-04-04 17:51:23 +02:00
acquisitions-menu.inc Bug 8040: bad name in acquisitions-menu 2012-05-24 18:09:46 +02:00
acquisitions-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
acquisitions-toolbar.inc Bug 8666: Hide 'New basket' link if supplier is inactive 2012-09-04 18:02:15 +02:00
additem-menu.inc Bug 2780 - Capitalize strings consistently (Cataloging) 2012-04-04 17:54:40 +02:00
additem.js.inc
admin-menu.inc Bug 8655 - Re-order items on administration page to better match configuration priority 2012-08-29 17:59:37 +02:00
auth-finder-search.inc Bug 8332 follow-up: make strings translatable 2012-09-03 12:46:55 +02:00
authorities-search-results.inc Bug 3462: Links in authorities should be hyperlinks 2012-09-13 16:53:50 +02:00
authorities-search.inc Bug 8206: make authority search indexes consistent 2012-09-07 15:26:56 +02:00
authorities-toolbar.inc Bug 8203 follow-up: QA fixes 2012-07-12 16:02:09 +02:00
biblio-default-view.inc
biblio-view-menu.inc
budgetperiods-admin.inc Bug 2780 - Capitalize strings consistently (Budgets) 2012-04-04 17:51:27 +02:00
budgets-active-currency.inc
budgets-admin-search.inc Bug 8522 - Markup errors cause problems with customized CSS 2012-08-31 18:42:04 +02:00
budgets-admin-toolbar.inc Bug 8224 - Make authorized values appear in planning list 2012-06-25 16:24:13 +02:00
calendar.inc Bug 8428 - can't save contracts 2012-09-14 17:30:44 +02:00
cat-menu.inc
cat-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
cat-toolbar.inc Bug 7739 follow-up for capital cases 2012-05-11 12:20:14 +02:00
cataloging-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
cataloging-toolbar.inc Bug 2780 - Capitalize strings consistently (Cataloging) 2012-04-04 17:54:40 +02:00
checkin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
checkouts-table-footer.inc Bug 7986: Export issues for patron 2012-09-13 17:58:30 +02:00
circ-menu.inc Added a URI filter to encode a cardnumber for borrowers as to not break patronimage.pl 2012-08-02 14:17:10 +02:00
circ-menu.tt Bug 7955: Statistics tab for Patron checkouts 2012-06-20 21:16:50 +02:00
circ-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
circ-toolbar.inc Bug 2733 - Can't print patron account 2012-04-06 18:30:35 +02:00
cities-admin-search.inc Bug 8522 - Markup errors cause problems with customized CSS 2012-08-31 18:42:04 +02:00
contracts-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
currencies-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
datatables-strings.inc
date-format.inc
dictionary-toolbar.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
doc-head-close-receipt.inc
doc-head-close.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
doc-head-open.inc
error-messages.inc
facets.inc Bug 4255 - Add item type to facet list 2012-06-20 22:27:21 +02:00
favicon.ico Bug 7949 - a different favicon for the staff client 2012-05-07 23:19:56 +02:00
file-upload.inc
form-blocks.inc Bug 8332 follow-up: make strings translatable 2012-09-03 12:46:55 +02:00
greybox.inc
guided-reports-view.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
header.inc Bug 8339 - div id="login" should be id="login_controls" in header.inc 2012-09-13 18:35:58 +02:00
help-bottom.inc
help-top.inc Bug 8241 - Remove stray references to YUI autocomplete 2012-06-25 16:22:46 +02:00
hold-menu.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
home-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
installer-doc-head-close.inc
intranet-bottom.inc
labels-batches-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-menu.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-new-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
labels-toolbar.inc Bug 2780 - Capitalize strings consistently (Labels) 2012-04-04 17:54:33 +02:00
letters-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
mainmenu.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
members-menu.inc Bug 8130 - attach PDF files to a patron record 2012-06-28 10:55:51 +02:00
members-toolbar.inc Permission for change password button in members toolbar should be borrowers instead of staffaccess 2012-07-04 16:32:18 +02:00
messaging-preference-form.inc Talking Tech Support - Phase I 2012-06-10 17:46:52 +02:00
page-numbers.inc
patron-search-box.inc Bug 7747 - Replace YUI autocomplete with jQueryUI 2012-05-31 18:07:55 +02:00
patron-search.inc Bug 8427 - Patron search results not consistent 2012-08-02 13:36:05 +02:00
patron-title.inc Bug 8514 Restore Patron Name Display Order 2012-09-05 15:04:52 +02:00
patron-toolbar.inc Bug 2780 - Capitalize strings consistently (Patrons) 2012-04-04 17:54:37 +02:00
patroncards-batches-toolbar.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patroncards-menu.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patroncards-toolbar.inc Bug 2780 - Capitalize strings consistently (Patron cards) 2012-04-04 17:54:35 +02:00
patrons-admin-search.inc Bug 8522 - Markup errors cause problems with customized CSS 2012-08-31 18:42:04 +02:00
popup-bottom.inc
prefs-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
prefs-menu.inc Bug 7986: Export issues for patron 2012-09-13 17:58:30 +02:00
printers-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
quotes-toolbar.inc Bug 7977: Further UI work on the QOTD editor 2012-05-24 14:14:17 +02:00
quotes-upload-toolbar.inc Bug 7977: Further UI work on the QOTD uploader 2012-05-24 14:14:15 +02:00
reports-menu.inc Bug 2780 - Capitalize strings consistently (Reports) 2012-04-04 17:54:43 +02:00
reports-toolbar.inc
resort_form.inc Bug 2780 - Capitalize strings consistently (miscellaneous) 2012-04-04 17:54:46 +02:00
roadtype-admin-search.inc Bug 8522 - Markup errors cause problems with customized CSS 2012-08-31 18:42:04 +02:00
search_indexes.inc Bug 8211: Add exploded search options 2012-09-18 15:20:48 +02:00
serials-menu.inc
serials-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
serials-toolbar.inc Bug 2780 - Capitalize strings consistently (Serials) 2012-04-04 17:54:38 +02:00
stopwords-admin-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 8143 [REVISED] Upgrade jQuery tabs to current jQueryUI version 2012-06-10 15:22:58 +02:00
table-pager.inc
tools-item-action.inc
tools-menu.inc Bug 8696: Update Export bibs on Tool Menu 2012-09-05 15:52:18 +02:00
tools-nomatch-action.inc
tools-overlay-action.inc
virtualshelves-toolbar.inc
z3950-admin-search.inc Bug 8522 - Markup errors cause problems with customized CSS 2012-08-31 18:42:04 +02:00