LP#1712840: extend fix to circ and holds history tabs
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 25 Aug 2017 14:29:43 +0000 (10:29 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 25 Aug 2017 18:44:48 +0000 (14:44 -0400)
This patch fixes the remaining two instances of a
bare 'IF ebook_api.enabled' test.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/opac/myopac/circ_history.tt2
Open-ILS/src/templates/opac/myopac/hold_history.tt2

index c7969d7..a755837 100644 (file)
@@ -14,7 +14,7 @@
         <div class="align">
             <a href='[% mkurl('circs',{},1) %]'>[% 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 c43d76f..a1a22b8 100644 (file)
@@ -15,7 +15,7 @@
         <div class="align">
             <a href='[% mkurl('holds',{},['limit','offset']) %]'>[% 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>