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
<a href="http://www.georgialibraries.org/lib/directories/pineslibdir.html">[% l('Find a Library Near Me') %]</a> |
<a href="http://pines.georgialibraries.org/catalog-help">[% l('Help') %]</a> |
<a href="http://www.georgialibraries.org/public/pines.html">[% l('About PINES') %]</a> |
- [% 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> |
[% IF ctx.timing %]
<div id="timing">