From 8106f3872ec653c6584e39595f63c4b2f0113df8 Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Tue, 3 Apr 2012 09:40:24 -0400 Subject: [PATCH] Display TADL ezproxy OPAC links in search results Feature the auri when it appears to be a TADL ezproxy link. Signed-off-by: Jeff Godin --- Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml b/Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml index 858d1468b0..4c628ebebf 100644 --- a/Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml +++ b/Open-ILS/web/opac/skin/tadlv2/xml/result/result_table.xml @@ -155,6 +155,17 @@ if (vol.getAttribute('opac_visible') == 'f') { return; } + dojo.query('uri', vol).forEach(function (uri) { + var urihref = uri.getAttribute('href'); + var urilabel = uri.getAttribute('label'); + if (urihref.substring(0,20) == "http://via.tadl.org/") { + var uri_entry = dojo.create('div', {"style":"padding-bottom: 5px;"}); + var link = dojo.create('a', {"class":"css_button", "href": urihref}, uri_entry); + var link_text = dojo.doc.createTextNode(urilabel); + link.appendChild(link_text); + output.appendChild(uri_entry); + } + }); dojo.query('copy', vol).forEach(function (cp) { if (item_cnt >= max_items) { return; -- 2.11.0