PINES/GALILEO avoid auth redirect within library
authorBill Erickson <berick@esilibrary.com>
Wed, 25 Sep 2013 19:18:35 +0000 (15:18 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2016 12:41:11 +0000 (07:41 -0500)
If the physical_loc is set, indicating the patron is physically at a
branch (via IP redirect), link directly to the GALILEO site with no
authentication pass-through.  GALILEO does not requires PINES auth
if the client is coming from a known IP address.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Conflicts:
Open-ILS/src/templates/opac/parts/footer.tt2

Open-ILS/src/templates/opac/parts/footer.tt2

index 87ee1d9..005b1e8 100644 (file)
     <a href="[% mkurl(ctx.opac_root _ '/register') %]">
            [% l('Apply for a PINES Library Card') %]</a><br/>
     [% END %]   
-    <a href="http://gapines.org/eg/opac/galileo">
+    [% IF ctx.physical_loc;
+        # patron is at the branch, no redirect needed
+        gurl = 'http://www.galileo.usg.edu/express';
+    ELSE;
+        # send patron to galileo auth redirector
+        gurl = mkurl(ctx.opac_root _ '/galileo', {}, 1);
+    END %]
+   <a href="[% gurl %]">
                [% l('GALILEO Research Databases') %]</a><br/>
        <a href="http://pines.georgialibraries.org/about">
            [%- l('Learn More About PINES') %]</a><br/>
@@ -39,7 +46,6 @@
        <hr style="margin-top:20px;">
 </div> 
        
-       
     [% IF ctx.timing %]
     <div id="timing">
         [% FOR event IN ctx.timing %]