]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/opac/skin/default/xml/result/result_table.xml
Merge branch 'master' of git.evergreen-ils.org:Evergreen into template-toolkit-opac
[working/Evergreen.git] / Open-ILS / web / opac / skin / default / xml / result / result_table.xml
1 <!-- Search results are spit into this table -->
2
3 <div id='result_table_div' xmlns:xi="http://www.w3.org/2001/XInclude">
4
5     <table id='res_table'> 
6
7         <!-- for some reason, this is the only way i can force the cell widths -->
8         <thead id='result_thead'>
9             <tr>
10                 <td class='result_table_pic_header'></td>
11                 <td> </td>
12             </tr>
13         </thead>
14
15         <tbody id='result_table'>
16             <tr>
17
18                 <td class='result_table_row'>
19                     <!--#include virtual="result_info.xml"-->
20                 </td>
21             </tr>
22
23             <!-- Template for displaying a search result.  This row template is cloned and inserted
24                     for each result returned -->
25
26             <tr id='result_table_template' class='hide_me'>
27
28                 <!-- Jacket image goes here -->
29
30                 <td class='result_table_row' align='left'>
31                     <table class='result_table_subtable'>
32                         <tbody class='result_table_subtbody'>
33
34                             <tr style='height: 1em' name='counts_row' valign="top">
35
36                                 <td  rowspan='4' class='result_table_pic_header'>
37                                     <a><img name='item_jacket' class='result_table_pic'/></a>
38                                 </td>
39
40                                 <td class='result_table_title_cell' name='result_table_title_cell'>
41                                     <!-- Title goes here -->
42                                     <a title="&result.table.keyword;" name='item_title' class='search_link'> 
43                                         <!-- Title goes here -->
44                                     </a>
45                                 </td>
46
47                                 <!-- Empty span used for creating OpenLibrary links -->
48                                 <td rowspan='4' name="openLibraryLink" style="text-align: center; vertical-align: middle; width: 15em;" class="hide_me"></td>
49                                 <!-- Copy this td for each copy count appended -->
50                                 <td  rowspan='4' nowrap='nowrap' name="copy_count_cell" class='copy_count_cell'> 
51                                 </td>
52
53                             </tr>
54         
55                             <tr style='height: 1em' >
56                                 <td class='result_table_author_cell'>
57                                     <a title="&result.table.author;" name='item_author' class='search_link'> 
58                                         <!-- Author goes here -->
59                                     </a>
60                                     <div>
61                                     <span name='result_table_extra_span' class='hide_me'>
62                                         <span name='result_table_pub_box' style='padding-left: 10px;'> 
63                                             <span name='result_table_edition_span' style='padding-left: 10px;'></span> |
64                                             <span name='result_table_pub_span'> </span> |
65                                             <span name='result_table_phys_span'> </span>
66                                         </span>
67                                     </span>
68                                     </div>
69                                 </td>
70                             </tr>
71
72                             <tr style='height:1em;' >
73                                 <td name='result_table_format_cell' class='result_table_format_cell'>
74
75                                     <a name='text_link' class='search_link'> 
76                                         <img src='../../../../images/tor/text.jpg' class='dim tor_pic' />
77                                     </a>
78
79                                     <a name='sound recording-nonmusical_link' class='search_link'> 
80                                         <img src='../../../../images/tor/sound recording-nonmusical.jpg' class='dim tor_pic' />
81                                     </a>
82
83                                     <a name='moving image_link' class='search_link'> 
84                                         <img src='../../../../images/tor/moving image.jpg' class='dim tor_pic' />
85                                     </a>
86
87                                     <a name='software, multimedia_link' class='search_link'> 
88                                         <img src='../../../../images/tor/software, multimedia.jpg' class='dim tor_pic' />
89                                     </a>
90
91                                     <a name='sound recording-musical_link' class='search_link'> 
92                                         <img src='../../../../images/tor/sound recording-musical.jpg' class='dim tor_pic' />
93                                     </a>
94
95                                     <a name='cartographic_link' class='search_link'> 
96                                         <img src='../../../../images/tor/cartographic.jpg' class='dim tor_pic' />
97                                     </a>
98
99                                     <a name='mixed material_link' class='search_link'> 
100                                         <img src='../../../../images/tor/mixed material.jpg' class='dim tor_pic' />
101                                     </a>
102
103                                     <a name='notated music_link' class='search_link'> 
104                                         <img src='../../../../images/tor/notated music.jpg' class='dim tor_pic' />
105                                     </a>
106
107                                     <a name='sound recording_link' class='search_link'> 
108                                         <img src='../../../../images/tor/sound recording.jpg' class='dim tor_pic' />
109                                     </a>
110
111                                     <a name='still image_link' class='search_link'> 
112                                         <img src='../../../../images/tor/still images.jpg' class='dim tor_pic' />
113                                     </a>
114
115                                     <a name='three dimensional object_link' class='search_link'> 
116                                         <img src='../../../../images/tor/three dimensional object.jpg' class='dim tor_pic' />
117                                     </a>
118
119                                     <span class='hide_me' 
120                                         style='color: #9999FF; padding-left: 10px; font-size: 7pt; font-weight: 300;'> 
121                                         <span>&common.relevancy; </span><span name='relevancy_span'> </span>
122                                     </span>
123
124                                     <span class='hide_me' name='place_hold_span'>
125                                         <a style='padding-left: 8px;' href='javascript:void(0);' 
126                                             class='classic_link' name='place_hold_link'>&opac.holds.placeHold;</a>
127                                     </span>
128
129                                     <!-- Empty span used for creating unAPI links -->
130                                     <abbr style='padding-left: 8px;' name="unapi" class="unapi-id">
131                                         <!-- unAPI URI goes here -->
132                                     </abbr>
133
134                                     <!-- Empty span used for creating Google Book Search-->
135                                     <span name="googleBooksLink" class="hide_me">
136                                         <a style='padding-left: 8px;' class='classic_link' name="googleBooks-link">&result.googleBooks.browse;</a>
137                                     </span>
138
139                                 </td>
140                             </tr>
141                             <tr name="local_callnumber_list" class="result_table_title_cell">
142                                 <td>
143                                 <span type='opac/slot-data+holdings_xml-full' query='volumes'>
144                                 <span class='hide_me' debug='true' type='opac/slot-format'><![CDATA[
145                                     var output = dojo.create('span'); 
146
147                                     var item_cnt = 0;
148                                     var max_items = 4;
149
150                                     dojo.query('volume', item).forEach(function(vol) {
151                                         if (item_cnt >= max_items) {
152                                             return output.innerHTML;
153                                         }
154                                         if (vol.getAttribute('deleted') == 't') {
155                                             return;
156                                         }
157                                         if (vol.getAttribute('opac_visible') == 'f') {
158                                             return;
159                                         }
160                                         dojo.query('copy', vol).forEach(function (cp) {
161                                             if (item_cnt >= max_items) {
162                                                 return;
163                                             }
164                                             if (cp.getAttribute('deleted') == 't') {
165                                                 return;
166                                             }
167                                             if (cp.getAttribute('opac_visible') == 'f') {
168                                                 return;
169                                             }
170
171                                             /* Ensure the status is visible */
172                                             var visible_status;
173                                             dojo.query('status', cp).forEach(function (status) {
174                                                 visible_status = status.getAttribute('opac_visible');
175                                             });
176                                             if (visible_status == 'f') {
177                                                 return;
178                                             }
179
180                                             /* Ensure the circulation library is visible */
181                                             var lib_vis;
182                                             dojo.query('circlib', cp).forEach(function (status) {
183                                                 lib_vis = status.getAttribute('opac_visible');
184                                             });
185                                             if (lib_vis != 't') {
186                                                 return;
187                                             }
188
189                                             var cp_entry = dojo.create('div');
190                                             var loc_visible;
191                                             var vol_appended = false;
192                                             dojo.query('location', cp).forEach(function (location) {
193                                                 loc_visible = location.getAttribute('opac_visible');
194                                                 if (loc_visible == 't') {
195                                                     if (!vol_appended) {
196                                                         var cn = dojo.create('span', { style: "font-weight: bold;" }, cp_entry);
197                                                         var cn_txt = dojo.doc.createTextNode(vol.getAttribute('label'));
198                                                         cn.appendChild(cn_txt);
199                                                         vol_appended = true;
200                                                     }
201                                                     var loc = dojo.create('span', { "style": "font-weight: bold;"}, cp_entry);
202                                                     var loc_txt = dojo.doc.createTextNode(' - ' + BT.textContent(location));
203                                                     loc.appendChild(loc_txt);
204                                                 }
205                                             });
206                                             if (loc_visible != 't') {
207                                                 return;
208                                             }
209                                             dojo.query('circ_lib', cp).forEach(function (circ_lib) {
210                                                 var cp_lib = dojo.create('span', { "style": "font-weight: bold;" }, cp_entry, "first");
211                                                 var cp_lib_txt = dojo.doc.createTextNode(circ_lib.getAttribute('name') + ' - ');
212                                                 cp_lib.appendChild(cp_lib_txt);
213                                             });
214                                             dojo.query('status', cp).forEach(function (status) {
215                                                 var cp_status = dojo.create('span', { "style": "font-weight: bold;" }, cp_entry);
216                                                 var cp_status_txt = dojo.doc.createTextNode(' (' + BT.textContent(status) + ')');
217                                                 cp_status.appendChild(cp_status_txt);
218                                             });
219
220                                             item_cnt++;
221                                             if (item_cnt >= max_items) {
222                                                 dojo.create('br', null, cp_entry);
223                                                 cp_entry.appendChild(dojo.doc.createTextNode(opac_strings.MORE_COPIES_FULL_RECORD));
224                                             }
225                                             output.appendChild(cp_entry);
226                                         });
227                                     });
228
229                                 return output.innerHTML;
230                                 ]]></span>
231                                 </span>
232                                 </td>
233                             </tr>
234                             <!-- Placeholder for ChiliFresh Review -->
235                             <tr class="hide_me" name="chilifreshReview">
236                                 <td valign="top" colspan="2">
237                                         <span name="chilifreshReviewLink" class="chili_review"></span>
238                                         <div name="chilifreshReviewResult" style="display:none"></div>
239                                 </td>
240                             </tr>
241                         </tbody>
242                     </table>
243                 </td>
244             </tr>
245         </tbody>
246     </table>
247
248
249    <!-- ====================== -->
250    <table style='width: 100%; margin-top: 12px;' id='result_info_2' class='hide_me'>
251       <tbody>
252                
253           <tr class='color_4' style='height: 1em;'>
254                      
255              <td style='vertical-align: top;'  id='next_prev_links2'>
256                         
257                 <span class='hide_me' id='result_info_div2' style='font-size: 9pt;'>
258                    <span> &common.results; </span> 
259                    <b id='offset_start2'> </b>
260                    <span> - </span>
261                    <b id='offset_end2'> </b>
262                    <span> &common.ofAtLeast; </span>
263                    <b id='result_count2'> </b>
264                    <span style='padding-left: 6px;'> (page </span>
265                    <span id='current_page2'> </span>
266                    <span> &common.of; </span>
267                    <span id='num_pages2'> </span>
268                 </span>
269                            
270                 <span id='start_end_links_span2' class='hide_me' 
271                    style='padding-left: 40px;' >
272                 <a class='search_page_nav_link' id='search_home_link2' 
273                    title="&rdetail.page.results;">&rdetail.start;</a><a class='search_page_nav_link' 
274                    id='prev_link2' title='&rdetail.page.previous;'>&rdetail.page.previous.short;</a>
275             
276                 <span class='search_page_nav_link' id='page_numbers2'> </span>
277                    <a  class='search_page_nav_link' id='next_link2' 
278                       title='&rdetail.page.next;'>&rdetail.page.next.short;</a>
279                       <!--
280                       <a class='search_page_nav_link' 
281                       id='end_link2' title="&rdetail.page.last;">&rdetail.end;</a>
282                       -->
283                 </span>
284                         
285              </td>
286                         
287              <td  colspan='5' 
288                 style='padding-bottom: 4px; text-align:center; vertical-align: top; border-bottom: 1px solid #E0E0E0;'>
289                <!--
290                 <span id='search_info_table2' style='font-size: 8pt;'>
291                 <b>Available copies / Total copies </b>
292                 </span>
293                -->
294              </td>
295           </tr>
296       </tbody>
297    </table>
298    <!-- ====================== -->
299
300
301     <script language='javascript' type='text/javascript'>
302         config.names.result.format_cell = 'result_table_format_cell';
303         config.names.result.format_link = 'resource_link'
304         config.names.result.format_pic = 'format_pic'
305     </script>
306
307     <!-- ChiliFresh setup -->
308     <script language='javascript' type='text/javascript'>
309         var chilifresh = '<!--#echo var="OILS_CHILIFRESH_ACCOUNT"-->';
310         if (chilifresh=='(none)') { chilifresh = false; }
311     </script>
312     <!--#if expr="${OILS_CHILIFRESH_ACCOUNT} && ${OILS_CHILIFRESH_ACCOUNT}!='(none)'"-->
313         <input type="hidden" id="chilifresh_account" name="chilifresh_account"
314             value="<!--#echo var='OILS_CHILIFRESH_ACCOUNT'-->" />
315         <input type="hidden" id="chilifresh_profile" name="chilifresh_profile"
316             value="<!--#echo var='OILS_CHILIFRESH_PROFILE'-->" />
317         <input type="hidden" id="chilifresh_version" name="chilifresh_version" value="onsite_v1" />
318         <input type="hidden" id="chilifresh_type" name="chilifresh_type" value="search" />
319         <script language="javascript" type="text/javascript" src="<!--#echo var='OILS_CHILIFRESH_URL'-->"></script>
320     <!--#endif-->
321 </div>
322
323