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>
Thu, 17 Oct 2013 18:16:20 +0000 (14:16 -0400)
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 bae0a8c..23d1dc9 100644 (file)
@@ -5,7 +5,13 @@
     <a href="http://www.georgialibraries.org/lib/directories/pineslibdir.html">[% l('Find a Library Near Me') %]</a> &nbsp;|&nbsp;
     <a href="http://pines.georgialibraries.org/catalog-help">[% l('Help') %]</a> &nbsp;|&nbsp;
     <a href="http://www.georgialibraries.org/public/pines.html">[% l('About PINES') %]</a> &nbsp;|&nbsp;
-    [% gurl = mkurl(ctx.opac_root _ '/galileo', {}, 1) %]
+    [% 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') %] </a> &nbsp;|&nbsp;
     [% IF ctx.timing %]
     <div id="timing">