]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1996818 Issues Placing Holds from the Patron Record
authorDan Briem <dbriem@wlsmail.org>
Fri, 26 May 2023 16:24:54 +0000 (16:24 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 13 Jun 2023 13:39:11 +0000 (09:39 -0400)
commit2a2af7843d2db0440ffb3b0fe4c59e3157af35f9
tree90b888578508a865ff25a242f2a55616656eaa87
parente62173478e9e509f3f8c225b4ea262e0ffb18dfa
LP#1996818 Issues Placing Holds from the Patron Record

Set the hold target using the same cookie Angular uses when
placing holds from AngularJS patron records.

Clear the cookie and broadcast to all catalog tabs to remove
the hold target when:
- the Clear button for the hold target is pressed
- the hold interface loads a different patron
- a different Angular route loads
- AngularJS app starts (left the Angular context)

When a catalog tab is closed, clear the cookie and broadcast
it so that any open catalog tabs can restore it.

To test:
1. After loading the patch, build Angular and AngularJS
2. Place a hold from AngJS patron record, note target is set
3. Open multiple catalog tabs
5. Close one catalog tab, note target persists in other tabs
6. Click Clear button, note target is cleared in all tabs
7. Repeat steps 2-3, load a different patron in the hold
   interface, note target is cleared in all tabs
8. Repeat steps 2-3, click the home icon in the navbar, note
   target is cleared in all tabs
9. Repeat steps 2-3, click AngJS Check Out in the navbar,
   note target is cleared in all tabs

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/catalog/catalog.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/catalog.service.ts
Open-ILS/web/js/ui/default/staff/circ/patron/holds.js
Open-ILS/web/js/ui/default/staff/services/startup.js