Online Renewal - Cleanup
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 1 Dec 2022 02:29:54 +0000 (21:29 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 1 Dec 2022 02:29:54 +0000 (21:29 -0500)
- Get rid of subroutine I didn't end up using
- Make sure a user is logged in before showing the renewal form.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm
Open-ILS/src/templates-bootstrap/opac/renew-account.tt2

index f64b030..1a8177a 100644 (file)
@@ -3575,12 +3575,7 @@ sub check_account_exp {
         href="/eg/opac/renew-account"><i class="fas fa-user-cog"></i>Click here to renew your account</a></span>';
     }
 
-    return;
-}
-
-# PINES - if account is eligible to renew, pass patron data to vendor to populate form
-sub load_renew_account {
-    return;
+    return 1;
 }
 
 1;
index 1465f48..128efd9 100644 (file)
@@ -105,7 +105,6 @@ sub log_params {
 
 #TERRAN - dump out all incoming stuff from form
 $logger->error("TERRAN - all incoming params: $msg");
-
 }
 
 sub handle_testmode_api {
index c093eab..0059a28 100644 (file)
@@ -5,11 +5,11 @@
     ctx.page_title = l("Renew Your Library Card");
 %]
 
+[% IF ctx.user %]
 <!-- eCARD scripts here -->
 <script id="eRenewServer" src="https://ecard.quipugroup.net/js/eRenewEmbed.js"></script>
 <script>loadQGeRenew(48)</script>
 
-
 <h2 class="sr-only">[% l('Renew Your Library Card') %]</h2>
 
 <div id="content-wrapper">
@@ -34,4 +34,5 @@
         <div class="common-full-pad"></div>    
     </div>
 </div>
+[% END %]
 [%- END %]