From 259e491dc3f48825114fd7e2927b29b7ce60f78f Mon Sep 17 00:00:00 2001 From: Kathy Lussier Date: Fri, 22 Sep 2017 15:18:12 -0400 Subject: [PATCH] LP#1671635: Maintain search parameters throughout place hold process Add hidden fields to the Place Hold form for the search query, type and locg fields so that they will appear correctly in the search bar on the holds confirmation page. This commit also keeps the query parameter in the URL after clicking the Place Hold link from the search results page. Test Plan: Log into the public catalog and perform a search that is limited to a library that differs from the user's preferred search library and using a search type that is not keyword (e.g. title or author). Place a hold on any title from either the search results or record page. After submitting the form, look at the search parameters in the search bar on the hold confirmation page. Pre-patch, the query terms will not appear, the search type will revert back to the default of keyword, and the search library will be the user's preferred search library. Post-patch, the query parameters will be maintained in the search bar. Signed-off-by: Kathy Lussier Signed-off-by: Cesar Velez Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 6 ++++++ Open-ILS/src/templates/opac/parts/result/table.tt2 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 73192ba3bb..fc59a0dd06 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -54,6 +54,12 @@ function toggleActivationDate() { %] + + + + + [% usr_barcode = CGI.param('usr_barcode') | html; is_requestor = CGI.param('is_requestor'); diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index f9e710f9b7..5ab8e9a087 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -389,7 +389,7 @@ END;