[open-ils-commits] r965 - conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/rdetail (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 17 12:23:40 EDT 2010
Author: dbs
Date: 2010-08-17 12:23:37 -0400 (Tue, 17 Aug 2010)
New Revision: 965
Modified:
conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/rdetail/rdetail_summary.xml
Log:
Fix Windsor skin electronic resource links permanently
Modified: conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/rdetail/rdetail_summary.xml
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/rdetail/rdetail_summary.xml 2010-08-17 02:57:59 UTC (rev 964)
+++ conifer/branches/rel_1_6_1/web/opac/skin/uwin/xml/rdetail/rdetail_summary.xml 2010-08-17 16:23:37 UTC (rev 965)
@@ -108,32 +108,34 @@
]]></script>
</td>
</tr>
+ <tr class='hide_me' id='rdetail_online_row'>
+ <!-- *** 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;</td>
+ <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes volume uris uri'>
+ <script type='opac/slot-format'><![CDATA[
+ dojo.query('*:not([type^=opac])', 'rdetail_online').orphan();
+ var uri = new Object;
+ uri.href = item.getAttribute('href');
+ uri.label = item.getAttribute('label');
+ uri.use = item.getAttribute('use_restriction');
+ if (uri.href == uri.label) {
+ if (uri.use && uri.use != uri.label) {
+ uri.label = uri.use;
+ uri.use = null;
+ }
+ }
+ var link = '<a class="search_link" href="' + uri.href + '">' + uri.label + '</a>';
+ if (uri.use) {
+ link += ' (' + uri.use + ')';
+ }
+ return '<span>' + link + '</span><br/>';
+ ]]></script>
+ </td>
+ </tr>
+ </tbody>
+ </table>
- <tr class='hide_me' id='rdetail_online_row'>
- <!-- *** 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') + '" class="classic_link">' + item.getAttribute('label') + '</a>';
- if (item.getAttribute('use_restriction'))
- link += ' (' + item.getAttribute('use_restriction') + ') <br />';
- return link;
- ]]></script>
- </td>
- </tr>
-
- </tbody>
- </table>
-
<!-- Empty span used for creating unAPI links -->
<abbr name="unapi" class="unapi-id">
<!-- unAPI URI goes here -->
More information about the open-ils-commits
mailing list