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>
Thu, 9 Aug 2012 15:09:08 +0000 (11:09 -0400)
commite869f17039408a699b535c9c4ebbfa468142539b
treee458be56a5cdba5c4ece056cf442341f6dd5bd42
parentbff6c46bd51b8e294e216d94599c407889f3c67a
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