LP#1712840 Ebook tabs always visible in My Account
authorMcCanna <tmccanna@georgialibraries.org>
Fri, 25 Aug 2017 13:53:14 +0000 (09:53 -0400)
committerBen Shum <ben@evergreener.net>
Sat, 26 Aug 2017 22:47:53 +0000 (18:47 -0400)
Corrects a problem in My Account where the ebook tabs
on the checkouts and holds pages were always visible
regardless of whether the ebook_api.enabled value was
set to true or false.

Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Ben Shum <ben@evergreener.net>
Open-ILS/src/templates/opac/myopac/circs.tt2
Open-ILS/src/templates/opac/myopac/holds.tt2

index 92ae989..1b0683c 100644 (file)
@@ -10,7 +10,7 @@
         <div class="align selected">
             <a href="#">[% l("Current Items Checked Out") %]</a>
         </div>
-        [%- IF ebook_api.enabled %]
+        [%- IF ebook_api.enabled == 'true' %]
         <div class="align">
             <a href="[% mkurl('ebook_circs',{},1) %]">[% l("E-Items Currently Checked Out") %]</a>
         </div>
index 100e806..5a0c3c4 100644 (file)
@@ -15,7 +15,7 @@
         <div class="align selected">
             <a href='#'>[% l("Items on Hold") %]</a>
         </div>
-        [% IF ebook_api.enabled %]
+        [% IF ebook_api.enabled == 'true' %]
         <div class="align">
             <a href='[% mkurl('ebook_holds', {}, ['limit','offset','available','sort','sort_type']) %]'>[% l("E-Items on Hold") %]</a>
         </div>