online resources now show the name if available
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Jun 2006 21:59:16 +0000 (21:59 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 14 Jun 2006 21:59:16 +0000 (21:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4623 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/rdetail.js

index eb97f18..b1089be 100644 (file)
@@ -48,12 +48,6 @@ var rdetailEnd = null;
 record cache, if so, set up the nav links */
 function rdetailSetPaging(ids) {
 
-       /*
-       cachedRecords = JSON2js(cookieManager.read(COOKIE_SRIDS));
-       if(!(cachedRecords && cachedRecords.ids)) return;
-       */
-
-       //alert(getOffset());
        cachedRecords = {};
        cachedRecords.ids = ids;
 
@@ -242,7 +236,9 @@ function _rdetailDraw(r) {
                var href = links[i];
                if( href.match(/http/) ) {
                        unHideMe($('rdetail_online_row'));
-                       $('rdetail_online').appendChild(elem('a', {href:href,class:'classic_link'}, href));
+                       var name = links[i+1];
+                       if(!name || name.match(/http/)) name = href;
+                       $('rdetail_online').appendChild(elem('a', {href:href,class:'classic_link'}, name));
                        $('rdetail_online').appendChild(elem('br'));
                }
        }