From ce5d1978c725bbf64e88832e9ad8754418d526c8 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Tue, 3 Apr 2012 14:39:52 -0400 Subject: [PATCH] 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 --- Open-ILS/web/opac/skin/tadlv2/js/rdetail.js | 4 ++++ Open-ILS/web/opac/skin/tadlv2/xml/rdetail/rdetail_summary.xml | 7 ++++++- Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) 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;