Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Fridolyn SOMERS 857547c992 Bug 10808: make authority search form retain drop-down selections
When cataloging a field defined with a thesaurus, an authority search
popup is displayed with a search from. Once operators, values and sort
selected in this form the search can be performed. The bug is that the
values entered are kept but not the selected operators and sort.

The same bug was existing in authorities module, solved by Bug 8692.

This patch corrects the bug.

Also uses in 'sort by' options the same text as search in authorities
module : Heading A-Z (default), Heading Z-A, None.

Also removes duplicated code in auth_finder.pl :
    value_mainstr => $query->param('value_mainstr') || "", ...

Test plan :
- Create a new biblio with a framework containing a field linked to a
  thesaurus. For example : 600
- Click on small icon of main entry. For example : 600$a
=> You get a search form with all operators to "contains" and sort by
   "Heading A-Z"
- Enter a value in each text box and perform search
=> You get a search form with values in text boxes and all operators
   to "contains"
- Select "starts with" in all operator comboboxes and perform search
=> You get a search form with all operators to "starts with"
- Select "is exactly" in all operator comboboxes and perform search
=> You get a search form with all operators to "is exactly"
- Select "Heading Z-A" in sort by and perform search
=> You get a search form with "Heading Z-A" in sort by
- Select "None" in sort by and perform search
=> You get a search form with "None" in sort by

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: With both patches applied no koha-qa errors

Test
1) Original behavior is whatever selection you do before patch,
search form returns to default options
2) After patch, selection remains

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
All tests and QA script pass, further comments on second patch.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-12-10 04:25:12 +00:00
..
csv_headers/acqui
virtualshelves/merge
acquisitions-add-to-basket.inc
acquisitions-menu.inc
acquisitions-search.inc
acquisitions-toolbar.inc
additem.js.inc
admin-menu.inc
auth-finder-search.inc
authorities-search-results.inc
authorities-search.inc
authorities-toolbar.inc
authorities.inc
authorities_js.inc
biblio-default-view.inc
biblio-view-menu.inc
borrower_debarments.inc
browser-strings.inc
budgets-active-currency.inc
budgets-admin-search.inc
budgets-admin-toolbar.inc
calendar.inc
cat-menu.inc
cat-search.inc
cat-toolbar.inc
cataloging-search.inc
checkin-search.inc
checkouts-table-footer.inc
circ-menu.inc
circ-menu.tt
circ-search.inc
cities-admin-search.inc
contracts-admin-search.inc
currencies-admin-search.inc
datatables-strings.inc
datatables.inc
date-format.inc
doc-head-close-receipt.inc
doc-head-close.inc
doc-head-open.inc
facets.inc
file-upload.inc
form-blocks.inc
greybox.inc
guided-reports-view.inc
header.inc
help-bottom.inc
help-top.inc
home-search.inc
installer-doc-head-close.inc
intranet-bottom.inc
intranetstylesheet.inc
labels-menu.inc
labels-toolbar.inc
letters-search.inc
members-menu.inc
members-toolbar.inc
merge-record-strings.inc
merge-record.inc
messaging-preference-form.inc
page-numbers.inc
patron-search-box.inc
patron-search.inc
patron-title.inc
patron-toolbar.inc
patroncards-errors.inc
patroncards-menu.inc
patroncards-toolbar.inc
patrons-admin-search.inc
popup-bottom.inc
prefs-admin-search.inc
prefs-menu.inc
printers-admin-search.inc
quotes-toolbar.inc
quotes-upload-toolbar.inc
reports-menu.inc
reports-toolbar.inc
resort_form.inc
roadtype-admin-search.inc
search_indexes.inc
serials-menu.inc
serials-search.inc
serials-toolbar.inc
stopwords-admin-search.inc
subscriptions-search.inc
subtypes_unimarc.inc
suggestions-add-search.inc
tools-item-action.inc
tools-menu.inc
tools-nomatch-action.inc
tools-overlay-action.inc
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc
z3950-admin-search.inc