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>
<div id="footer-wrap">
<div id="footer">
<a href="/">[% l('Dynamic catalog') %]</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> |
<a href="http://example.com">[% l('Bottom Link 2') %]</a> |
<a href="http://example.com">[% l('Bottom Link 3') %]</a> |