Comment 3 for bug 1684988

Jeff Davis (jdavis-sitka) wrote :

Working branch user/jeffdavis/lp1684988-web-client-opt-in has a fix for this issue:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=commitdiff;h=947d0f27

On patron retrieval, an opt-in check is performed. If required, a dialog appears so that staff can opt-in the patron at their library. If opt-in is disallowed by the patron's home library, an alert message appears indicating that the patron cannot be retrieved. This fix works for me when retrieving a patron by barcode scan, patron search, and via item circ history.

NB: This fix does not prevent the patron search results grid from displaying personal information (name, address, etc.) for patrons who have not been opted-in. We should probably open a separate bug for that.

Test plan for regular opt-in boundaries:

1. Ensure the org.patron_opt_boundary org setting is set for your working location.
2. Attempt to retrieve a patron from outside the boundary. The opt-in dialog appears.
3. Click Cancel. The patron is not retrieved.
4. Retrieve the patron again. The opt-in dialog appears.
5. Click OK/Continue. The patron is opted-in and retrieved.
6. Retrieve the patron again. Thhis time, their account is retrieved directly since they have been opted-in.

Test plan for restricted opt-in:

1. Ensure the org.patron_opt_boundary org setting is set for your working location.
2. Set the org.restrict_opt_to_depth org setting for a library outside your opt-in boundary.
3. Attempt to retrieve a patron from that library. An alert message appears and the patron cannot be retrieved.