lp1271198 Strip browse and facet parameters from links user/kmlussier/lp1271198-strip-browse-facet-parms-from-links
authorKathy Lussier <klussier@masslnc.org>
Tue, 26 Aug 2014 19:49:45 +0000 (15:49 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 26 Aug 2014 20:04:02 +0000 (16:04 -0400)
commit837d10a2995512d9d73571179f0297a325061092
tree08b7171fe3ea48f8f2d3a6c3caffe13bd6e763f4
parent4e40c888535a1e52951a1264547f8926c8c00d89
lp1271198 Strip browse and facet parameters from links

Browse and facet parameters were sticking to links to author, subject and
series links on record and result pages, as well as some other links where
the search parameters were no longer necessary. This commit:

1. Adds browse_search_parms and facet_search_parms to header.tt2 as new
classes of search parameters that one may want to remove.

2. Removes these parameters from the author and subject links on the
record page. It also uses the same method for removing search parameters
from the author link on the search results page and on the searchbar
Browse link.

3. Fixes an issue where the advanced search links were inadvertently
stripping general search parameters.

4. Adds more parameters to the general_search_parms group so that we can
have cleaner URLs.

Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/header.tt2
Open-ILS/src/templates/opac/parts/record/authors.tt2
Open-ILS/src/templates/opac/parts/record/series.tt2
Open-ILS/src/templates/opac/parts/record/subjects.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2
Open-ILS/src/templates/opac/parts/searchbar.tt2
Open-ILS/src/templates/opac/results.tt2