]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/opac/skin/default/xml/rdetail/rdetail_summary.xml
Invoke a function rather than a property
[working/Evergreen.git] / Open-ILS / web / opac / skin / default / xml / rdetail / rdetail_summary.xml
1
2 <abbr class="unapi-id" title='tag:<!--#echo var="HTTP_HOST"-->,<!--#echo var="OILS_TIME_YEAR"-->:biblio-record_entry/<!--#echo var="OILS_OPAC_RID"-->'></abbr>
3 <!-- This holds the record summary information -->
4 <div>
5         <table id='rdetail_details_table'>
6                 <tbody id='rdetail_details_tbody'>
7
8                         <tr>
9                                 <td id='rdetail_image_cell' rowspan='10'>
10                                         <a id='rdetail_img_link'>
11                                                 <img style='border: none;' id='rdetail_image' 
12                             onerror='
13                                 hideMe($("rdetail.jacket_attrib_div"));
14                                 hideMe($("rdetail_img_link"));'/>
15                                         </a>
16                     <!-- vendor attribution link -->
17                     <div class='jacket_attrib hide_me' id='rdetail.jacket_attrib_div'>
18                         <div>&opac.image_provided;</div>
19                         <div><a target='_blank' href='&vendor.base_link;' 
20                             class='classic_link' id='rdetail.jacket_attrib_link'>&vendor.name;</a></div>
21                     </div>
22                                 </td>
23                                 <td nowrap='nowrap' class='rdetail_desc'>&common.title;</td>            
24                 <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
25                      *** summary screen with more and/or different information.  In this case, the raw MARC 245. -->
26                 <!-- <td type='opac/slot-data' query='datafield[tag=245]' class='rdetail_item' id='rdetail_title'> </td> -->
27                                 <td class='rdetail_item' id='rdetail_title'> </td>
28                         </tr>
29
30                         <tr>
31                                 <td nowrap='nowrap' class='rdetail_desc'>&common.author;</td>           
32                                 <td class='rdetail_item'>
33                                         <a title='&rdetail.author.search;' id='rdetail_author'> </a>
34                                 </td>
35                         </tr>
36
37                         <tr>
38                                 <td nowrap='nowrap' class='rdetail_desc'>&common.isbn;</td>                     
39                                 <td class='rdetail_item' id='rdetail_isbn'> </td>
40                         </tr>
41
42                         <tr>
43                                 <td nowrap='nowrap' class='rdetail_desc'>&common.edition;</td>          
44                                 <td class='rdetail_item' id='rdetail_edition'> </td>
45                         </tr>
46
47                         <tr>
48                                 <td nowrap='nowrap' class='rdetail_desc'>&common.pubdate;</td>          
49                                 <td class='rdetail_item' id='rdetail_pubdate'> </td>
50                         </tr>
51
52                         <tr>
53                                 <td nowrap='nowrap' class='rdetail_desc'>&common.publisher;</td>                
54                                 <td class='rdetail_item' id='rdetail_publisher'> </td>
55                         </tr>
56
57
58                         <tr>
59                                 <td nowrap='nowrap' class='rdetail_desc'>&common.physical;</td>         
60                                 <td class='rdetail_item' id='rdetail_physical_desc'> </td>
61                         </tr>
62
63                         <tr>
64                                 <td nowrap='nowrap' class='rdetail_desc'>&common.format;</td>                   
65                                 <td class='rdetail_item'>
66                                         <img id='rdetail_tor_pic' class='tor_pic' />
67                                         <span id='rdetail_tor' style='padding-left: 5px;'> </span>
68                                 </td>
69                         </tr>
70
71                         <tr>
72                                 <td nowrap='nowrap' class='rdetail_desc'>&rdetail.detailMain.abstract;</td>     
73                                 <td class='rdetail_item' id='rdetail_abstract'> </td>
74                         </tr>
75
76             <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
77                  *** summary screen with complex information, such as new search links on subjects. -->
78             <!--
79             <tr>
80                 <td nowrap='nowrap' class='rdetail_desc'>Subjects</td>
81                 <td type='opac/slot-data' query='datafield[tag=650]' class='rdetail_item'>
82                     <script type='opac/slot-format'><![CDATA[
83                         var cgi = new CGI();
84                         var other_params = [ 'd', 'l', 'r', 'av', 's', 'sd' ];
85                         var total = '';
86                         var output = [];
87                         var list = dojo.query( 'subfield', item );
88                         for (var i =0; i < list.length; i++) {
89                             total += dojox.data.dom.textContent(list[i]) + ' ';
90                             var current = '<a href="rresult.xml?rt=subject&t=' + total;
91                             for (var p in other_params) {
92                                 if (cgi.param(other_params[p]))
93                                     current += '&' + other_params[p] + '=' + cgi.param(other_params[p]);
94                             }
95                             current += '">' + dojox.data.dom.textContent(list[i]) + '</a>'
96                             output.push(current);
97                         }
98                         return '<span>' + output.join(' &#x2d;&#x2d; ') + '</span><br/>';
99                     ]]></script>
100                 </td>
101             </tr>
102             -->
103
104                         <tr class='hide_me' id='rdetail_online_row'>
105                                 <td nowrap='nowrap' class='rdetail_desc'>&rdetail.summary.online;</td>
106                                 <td class='rdetail_item' id='rdetail_online'></td>
107
108             <!-- *** Example of how to use the openils.BibTemplate infrastructure to augment the stock
109                  *** summary screen with complex information, such as location-specific URIs (856$9).
110                  *** This replaces the <td> elements directly above.  -->
111             <!--
112                                 <td nowrap='nowrap' class='rdetail_desc'>&rdetail.summary.online;
113                     <span class='hide_me' type='opac/slot-data' query='datafield[tag=856] subfield[code=9]'>
114                         <script type='opac/slot-format'><![CDATA[
115                             // There exists at least one localized URI. Clear all links.
116                             dojo.query('*:not([type^=opac])', 'rdetail_online').orphan();
117                             return '';
118                         ]]></script>
119                     </span>
120                 </td>
121                <td class='rdetail_item' id='rdetail_online' type='opac/slot-data' query='volumes > volume > uris > uri' join=", ">
122                     <script type='opac/slot-format'><![CDATA[
123                         var link = '<a href="' + item.getAttribute('href') + '">' + item.getAttribute('label') + '</a>';
124                         if (item.getAttribute('use_restriction')) link += ' (Use restriction: ' + item.getAttribute('use_restriction') + ')';
125                         return link;
126                     ]]></script>
127                 </td>
128             -->
129
130                         </tr>
131
132                 </tbody>
133         </table>
134
135         <!-- Empty span used for creating unAPI links -->
136         <abbr name="unapi" class="unapi-id">
137                 <!-- unAPI URI goes here -->
138         </abbr>
139
140         <script language='javascript' type='text/javascript'><![CDATA[
141
142                 config.ids.rdetail.details_body         = 'rdetail_details_body'; 
143                 config.ids.rdetail.title                                = 'rdetail_title';
144                 config.ids.rdetail.author                               = 'rdetail_author';
145                 config.ids.rdetail.isbn                                 = 'rdetail_isbn';
146                 config.ids.rdetail.edition                              = 'rdetail_edition';
147                 config.ids.rdetail.pubdate                              = 'rdetail_pubdate';
148                 config.ids.rdetail.publisher                    = 'rdetail_publisher';
149                 config.ids.rdetail.tor                                  = 'rdetail_tor';
150                 config.ids.rdetail.abstr                                = 'rdetail_abstract';
151                 config.ids.rdetail.image                                = 'rdetail_image';
152                 config.ids.rdetail.tor_pic                              = 'rdetail_tor_pic';
153
154         dojo.addOnLoad( function () {
155             var here = findOrgUnit(getLocation());
156             if (getDepth() > 0 || getDepth === 0 ) {
157                 while (getDepth() < findOrgDepth(here))
158                     here = findOrgUnit( here.parent_ou() );
159             }
160
161             dojo.require('openils.BibTemplate');
162             new openils.BibTemplate({ record : new CGI().param('r'), org_unit : here.shortname() }).render();
163         });
164         ]]></script>
165
166 </div> <!-- details_body -->
167