]> git.koha-community.org Git - koha.git/commit
Bug 22581: Show and play musical inscripts
authorAgustin Moyano <agustinmoyano@theke.io>
Mon, 28 Oct 2019 21:15:22 +0000 (18:15 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Sun, 3 Nov 2019 08:11:38 +0000 (08:11 +0000)
commit426a055a07a6b8c019d71831f1cf7aca512ee592
tree5caceed81510bfedf4685dfc6e2146cfc1413b06
parent292262367ee39eb112b44b1dd27f8071521ab713
Bug 22581: Show and play musical inscripts

This patch adds musical inscripts to OPAC's detail page

To test:
1. run previous patch test plan
2. apply this patch
3. edit a the marc structure of a MARC bibliographic framework, and in tag 031 enable the following subfiels to be visible in editor: 2, g, n, o, p, u
4. search the catalog for a record that belongs to that framework, and edit tag 031 with the following:
   * 2:pe
   * g:G-2
   * n:xFCGD
   * o:3/8
   * p:'6B/{8B+(6B''E'B})({AFD})/{6.E3G},8B-/({6'EGF})({FAG})({GEB})/4F6-
   * u:http://nonexistent.org/url/of/a/midi
5. save and click in opac view
CHECK => even though you add a 031 tag there is no musical inscript shown in opac view
6. in admin module enable OPACShowMusicalInscripts preference
7. refresh opac view
SUCCESS => it takes a few seconds to load, but you see a link that says 'Audio file' pointing to the URL you placed in 'u' subfield, and below you see the musical inscript
8. in admin module enable OPACPlayMusicalInscripts preference
9. refresh opac view
SUCCESS => You see a play button below the musical inscript, and when you click, the song is played
10. sign off

Sponsored-by: Biblioteca Provincial Fr. Mamerto Esquiú (Provincia Franciscana de la Asunción)
Co-authored-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
12 files changed:
C4/XSLT.pm
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/NORMARCslim2OPACDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl
koha-tmpl/opac-tmpl/bootstrap/js/verovio.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/verovio/000_acoustic_grand_piano.data [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/verovio/000_acoustic_grand_piano.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/verovio/midiplayer.css [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/verovio/midiplayer.js [new file with mode: 0644]
koha-tmpl/opac-tmpl/lib/verovio/verovio-toolkit.js [new file with mode: 0644]
opac/opac-detail.pl