[open-ils-commits] r14091 - trunk/Open-ILS/web/opac/skin/default/xml/rdetail (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 22 13:49:13 EDT 2009
Author: miker
Date: 2009-09-22 13:49:09 -0400 (Tue, 22 Sep 2009)
New Revision: 14091
Modified:
trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Log:
IE does not appreciate direct parent/child CSS selectors, so we will use the more generic descendant selector; improve the display of title data by providing a space between subfields (XML processors, particularly those rendering HTML, normalizes whitespace by default)
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-09-22 17:38:26 UTC (rev 14090)
+++ trunk/Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml 2009-09-22 17:49:09 UTC (rev 14091)
@@ -23,7 +23,16 @@
<td nowrap='nowrap' class='rdetail_desc'>&common.title;</td>
<!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
*** summary screen with more and/or different information. In this case, the raw MARC 245. -->
- <td type='opac/slot-data' query='datafield[tag=245]' class='rdetail_item' id='rdetail_title'> </td>
+ <td type='opac/slot-data' query='datafield[tag=245]' class='rdetail_item' id='rdetail_title'>
+ <script type='opac/slot-format'><![CDATA[
+ var out = '';
+ var list = dojo.query( 'subfield', item );
+ for (var i = 0; i < list.length; i++) {
+ out += dojox.data.dom.textContent(list[i]) + ' ';
+ }
+ return out;
+ ]]></script>
+ </td>
</tr>
<tr>
@@ -110,7 +119,7 @@
]]></script>
</span>
</td>
- <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes > volume > uris > uri' join=", ">
+ <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'))
More information about the open-ils-commits
mailing list