]> git.koha-community.org Git - koha.git/commit
Bug 21476: Fix HTML5 media from playing in the OPAC - incorrect filters
authorNick Clemens <nick@bywatersolutions.com>
Tue, 23 Oct 2018 12:30:25 +0000 (12:30 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 26 Nov 2018 06:34:17 +0000 (07:34 +0100)
commit57511ebc15068112b41163a8708d058a8af42985
tree9c35d353fc3c4b9dfce57ecd1dfc52d7b8e6d886
parentc18f11ff30288764181d2dc34a0d965516faa6c2
Bug 21476: Fix HTML5 media from playing in the OPAC - incorrect filters

This patch makes a correction to a template filter to prevent
incorrectly-encoded HTML in media source links which were preventing
media from embedding correctly in the OPAC.

To test, apply the patch and enable the HTML5MediaEnabled and
HTML5MediaYouTube system preferences.

- Edit a record to include links to videos in 856$u. For example:
  - https://www.youtube.com/watch?v=grTwH6Evdfc
    - https://archive.org/download/POPEYEMeetsSindbadTheSailor1936/POPEYE%20meets%20Sindbad%20The%20Sailor%20%281936%29.ogv

    View the record in the OPAC and confirm that the videos display in
    the
    "Play media" tab and that they play correctly.

Tested and works as described, also matches the intranet code.

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7736b5c2e32975502fa6198b5f7ec64feb7b8ffc)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 18bb4d5e66f4bfc74144bce2f730359b55526b08)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt