@@ -, +, @@
is set to
- Have HTML5MediaEnabled set to 'opac' or 'not at all'
- Open the detail page of a record with no holdings
- Apply this patch
- Reload
- Sign off :-D
---
.../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -896,9 +896,11 @@
$(document).ready(function() {
$('#bibliodetails').tabs();
- [% IF count == 0 %]
- $('#bibliodetails').tabs("option", "active", 3);
- [% END %]
+ [% IF count == 0 and
+ ( Koha.Preference('HTML5MediaEnabled') == 'staff' or
+ Koha.Preference('HTML5MediaEnabled') == 'both' ) %]
+ $('#bibliodetails').tabs("option", "active", 3);
+ [% END %]
$('#search-form').focus();
$('.thumbnails > li > .remove').click(function() {
var result = confirm(_("Are you sure you want to delete this cover image?"));
--