TPAC: Reset Form and New Search should clear queries user/dbs/tpac_clear_search
authorDan Scott <dscott@laurentian.ca>
Wed, 8 Aug 2012 19:08:24 +0000 (15:08 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 9 Aug 2012 15:50:19 +0000 (11:50 -0400)
commit39f8dee686f69488d1fc07fae6ba505f811f4a8b
tree8869a247aec4dbd84e5779ea418645dee67977e5
parentf36156a19e3e0d04535a7ee839fa0e3a922f3d47
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>
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