LP#1709521 Webstaff show recent patrons
authorBill Erickson <berickxx@gmail.com>
Sat, 12 Aug 2017 15:52:40 +0000 (11:52 -0400)
committerKathy Lussier <klussier@masslnc.org>
Tue, 29 Aug 2017 14:17:04 +0000 (10:17 -0400)
commit8376123cd2fbf4d1fb7607042393d0c5c7882ea5
tree66a8b12f430e4035d8d79baeb185ab253ee1833e
parent8c7bdaa944117eb29cce47d5d23a842db1586596
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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
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