Bugzilla – Attachment 115339 Details for
Bug 27324
Use Koha.Preference() for intranetbookbag everywhere
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27324: Use Koha.Preference() for intranetbookbag everywhere
Bug-27324-Use-KohaPreference-for-intranetbookbag-e.patch (text/plain), 3.04 KB, created by
Martin Renvoize (ashimema)
on 2021-01-19 16:54:47 UTC
(
hide
)
Description:
Bug 27324: Use Koha.Preference() for intranetbookbag everywhere
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-01-19 16:54:47 UTC
Size:
3.04 KB
patch
obsolete
>From 1a3fb2031007b5ace4bf117d9492017968733a42 Mon Sep 17 00:00:00 2001 >From: Mazen Khallaf <mazen.i.khallaf@gamil.com> >Date: Tue, 19 Jan 2021 02:25:08 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- > .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index d55c57cdff..a467c7a27f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >index ebb64f26ce..434f3d0f55 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt >@@ -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> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >index 61d3b9bbe1..3c55406ab2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt >@@ -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') %] >-- >2.20.1
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 27324
:
115287
|
115336
|
115337
| 115339 |
115340