authorSidebarTree = null;
seriesSidebarTree = null;
}
-
-
-
-
-/* --------------------------------------------------------------------------------- */
-/* Code to support GALILEO links for PINES. Fails gracefully
-/* --------------------------------------------------------------------------------- */
-attachEvt('common', 'init', buildEGGalLink);
-function buildEGGalLink() {
-
- /* we're in a lib, nothing to do here */
- if( getOrigLocation() ) return;
- if(!$('eg_gal_link')) return;
-
- //var link = 'http://demo.galib.uga.edu/express?pinesid=';
- var link = 'http://www.galileo.usg.edu/express?pinesid=';
- if(grabUser()) {
- $('eg_gal_link').setAttribute('href', link + G.user.session);
- return;
- }
-
- $('eg_gal_link').setAttribute('href', 'javascript:void(0);');
- $('eg_gal_link').setAttribute('target', '');
- $('eg_gal_link').onclick = function() {
- /* we're not logged in. go ahead and login */
- detachAllEvt('common','locationChanged');
- detachAllEvt('common','loggedIn');
- attachEvt('common','loggedIn', function() { goTo(link + G.user.session); })
- initLogin();
- };
-}
-/* --------------------------------------------------------------------------------- */
-
-
<script language='javascript' type='text/javascript' src='/opac/skin/kcls/js/marc.js'></script>
<script type="text/javascript"><![CDATA[
attachEvt("common", "init", function() {
- var here = findOrgUnit(getLocation());
- if (getDepth() > 0 || getDepth === 0 ) {
- while (getDepth() < findOrgDepth(here))
- here = findOrgUnit( here.parent_ou() );
- }
-
- new openils.BibTemplate(
- { record : new CGI().param('r'), org_unit : here.shortname() }
- ).render();
+ setTimeout(
+ function() {
+ var here = findOrgUnit(getLocation());
+ if (getDepth() > 0 || getDepth === 0 ) {
+ while (getDepth() < findOrgDepth(here))
+ here = findOrgUnit( here.parent_ou() );
+ }
+
+ new openils.BibTemplate(
+ { record : new CGI().param('r'), org_unit : here.shortname() }
+ ).render();
+ }, 10
+ );
});
]]></script>
<!--#endif-->