Bug 33398

Summary: Show primary_contact_method when holds are triggered
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: CirculationAssignee: Lucas Gass (lukeg) <lucas>
Status: RESOLVED FIXED QA Contact: Kyle M Hall (khall) <kyle>
Severity: enhancement    
Priority: P5 - low CC: caroline.cyr-la-rose, dcook, gmcharlt, kyle.m.hall, kyle, Laura.escamilla
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Caroline Cyr La Rose Documentation submission: https://gitlab.com/koha-community/koha-manual/-/merge_requests/985
Text to go in the release notes:
Version(s) released in:
23.11.00
Circulation function:
Bug Depends on:    
Bug Blocks: 38138    
Attachments: Bug 33398: Add primary_contact_method to display when triggering a waiting hold
Bug 33398: Add primary_contact_method to display when triggering a waiting hold
Bug 33398: Add primary_contact_method to display when triggering a waiting hold

Description Lucas Gass (lukeg) 2023-04-03 21:57:22 UTC
If a waiting hold is triggered a popup appears that includes "Patron notification:". This is based on the patron messaging preferences for 'Hold filled'.

We should allow libraries to choose between having this based on messaging preferences or primary_contact_method.
Comment 1 Katrin Fischer 2023-04-04 08:27:35 UTC
Hi Lucas,

I am not sure if I understand this one.

I think the idea of the display is to show if an email notification was sent out or not. The primary contact method from the patron record currently does have no effect and is only for display.

Maybe it could be shown additionally instead of instead?
Comment 2 Lucas Gass (lukeg) 2023-04-04 14:06:13 UTC
(In reply to Katrin Fischer from comment #1)
> Hi Lucas,
> 
> I am not sure if I understand this one.
> 
> I think the idea of the display is to show if an email notification was sent
> out or not. The primary contact method from the patron record currently does
> have no effect and is only for display.
> 
> Maybe it could be shown additionally instead of instead?

Showing it additionally would be fine with me. Changing the title of this bug to reflect that.
Comment 3 Lucas Gass (lukeg) 2023-04-04 15:47:20 UTC
Created attachment 149136 [details] [review]
Bug 33398: Add primary_contact_method to display when triggering a waiting hold

To test:
1. Apply patch, yarn build
2. Trigger a waiting hold for a patron that has a value for primary_contact_method
3. Notice the modal now includes a line indicating the primary_contact_method.
4. Trigger a hold for a patron without a primary_contact_method. Nothing should display.
Comment 4 ByWater Sandboxes 2023-04-05 12:54:16 UTC
Created attachment 149202 [details] [review]
Bug 33398: Add primary_contact_method to display when triggering a waiting hold

To test:
1. Apply patch, yarn build
2. Trigger a waiting hold for a patron that has a value for primary_contact_method
3. Notice the modal now includes a line indicating the primary_contact_method.
4. Trigger a hold for a patron without a primary_contact_method. Nothing should display.

Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
Comment 5 Kyle M Hall (khall) 2023-04-28 17:08:11 UTC
Created attachment 150399 [details] [review]
Bug 33398: Add primary_contact_method to display when triggering a waiting hold

To test:
1. Apply patch, yarn build
2. Trigger a waiting hold for a patron that has a value for primary_contact_method
3. Notice the modal now includes a line indicating the primary_contact_method.
4. Trigger a hold for a patron without a primary_contact_method. Nothing should display.

Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 6 Tomás Cohen Arazi (tcohen) 2023-06-12 18:46:20 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 7 Martin Renvoize (ashimema) 2023-07-17 07:19:26 UTC
Enhancement, no backport for 23.05.x