LP#1709521 Webstaff show recent patrons
authorBill Erickson <berickxx@gmail.com>
Sat, 12 Aug 2017 15:52:40 +0000 (11:52 -0400)
committerBill Erickson <berickxx@gmail.com>
Sat, 12 Aug 2017 15:57:09 +0000 (11:57 -0400)
commit55386f3ca8be8b2990ba23af4f5f1b9e7a0b304b
tree5133806c5ff61fedf6ef8b0f701ef60a7252ed68
parente052cad09214b8f79618e9ddd66b1159a4a2e5cf
LP#1709521 Webstaff show recent patrons

Adds a new library setting 'ui.staff.max_recent_patrons' which
specifices the number of recently accessed patrons staff may quickly
refetch from the browser client interface.  If no value is set, it
defaults to 1 for backwards compatibility.

If the value is 0 or less, no recent patrons may be retrieved and the
'Retrieve Last Patron' action is hidden.  If the value is > 1 a new
'Retrieve Recent Patrons' menu item appears.  When clicked, the list
of recent patrons is displayed in the patron search interface, most
recently accessed patrons sorted to the top.

For privacy, the recent patrons list expires from the browser when the
authenticion token expires.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.data.recent-patrons.sql [new file with mode: 0644]
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/app.js
Open-ILS/web/js/ui/default/staff/services/navbar.js
Open-ILS/web/js/ui/default/staff/services/startup.js