[open-ils-commits] r9999 -
branches/rel_1_2/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 8 23:11:59 EDT 2008
Author: miker
Date: 2008-07-08 23:11:57 -0400 (Tue, 08 Jul 2008)
New Revision: 9999
Modified:
branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rdetail.js
Log:
fixing display of online resources with all-numeric display labels (thanks to Dan Scott for the RBI)
Modified: branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rdetail.js
===================================================================
--- branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rdetail.js 2008-07-09 03:11:43 UTC (rev 9998)
+++ branches/rel_1_2/Open-ILS/web/opac/skin/default/js/rdetail.js 2008-07-09 03:11:57 UTC (rev 9999)
@@ -207,11 +207,11 @@
// see if the record has any external links
var links = record.online_loc();
- for( var i = 0; links && links.length > 0 && i < links.length; i++ ) {
+ for( var i = 0; links && links.length > 0 && i < links.length; i = i + 2 ) {
var href = links[i];
- if( href.match(/http/) ) {
+ if( href.match(/https?:|ftp:|mailto:/) ) {
unHideMe($('rdetail_online_row'));
- var name = links[i+1];
+ 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'));
More information about the open-ils-commits
mailing list