From 5e6c128abaf8911c47e26b87c1c6ae6118b51dd0 Mon Sep 17 00:00:00 2001
From: miker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Sun, 3 May 2009 12:06:14 +0000
Subject: [PATCH] improve example, removing all non-local links where this is
 at least one 856$9

git-svn-id: svn://svn.open-ils.org/ILS/trunk@13042 dcc99617-32d9-48b4-a31d-7c20da2025e4
---
 .../web/opac/skin/default/xml/rdetail/rdetail_summary.xml  | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
index 4232542672..aa08f78ece 100644
--- a/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
+++ b/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
@@ -106,9 +106,19 @@
 				<td class='rdetail_item' id='rdetail_online'></td>
 
             <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
-                 *** summary screen with complex information, such as location-specific URIs (856$9). -->
+                 *** summary screen with complex information, such as location-specific URIs (856$9).
+                 *** This replaces the <td> elements directly above.  -->
             <!--
-                <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes > volume > uris > uri' join=", ">
+   				<td nowrap='nowrap' class='rdetail_desc'>&rdetail.summary.online;
+                    <span class='hide_me' type='opac/slot-data' query='datafield[tag=856] subfield[code=9]'>
+                        <script type='opac/slot-format'><![CDATA[
+                            // There exists at least one localized URI. Clear all links.
+                            dojo.query('*:not([type^=opac])', 'rdetail_online').orphan();
+                            return '';
+                        ]]></script>
+                    </span>
+                </td>
+               <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes > volume > uris > uri' join=", ">
                     <script type='opac/slot-format'><![CDATA[
                         var link = '<a href="' + item.getAttribute('href') + '">' + item.getAttribute('label') + '</a>';
                         if (item.getAttribute('use_restriction')) link += ' (Use restriction: ' + item.getAttribute('use_restriction') + ')';
-- 
2.11.0