From 2e558fb3f545dc33841d75f962b70000e4d8edb1 Mon Sep 17 00:00:00 2001 From: Mazen Khallaf 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 --- koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt | 2 +- koha-tmpl/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 ) %] - [% IF ( intranetbookbag ) %] + [% IF (Koha.Preference("intranetbookbag")) %] [% IF ( incart ) %]
Add to cart 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 @@ Highlight | - [% IF ( intranetbookbag ) %] + [% IF (Koha.Preference("intranetbookbag")) %] 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 = "|