TPac: patron saved searches user/berick/tpac-user-saved-searches
authorBill Erickson <berick@esilibrary.com>
Tue, 20 Dec 2011 20:46:24 +0000 (15:46 -0500)
committerBill Erickson <berick@esilibrary.com>
Tue, 21 Feb 2012 22:30:27 +0000 (17:30 -0500)
commita86f4687f698c0989fded0ffa13385561d0e79cb
tree84b8fb0a3b2548155401c1832d3eaea8e0e3fbc3
parentf27de9486a348bd828d28093640a0da8eee708b8
TPac: patron saved searches

Adds a "Save Search" option on search results pages.  When clicked,
users are prompted to log in (if not already), then given a chance to
save the search.  Saving is done from within a new "Saved Searches" tab
in My Account, where users can also see/delete/execute existing saved
searches.  The saved search UI also provides an RSS link.

Currently, only searches that build a query-parser query are save-able.
This excludes MARC expert search, at least until it can be expressed as
a query-parser query.

For more easier additions of query_type in the future, this commit also
changes the query_type column from TEXT w/ constraint to ENUM, which is
simpler to add types to.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.saved_search_qtype_constraint.sql [new file with mode: 0644]
Open-ILS/src/templates/opac/myopac/save_search.tt2 [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/myopac/base.tt2
Open-ILS/src/templates/opac/results.tt2
Open-ILS/web/css/skin/default/opac/style.css