Bugzilla – Attachment 51460 Details for
Bug 16507
Show play media tab first
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16507: Show play media tab first if record has no holdings
Bug-16507-Show-play-media-tab-first-if-record-has-.patch (text/plain), 2.19 KB, created by
Aleisha Amohia
on 2016-05-12 23:44:15 UTC
(
hide
)
Description:
Bug 16507: Show play media tab first if record has no holdings
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-05-12 23:44:15 UTC
Size:
2.19 KB
patch
obsolete
>From 73b5ed1a99ba58a5b96dde54b6f508be1d74b69d Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Thu, 12 May 2016 23:40:56 +0000 >Subject: [PATCH] Bug 16507: Show play media tab first if record has no > holdings > >To test: >1) Go to Admin -> Global sysprefs >2) Turn on HTML5MediaEnabled and HTML5MediaYouTube >3) Go to Cataloging and create a new record >4) Catalogue a YouTube link in 856$u and save record. Do not add any items (click Normal tab) >5) Confirm that Play media tab shows first >6) Add an item then go back to Normal tab >7) Confirm that Holdings tab now shows first and Play media tab is last > >Sponsored-by: Catalyst IT >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index fee31d8..faf30e6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -549,6 +549,7 @@ function verify_images() { > <div id="bibliodetails" class="toptabs"> > > <ul> >+[% IF ( count == 0 ) %][% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %][% END %] > [% IF (SeparateHoldings) %] > <li><a href="#holdings">[% LoginBranchname %] holdings</a></li> > <li><a href="#otherholdings">Other holdings</a></li> >@@ -560,7 +561,7 @@ function verify_images() { > [% IF Koha.Preference('AcquisitionDetails') %]<li><a href="#acq_details">Acquisition details</a></li>[% END %] > [% IF ( FRBRizeEditions ) %][% IF ( XISBNS ) %]<li><a href="#editions">Editions</a></li>[% END %][% END %] > [% IF ( LocalCoverImages ) %][% IF ( localimages || CAN_user_tools_upload_local_cover_images ) %]<li><a href="#images">Images</a></li>[% END %][% END %] >-[% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %] >+[% IF ( count > 0 ) %][% IF ( HTML5MediaEnabled ) %][% IF ( HTML5MediaSets ) %]<li><a href="#html5media">Play media</a></li>[% END %][% END %][% END %] > </ul> > > [% items_table_block_iter = 0 %] >-- >1.7.10.4
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 16507
:
51457
|
51460
|
51733
|
51766
|
52948
|
53555
|
53696