From 2a611c6e1d9955aaa1077762f0011fbc2ae10272 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 12 May 2020 15:13:44 +0200 Subject: [PATCH] Bug 20783: Similar changes for OPAC Signed-off-by: Kelly McElligott Signed-off-by: Jessica Zairo Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi Signed-off-by: Hayley Mapley (cherry picked from commit cd52f4439ba31ccd2af71541678100cb98ab5f36) Signed-off-by: Victor Grousset/tuxayo --- .../bootstrap/en/modules/opac-detail.tt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 9bea171ce0..71e68131b1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -609,7 +609,7 @@
  • Images
  • [% END %] - [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %] + [% IF HTML5MediaEnabled && HTML5MediaSets.size %] [% IF ( defaulttab == 'media' ) %]
  • [% ELSE %]
  • [% END %]Play media
  • [% END %] @@ -1016,11 +1016,16 @@
    [% FOREACH HTML5MediaSet IN HTML5MediaSets %]

    - [% SET ctrl_preload = ' controls preload=none' #translatability %] - <[% HTML5MediaParent _ ctrl_preload | html %] > - <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] /> - [[% HTML5MediaParent | html %] tag not supported by your browser.] - + [% IF HTML5MediaSet.is_youtube %] + + [% ELSE %] + [% SET ctrl_preload = ' controls preload=none' #translatability %] + <[% HTML5MediaParent _ ctrl_preload | html %] > + <[% HTML5MediaSet.child | html %] src="[% HTML5MediaSet.srcblock | html %]" [% HTML5MediaSet.typeblock | html %] /> + [[% HTML5MediaParent | html %] tag not supported by your browser.] + + [% END %]

    [% END %]
    -- 2.39.5