LP1910288 Bootstrap opac: E-items lines always display in account summary.
authorGarry Collum <gcollum@gmail.com>
Tue, 5 Jan 2021 21:26:55 +0000 (16:26 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 26 May 2021 18:54:03 +0000 (14:54 -0400)
The E-item summary of ckos and holds always display in the My Account Summary of the Bootstrap Opac
regardless of the ebook_api.enabled flag in config.tt2.  This fixes that issue.

It also sets both the ebook_api.enabled and ebok_api.ebook_test.enabled flags to default to false.

To test:
1. Set ebook_api.enabled in config.tt2 to false.
2. Look at a patron's account summary and notice that it displays the e-item lines.
3. Apply the patch.
4. The E-item lines are now suppressed.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/templates-bootstrap/opac/myopac/main.tt2
Open-ILS/src/templates-bootstrap/opac/parts/config.tt2

index 2f61dcc..29b8198 100755 (executable)
@@ -50,6 +50,7 @@
                     </div>
                     <br><br>
 
+                    [% IF ebook_api.enabled == 'true' %]
                     <div class="col-12">
                      <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_circs') %]"
                             title="[% l('View My Checked Out E-Items') %]">
@@ -70,6 +71,7 @@
                             [% l("E-Items ready for pickup") %] (<span id="acct_sum_ebook_hold_ready_total">-</span>)
                         </a>
                     </div>
+                    [% END %]
 
                 </div>
 
index 6e45668..7409a4b 100755 (executable)
@@ -54,8 +54,8 @@ google_analytics.code = 'UA-9999999-99';
 ##############################################################################
 # Ebook API integration
 ##############################################################################
-ebook_api.enabled = 'true';
-ebook_api.ebook_test.enabled = 'true';
+ebook_api.enabled = 'false';
+ebook_api.ebook_test.enabled = 'false';
 ebook_api.ebook_test.base_uris = [ 'http://example.com/ebookapi/t/' ];
 ebook_api.oneclickdigital.enabled = 'false';
 ebook_api.oneclickdigital.base_uris = [ 'http://example.oneclickdigital.com/Products/ProductDetail.aspx' ];