Bug 33731

Summary: Allow audio alerts to be used on SCO pages
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: System AdministrationAssignee: Lucas Gass (lukeg) <lucas>
Status: RESOLVED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, josef.moravec, Laura.escamilla, lisette, lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Makes audio alerts accessible in the self checkout module by default. Staff can now pick sounds from the list in the Audio alerts configuration and no longer need a full path URL to make sounds available in the self checkout module.
Version(s) released in:
24.11.00
Circulation function:
Attachments: Bug 33731: Allow for default sounds on SCO page
Bug 33731: Allow for default sounds on SCO page
Bug 33731: Allow for default sounds on SCO page

Description Katrin Fischer 2023-05-14 12:33:04 UTC
The self checkout pages implement Audio alerts, but you can't pick a sound from the list, but have to enter a full URL instead in order to make them work (see bug 22406). This is not obvious and a little hint would be nice until this can be fixed.
Comment 1 Katrin Fischer 2023-09-23 10:32:21 UTC
*** Bug 22406 has been marked as a duplicate of this bug. ***
Comment 2 Lucas Gass (lukeg) 2024-08-14 16:44:09 UTC
Created attachment 170325 [details] [review]
Bug 33731: Allow for default sounds on SCO page

To test:
1. APPLY PATCH
2. Enable AudioAlerts system preferencce
3. Set up some audio alerts to trigger on the SCO page. ( I used #sco_main for east testing)
4. Make sure the sounds work properly.

Note: It is not my favorite thing to duplicate these assets for intranet and OPAC, is there a better way?
Comment 3 Lucas Gass (lukeg) 2024-08-14 16:47:47 UTC
Created attachment 170326 [details] [review]
Bug 33731: Allow for default sounds on SCO page

To test:
1. APPLY PATCH
2. Enable AudioAlerts system preferencce
3. Set up some audio alerts to trigger on the SCO page. ( I used #sco_main for east testing)
4. Make sure the sounds work properly.

Note: It is not my favorite thing to duplicate these assets for intranet and OPAC, is there a better way?

	modified:   koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/IM_notification.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/beep.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/call.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/critical.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/device_connect.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/device_disconnect.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/ending.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/fail.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/incoming_call.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/loading.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/loading_2.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/maximize.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/minimize.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/new_mail_notification.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/opening.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/panic.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/popup.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/warning.ogg
Comment 4 Laura Escamilla 2024-08-14 17:48:53 UTC
Created attachment 170327 [details] [review]
Bug 33731: Allow for default sounds on SCO page

To test:
1. APPLY PATCH
2. Enable AudioAlerts system preferencce
3. Set up some audio alerts to trigger on the SCO page. ( I used #sco_main for east testing)
4. Make sure the sounds work properly.

Note: It is not my favorite thing to duplicate these assets for intranet and OPAC, is there a better way?

	modified:   koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/IM_notification.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/beep.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/call.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/critical.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/device_connect.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/device_disconnect.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/ending.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/fail.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/incoming_call.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/loading.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/loading_2.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/maximize.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/minimize.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/new_mail_notification.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/opening.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/panic.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/popup.ogg
	new file:   koha-tmpl/opac-tmpl/bootstrap/sound/warning.ogg

Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Comment 5 Katrin Fischer 2024-09-02 09:08:58 UTC
I am not aware of another way right now. Maybe having a full patch URL to the staff interface...? As we are not talking a lot of big files, I am OK with this until we have a better idea for shared files in general.
Comment 6 Katrin Fischer 2024-09-02 10:20:57 UTC
Pushed for 24.11!

Well done everyone, thank you!