TPAC: Reset Form and New Search should clear queries
authorDan Scott <dscott@laurentian.ca>
Wed, 8 Aug 2012 19:08:24 +0000 (15:08 -0400)
committerDan Scott <dscott@laurentian.ca>
Mon, 13 Aug 2012 23:07:26 +0000 (19:07 -0400)
commitf753885abeb88c48e195c4736883ab1a0955b1bd
tree1ecb073a968fd4df7794942b381042f2a0b8856f
parentff490fbc2c552d33ee11065fe249c0e9e4aa9b8e
TPAC: Reset Form and New Search should clear queries

Currently, clicking "Another Search" in the search results page, or
"Reset Form" on the advanced search page, keeps the same query terms and
type around. Clear these parameters as expected; essentially, we keep
only the search location (loc or locg) in scope.

Note that we explicitly keep parameters around when someone is going
from a basic search to an advanced search, because the assumption is
that they want to refine their search further.

Also affected are the org_selector, because we want to pull the logic
for loc or locg out into a common area (the get_library block in
misc_util.tt2), and the style (input.opac-button elements now get styled
the same as a.opac-button elements, which makes it easier to intermingle
them on the same form).

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/advanced/search.tt2
Open-ILS/src/templates/opac/parts/misc_util.tt2
Open-ILS/src/templates/opac/parts/org_selector.tt2
Open-ILS/src/templates/opac/results.tt2