[open-ils-commits] r13311 - in trunk/Open-ILS/web/opac/skin: craftsman/xml/rdetail default/xml/rdetail (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jun 3 16:05:22 EDT 2009
Author: miker
Date: 2009-06-03 16:05:18 -0400 (Wed, 03 Jun 2009)
New Revision: 13311
Modified:
trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml
trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
turn on BibTemplate rendering of online resources by default
Modified: trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml 2009-06-03 17:55:48 UTC (rev 13310)
+++ trunk/Open-ILS/web/opac/skin/craftsman/xml/rdetail/rdetail_summary.xml 2009-06-03 20:05:18 UTC (rev 13311)
@@ -60,9 +60,26 @@
</tr>
<tr class='hide_me' id='rdetail_online_row'>
- <td class='title'>&rdetail.summary.online;</td>
- <td id='rdetail_online'> </td>
- </tr>
+ <!-- *** 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). -->
+ <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') + ')';
+ return link;
+ ]]></script>
+ </td>
+ </tr>
</tbody>
</table>
<!-- Empty span used for creating unAPI links -->
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-06-03 17:55:48 UTC (rev 13310)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2009-06-03 20:05:18 UTC (rev 13311)
@@ -102,31 +102,25 @@
-->
<tr class='hide_me' id='rdetail_online_row'>
- <td nowrap='nowrap' class='rdetail_desc'>&rdetail.summary.online;</td>
- <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).
- *** This replaces the <td> elements directly above. -->
- <!--
+ <!-- *** 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). -->
<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') + ')';
- return link;
- ]]></script>
- </td>
- -->
-
+ <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') + ')';
+ return link;
+ ]]></script>
+ </td>
</tr>
</tbody>
More information about the open-ils-commits
mailing list