Bugzilla – Attachment 52948 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.94 KB, created by
Aleisha Amohia
on 2016-06-30 00:14:08 UTC
(
hide
)
Description:
Bug 16507: Show play media tab first if record has no holdings
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-06-30 00:14:08 UTC
Size:
2.94 KB
patch
obsolete
>From 57bc8045c5f7bccf338f160ecaca472caaa3e3d8 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Thu, 30 Jun 2016 00:03:23 +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 is the selected tab by default >6) View record on OPAC and confirm Play media tab is selected by default >7) Go back to staff client, add an item then go back to Normal tab >8) Confirm that Holdings tab is now selected by default >9) Confirm Holdings tab is selected by default on OPAC > >Sponsored-by: Catalyst IT >--- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 1 + > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 2 +- > opac/opac-detail.pl | 2 ++ > 3 files changed, 4 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 e8de754..b97ac10 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -169,6 +169,7 @@ function verify_images() { > > $(document).ready(function() { > $('#bibliodetails').tabs(); >+ [% IF count == 0 %]$('#bibliodetails').tabs("option", "active", 3);[% END %] > $('#search-form').focus(); > $('.thumbnails > li > a > span.remove').click(function() { > var result = confirm(_("Are you sure you want to delete this cover image?")); >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 10619b0..10bc4ac 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt >@@ -604,7 +604,7 @@ > [% END %] > > [% IF ( HTML5MediaEnabled && HTML5MediaSets ) %] >- <li id="tab_html5media"><a href="#html5media">Play media</a></li> >+ [% IF ( defaulttab == 'media' ) %]<li id="tab_html5media" class="ui-tabs-active">[% ELSE %]<li id="tab_html5media">[% END %]<a href="#html5media">Play media</a></li> > [% END %] > > [% IF ( IDreamBooksReviews ) %] >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 98afe3e..20f1b0d 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -1123,6 +1123,8 @@ my $defaulttab = > ? 'serialcollection' : > $opac_serial_default eq 'holdings' && scalar (@itemloop) > 0 > ? 'holdings' : >+ scalar (@itemloop) == 0 >+ ? 'media' : > $subscriptionsnumber > ? 'subscriptions' : > @serialcollections > 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