From e875d886a0af58fe5d2aa39ed6087e99a2006f6b 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 Signed-off-by: Jessica Zairo Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 953d0d89d0597b23527c9d57d35885a86f93d6b2) Signed-off-by: Lucas Gass --- .../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.39.5