Bugzilla – Attachment 81713 Details for
Bug 21476
Incorrect filter prevents HTML5 media from playing in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21476: Fix YouTube propgation
Bug-21476-Fix-YouTube-propgation.patch (text/plain), 1.48 KB, created by
Nick Clemens (kidclamp)
on 2018-10-31 12:23:50 UTC
(
hide
)
Description:
Bug 21476: Fix YouTube propgation
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-10-31 12:23:50 UTC
Size:
1.48 KB
patch
obsolete
>From f5e35c44e4fc9286b7b9540920a4375d1c127295 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 31 Oct 2018 12:18:58 +0000 >Subject: [PATCH] Bug 21476: Fix YouTube propgation > >The loop to find all media has an $isyoutube variable. This was declared >outside the loop and never reset. Once a YouTube video was encountered >all subsequent videos were considered as YouTube. This patch reduces the >scope of the variable and resets per loop. > >To test: >1 - Enable HTML5Media and HTML5MediaYouTube >2 - Add 856$u to record for a youtube vido and a pdf (sample record > attached to bug) >3 - View the record, the Play media tab has two video boxes >4 - Play the second, it fails >5 - Apply patch >6 - View record, Play media should include only one video link >--- > C4/HTML5Media.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/HTML5Media.pm b/C4/HTML5Media.pm >index 1ac22f17c3..c77e8a40bc 100644 >--- a/C4/HTML5Media.pm >+++ b/C4/HTML5Media.pm >@@ -50,8 +50,8 @@ sub gethtml5media { > my @HTML5MediaExtensions = split( /\|/, C4::Context->preference("HTML5MediaExtensions") ); > my $HTML5MediaYouTube = C4::Context->preference("HTML5MediaYouTube"); > my $marcflavour = C4::Context->preference("marcflavour"); >- my $isyoutube = 0; > foreach my $HTML5Media_field (@HTML5Media_fields) { >+ my $isyoutube = 0; > my %HTML5Media; > # protocol > if ( $HTML5Media_field->indicator(1) eq '1' ) { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21476
:
80932
|
81013
|
81047
|
81713
|
81714
|
81721
|
81780