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>
Fri, 25 Aug 2017 02:03:26 +0000 (22:03 -0400)
commit3876d6ad634f8983a9e836953c175228cd660386
tree150577cc9f4cedf294fd562d94c10f5f03db5a6f
parentc77c6690b13fc28e2f5cbc542e4c858ae86c8ad6
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/patron_search.js
Open-ILS/web/js/ui/default/staff/services/startup.js