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)
committerBen Shum <bshum@biblio.org>
Mon, 13 Aug 2012 22:00:23 +0000 (18:00 -0400)
commit3da1421c0127df5de3760064ae6ed5d87e9a1768
tree3e8f691abc52249fa373ed35e3f556542e2fa1fc
parentff2ef0d3f7789e1786efdedf2dff1a7a329257cf
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