Re-add GALILEO features.
authorChris Sharp <csharp@georgialibraries.org>
Tue, 6 Mar 2018 15:12:44 +0000 (10:12 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 6 Mar 2018 15:12:44 +0000 (10:12 -0500)
Open-ILS/src/templates/opac/parts/footer.tt2
Open-ILS/src/templates/opac/parts/topnav_links.tt2

index 6d7a3b4..c891a5a 100644 (file)
     <a href="[% mkurl(ctx.opac_root _ '/register') %]">
            [% l('Request 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/>
@@ -43,7 +50,6 @@
        <hr style="margin-top:20px;">
 </div> 
        
-       
     [% IF ctx.timing %]
     <div id="timing">
         [% FOR event IN ctx.timing %]
@@ -58,7 +64,7 @@
     <div id="footer_logo">
         [% l('Powered by') %]
         <a href="http://evergreen-ils.org">
-            <img src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png[% ctx.cache_key %]"
+            <img src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png"
                 style="border:none; width: 94px; height: 18px;"
                 alt="[% l('Evergreen') %]"
             />
index 3a77565..a87297a 100644 (file)
            <img alt="[% l('Kids Catalog') %]" src="[% ctx.media_prefix %]/images/navbar-kids.png" />
                [% l("Kids Catalog") %]</a> 
     <!-- <a href="http://pines.georgialibraries.org/about">[% l('About PINES') %]</a> -->
-       <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 %]">
            <img alt="[% l('GALILEO') %]" src="[% ctx.media_prefix %]/images/navbar-galileo.png" />
                [% l('GALILEO') %]</a>
     <a href="http://pines.georgialibraries.org/catalog-help">
@@ -28,4 +35,5 @@
     </div>
 </div>
 
-<div style="clear:both;" />
\ No newline at end of file
+<div style="clear:both;" />
+