From a1a238dff029a0ab1afb79a9d96f536c6b118b9b 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: Kelly McElligott --- koha-tmpl/opac-tmpl/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 b6c926dbf1..b7bb3b0025 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -551,7 +551,7 @@
  • Images
  • [% END %] - [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %] + [% IF HTML5MediaEnabled && HTML5MediaSets.size %] [% IF ( defaulttab == 'media' ) %]
  • [% ELSE %]
  • [% END %]Play media
  • [% END %] @@ -955,11 +955,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.11.0