Renewal blocked due to holds ratio does not display block message

Bug #1234220 reported by Kathy Lussier
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
2.6
Fix Released
Undecided
Unassigned
2.7
Fix Released
Undecided
Unassigned

Bug Description

Evergreen version: master

In testing the minimum available copy/hold ratio in master, I was able to successfully block renewals for copies that had more existing holds than available copies. However, the message that displays to the user in the staff client and in tpac is "config_circ_matrix_test_available_copy_hold_ratio."

In looking at the code, it appears that there was an intent for the message to be "The available item-to-hold ratio is too low" since this message appears both in opac.dtd and in parts/hold_error_messages.tt2.

I guess there are two parts to this bug:

config_circ_matrix_test_available_copy_hold_ratio and also config.circ_matrix_test.total_copy_hold_ratio should probably be removed from hold_error_messages.tt2. The ratios are used in the circulation matrix, not the holds matrix, and typically are used to block renewals. I can't think of any use case where they would be used to block a hold.

tpac and the staff client somehow needs to be instrumented to display this block message at renewal time.

Ben Shum (bshum)
Changed in evergreen:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Joan Kranich (jkranich) wrote :

Confirmed in 2.5.5 on 8/21/2014.

Changed in evergreen:
status: Triaged → Confirmed
Revision history for this message
Bill Erickson (berick) wrote :

Self-check can perform renewals, so it may need fixing as well.

Revision history for this message
Bill Erickson (berick) wrote :

Scratch my last comment about self-check; confirmed it's displaying a sane message.

Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Code pushed:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/berick/lp1234220-hold-ratio-renewal-warning

This includes staff client and tpac renewal failure messages (comments welcome) and total/avail hold ratio override permissions.

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
tags: added: pullrequest
Changed in evergreen:
milestone: none → 2.8.0
Revision history for this message
Kathy Lussier (klussier) wrote :

Works for me! I tested the messages in both tpac and the staff client and also tested the new permissions.

Signoff is available at
http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/kmlussier/lp1234220-hold-ratio-renewal-warning

tags: added: signedoff
Revision history for this message
Bill Erickson (berick) wrote :

Thanks, Kathy! I'll merge this next week, after others have a chance to comment. Unless there are any objections, I'll also back-port to 2.7 and 2.8.

Bill Erickson (berick)
Changed in evergreen:
assignee: nobody → Bill Erickson (berick)
Revision history for this message
Bill Erickson (berick) wrote :

Merged to 2.6 and beyond.

Changed in evergreen:
assignee: Bill Erickson (berick) → nobody
status: Confirmed → Fix Committed
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.