[Koha-bugs] [Bug 34613] Remove onclick event attributes from Verovio midiplayer.js

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 25 03:30:08 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34613

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Created attachment 154767
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154767&action=edit
Bug 34613: Replace onclick attributes in midiplayer.js

This patch replaces the onclick attributes in midiplayer.js
with Javascript click handlers.

To test:
0. Apply patch
1. Clear browser cache (it may be necessary to go into the
Network tab and explicitly disable cache)
2. Add 031 subfields 2gopnu to Default framework
3. Create a catalogue record with a 031 like follows:
2: pe
g: G-2
o: 4/4
p: 4bB''C2bE/2F4GbB/'bB2''C4D/F2.bE/4GG2bB/4'''C2C4''bB/4bE2G4bB/4bE2.F/
n: xFCGD
4. Enable the following sysprefs:
OPACShowMusicalInscripts
OPACPlayMusicalInscripts
5. Go to OPAC record view and click "Play this sample"
6. Play with the "Pause/Start" and "Stop" buttons
7. If the buttons work, it means the patch worked

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list