Stop saving patron barcode in cookies user/tsbere/fix_tpac_hold_patron
authorThomas Berezansky <tsbere@mvlc.org>
Fri, 30 Mar 2012 19:58:32 +0000 (15:58 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Fri, 30 Mar 2012 19:58:32 +0000 (15:58 -0400)
commit680535e0a8c5ab13c095da2689ff652789a2bca9
tree1f1e6eacd50e5e17f9098e5805eebfba4af59539
parent599bcc3b039db43edbf49350cbcde8d52f64880c
Stop saving patron barcode in cookies

This causes bad interactions between patron windows and normal catalog
windows. Examples:

Load a patron, load place hold catalog in patron window. Future loads of
non-patron catalogs will default to this patron.

Load Patron A from written note, and open Place Hold catalog. Start
searching for the item Patron A wants.
Get interupted by Patron B calling. Load Patron B, and open Place Hold
catalog. Search, place a hold for Patron B.
Return to Patron A, find item, go to place hold. Find Patron B's barcode
populated.

Instead, teach the staff javascript, that already knows how to load hold
preferences, how to grab the barcode from xulG. This barcode should be
specific to the patron window the catalog is embedded in, and won't 'leak'
to other catalog interfaces.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/templates/opac/parts/place_hold.tt2
Open-ILS/web/js/ui/default/opac/staff.js
Open-ILS/xul/staff_client/server/patron/holds.js