TPAC: Strip the "page" GET param from author searches
authorDan Scott <dan@coffeecode.net>
Wed, 17 Aug 2011 21:18:54 +0000 (17:18 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 17 Aug 2011 21:34:20 +0000 (17:34 -0400)
commitf67c71f4452d184693b59bfea43215fa100124b3
tree8990501e7789b7dba3346ff9d0931ce49d92fee7
parenteb25c85bcf277e341a94bb7d8bf5b70c045ee0e9
TPAC: Strip the "page" GET param from author searches

mkurl() generates a URL that, by default, retains all of the parameters
that the currnt query string includes - useful for retaining library
search scope, etc. However, searches for authors that are launched by
clicking on the author's name in the search results page / record
details were failing in many cases because the "page" parameter came
along with it - and if there weren't five pages of results for page=5,
for example, then no hits would be shown.

This commit removes the page param from the URL. In other places, all of
the params are stripped (see cnbrowse) but as I assume we want to retain
search scope and potentially other parameters, we'll start with the
smallest possible change.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/web/templates/default/opac/parts/record/summary.tt2
Open-ILS/web/templates/default/opac/parts/result/table.tt2