[open-ils-commits] r13042 - trunk/Open-ILS/web/opac/skin/default/xml/rdetail (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun May 3 08:06:15 EDT 2009
Author: miker
Date: 2009-05-03 08:06:14 -0400 (Sun, 03 May 2009)
New Revision: 13042
Modified:
trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
improve example, removing all non-local links where this is at least one 856$9
Modified: trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2009-05-03 11:48:33 UTC (rev 13041)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2009-05-03 12:06:14 UTC (rev 13042)
@@ -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') + ')';
More information about the open-ils-commits
mailing list