var joiner = slot.getAttribute('join') || ' ';
var slot_handler = dojo.map(
- dojo.query('script[type=opac/slot-format]', slot).orphan(),
- function(x){
- if(dojo.isIE) return x.innerHTML;
- return dojox.data.dom.textContent(x)
- }
- );
-
- slot_handler = slot_handler.join('');
+ dojo.query( 'script[type=opac/slot-format]', slot ).orphan(),
+ function(x){ return dojox.data.dom.textContent(x) || x.innerHTML }
+ ).join('');
if (slot_handler) slot_handler = new Function('item', slot_handler);
else slot_handler = new Function('item','return dojox.data.dom.textContent(item);');
<tbody id='rdetail_details_tbody'>
<tr>
- <td id='rdetail_image_cell' rowspan='10'>
+ <td id='rdetail_image_cell' rowspan='30'>
<a id='rdetail_img_link'>
<img style='border: none;' id='rdetail_image'
onerror='
<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 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>
<!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
*** summary screen with complex information, such as new search links on subjects. -->
- <!--
<tr>
<td nowrap='nowrap' class='rdetail_desc'>Subjects</td>
<td type='opac/slot-data' query='datafield[tag=650]' class='rdetail_item'>
]]></script>
</td>
</tr>
- -->
<tr class='hide_me' id='rdetail_online_row'>
<!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
]]></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'))