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:
Mazen Khallaf 2021-01-19 02:25:08 +00:00 committed by Jonathan Druart
parent e1cbdc3691
commit 77f36d49a6
3 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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') %]