Bug 27324: Use Koha.Preference() for intranetbookbag everywhere
Test Plan: 1. Check the shelves and results page in the intranet 2. Apply the page 3. Check theres no change Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e1cbdc3691
commit
77f36d49a6
|
|
@ -100,7 +100,7 @@ CAN_user_serials_create_subscription ) %]
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
[% IF ( intranetbookbag ) %]
|
||||
[% IF (Koha.Preference("intranetbookbag")) %]
|
||||
[% IF ( incart ) %]
|
||||
<div class="btn-group">
|
||||
<a id="cart[% biblionumber | html %]" class="btn btn-default addtocart incart" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@
|
|||
<a href="#" class="highlight_toggle" id="highlight_toggle_on">Highlight</a>
|
||||
|
|
||||
|
||||
[% IF ( intranetbookbag ) %]
|
||||
[% IF (Koha.Preference("intranetbookbag")) %]
|
||||
<div class="btn-group">
|
||||
<a id="cartsubmit" class="btn btn-default btn-xs" href="#"><i class="fa fa-shopping-cart"></i> Add to cart</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -561,7 +561,7 @@
|
|||
});
|
||||
$(".addtocart").show();
|
||||
var param1 = "| <label for=\"addto\">"+_("Add to:")+"<\/label><select name=\"addto\" id=\"addto\"><option value=\"\"><\/option>";
|
||||
[% IF ( intranetbookbag ) %]
|
||||
[% IF (Koha.Preference("intranetbookbag")) %]
|
||||
param1 += "<option value=\"addtocart\">"+_("Cart")+"<\/option>";
|
||||
[% END %]
|
||||
[% IF Koha.Preference('virtualshelves') %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue