From: Jeff Godin Date: Tue, 3 Apr 2012 18:39:52 +0000 (-0400) Subject: Use a default auri label instead of http:// urls X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ce5d1978c725bbf64e88832e9ad8754418d526c8;p=evergreen%2Ftadl.git Use a default auri label instead of http:// urls Use a default auri label in search results and record summary pages. This is mostly to prevent the symptoms of LP 918020 but may be more generally useful as well. Also, use css_button class for BibTemplate-generated auri links in a record summary. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/web/opac/skin/tadlv2/js/rdetail.js b/Open-ILS/web/opac/skin/tadlv2/js/rdetail.js index ba8f086410..beb53218ed 100644 --- a/Open-ILS/web/opac/skin/tadlv2/js/rdetail.js +++ b/Open-ILS/web/opac/skin/tadlv2/js/rdetail.js @@ -541,6 +541,10 @@ function _rdetailDraw(r) { displayLabel = note; } } + // Latch-ditch attempt to prevent URLs as display labels + if (displayLabel.substring(0,7) == 'http://') { + displayLabel = 'Connect to this resource online'; + } $('rdetail_online').appendChild(elem('a', {href:href,'class':'css_button'}, displayLabel)); if (note && note != displayLabel) { $('rdetail_online').appendChild(elem('span', {'class':'url_note'}, ' - ' + note)); diff --git a/Open-ILS/web/opac/skin/tadlv2/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/tadlv2/xml/rdetail/rdetail_summary.xml index 3bc25f0283..90dd95eb8a 100644 --- a/Open-ILS/web/opac/skin/tadlv2/xml/rdetail/rdetail_summary.xml +++ b/Open-ILS/web/opac/skin/tadlv2/xml/rdetail/rdetail_summary.xml @@ -133,7 +133,12 @@ &rdetail.summary.online;