* adds a GALILEO link in the footer template
* adds a new TPAC URL target for /eg/opac/galileo, which redirects the
user to the GALILEO URL, ensuring the user is first logged in.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
return $self->load_myopac_prefs if $path =~ m|opac/myopac/prefs|;
return $self->load_sms_cn if $path =~ m|opac/sms_cn|;
+ return $self->load_galileo if $path =~ m|opac/galileo|;
+
return Apache2::Const::OK;
}
);
}
+
+sub load_galileo {
+ my $self = shift;
+
+ my $token = $U->simplereq(
+ 'open-ils.actor',
+ 'open-ils.actor.session.safe_token',
+ $self->ctx->{authtoken}
+ );
+
+ return $self->generic_redirect(
+ "https://www.galileo.usg.edu/express?pinesid=$token");
+}
+
+
1;
<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> |
- <a href="http://www.galileo.usg.edu/">[% l('GALILEO') %]</a>
+ [% gurl = mkurl(ctx.opac_root _ '/galileo', {}, 1) %]
[% IF ctx.timing %]
<div id="timing">
[% FOR event IN ctx.timing %]