LP#2009725 Place holds for recent patrons user/dbriem/lp2009725_place_holds_for_recent_patrons
authorDan Briem <dbriem@wlsmail.org>
Thu, 9 Mar 2023 20:17:45 +0000 (20:17 +0000)
committerDan Briem <dbriem@wlsmail.org>
Thu, 9 Mar 2023 20:17:45 +0000 (20:17 +0000)
commitb1327990992179c68e192776d3b757886c19dcdb
tree1759dfab92ac08598cc9c93ace1846e0df1e1e0c
parent2b28077d7b72b3f142c41efb64247627e3621101
LP#2009725 Place holds for recent patrons

Adds a button to the holds interface to retrieve the last patron
or show a dialog of recent patrons depending on the Number of
Retrievable Patrons org unit setting.

When a patron is loaded in the holds interface, they are added
to the recent patrons list.

- If the Number of Retrievable Recent Patron setting is < 1,
  the button doesn't appear.

- If the setting is 1 or unset (1 is default), clicking loads
  the last patron.

- If the setting is greater than 1, clicking shows a dialog of
  recent patrons to select from.

- If there are no recent patrons, the button is disabled.

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.html
Open-ILS/src/eg2/src/app/staff/catalog/hold/hold.component.ts
Open-ILS/src/eg2/src/app/staff/share/patron/search-dialog.component.html
Open-ILS/src/eg2/src/app/staff/share/patron/search-dialog.component.ts