Placing holds as staff in traditional catalog in 3.7 doesn't always load user settings

Bug #1939426 reported by Dan Briem
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned
3.7
Fix Released
Undecided
Unassigned

Bug Description

This should only affect 3.7+ after the holds group feature was added in bug 1838995.

I'm not sure if the traditional/Bootstrap catalog embedded in the staff client is fully supported in 3.7, but when placing holds for a patron as staff, user settings like preferred pickup, phone, email, etc. don't load.

staff.js tries to access the "checked" property on an element that's only present when the holds group interface is present. If it's not a hold for a holds group, there's a TypeError before it finishes loading the patron.

Revision history for this message
Dan Briem (dbriem) wrote :

Clarification: the holds group interface only appears if hold groups exist in the system. So, this is only an issue for systems where no hold groups have been created.

tags: added: circ-holds
Revision history for this message
Heather Lindskold (heatherlindskold) wrote :

This bug affects users of the SPARK consortium, because we can only search the OPAC search groups via the Search Catalog-traditional option.

Changed in evergreen:
status: New → Confirmed
Revision history for this message
Heather Lindskold (heatherlindskold) wrote :

I asked Dale Rigney from Equinox for some comments on his research on this for PaILS:

I did test a workaround. This appears to be an issue with the HOLD GROUPS. If the staff member creates a Hold Group by going to Circulation -> Hold Groups and creates one via the New Hold Group button. After a Hold Group is created The Place Hold screen will load correctly and you will see a Place hold for patron Hold Group option, which is where the screen was getting an error.

This work around only works for title holds. Copy or Volume holds from the "traditional" search screen will still not work.

Dan Briem (dbriem)
Changed in evergreen:
assignee: nobody → Dan Briem (dbriem)
Revision history for this message
Dan Briem (dbriem) wrote :

Branch for testing: https://git.evergreen-ils.org/?p=working/Evergreen.git;a=commitdiff;h=cb603058248bee41ae2d27e721cc50ce441d53d5

When no hold groups exist, its interface isn't present. When placing volume holds, the advanced link isn't present. Accessing attributes on those missing elements cause errors that prevent the patron info from loading.

This checks that those elements exist before accessing their attributes and adds a missing name attribute to the Bootstrap catalog to display the email address.

tags: added: pullrequest
Changed in evergreen:
assignee: Dan Briem (dbriem) → nobody
Michele Morgan (mmorgan)
Changed in evergreen:
milestone: none → 3.8.1
Michele Morgan (mmorgan)
Changed in evergreen:
assignee: nobody → Michele Morgan (mmorgan)
Revision history for this message
Michele Morgan (mmorgan) wrote :

I've tested this patch by placing holds as a staff member in the traditional catalog and confirmed that the patron's user settings load when their barcode is entered.

- Tested both the TPAC and Bootstrap OPAC as the "traditional" catalog
- Tested title hold, call number hold, item hold
- Tested various combinations of patron user settings

In all cases the patron's preferences loaded when expected. Additionally, we have had this patch on our production system for almost two months after upgrading to 3.7.2.

I will open a separate bug for a remaining issue with the traditional catalog since 3.7 where clicking Submit on the place hold screen after retrieving a patron using Barcode Completion results in an internal server error.

Signoff branch on the way.

Revision history for this message
Michele Morgan (mmorgan) wrote (last edit ):

Promised signoff branch is here:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/lp1939426_place_holds_user_settings_signoff

user/mmorgan/lp1939426_place_holds_user_settings_signoff

tags: added: signedoff
Changed in evergreen:
assignee: Michele Morgan (mmorgan) → nobody
Revision history for this message
Mike Rylander (mrylander) wrote :

Thanks, Dan, Michele, and all! Branch merged to 3.7, 3.8, and master.

Changed in evergreen:
assignee: nobody → Mike Rylander (mrylander)
assignee: Mike Rylander (mrylander) → nobody
status: Confirmed → Fix Committed
Revision history for this message
Michele Morgan (mmorgan) wrote :

Just adding a link to the ISE bug mentioned in comment #5: bug 1965317

Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.