]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/parts/record/summary.tt2
Merge branch 'master' of git+ssh://yeti.esilibrary.com/home/evergreen/evergreen-equin...
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / parts / record / summary.tt2
1 <!-- ****************** rdetail_summary.xml ***************************** -->
2 <abbr class="unapi-id" title='tag:HTTP_HOST,OILS_TIME_YEAR:biblio-record_entry/OILS_OPAC_RID'></abbr><!-- XXX FIXME or remove -->
3 <!-- This holds the record summary information -->
4
5 <table width="100%" border="0" cellpadding="0" cellspacing="0" id="rdetail_details_table">
6     <tbody id="rdetail_details_tbody">
7         <tr>
8             <td width="90" valign="top" id="rdetail_image_cell">
9                 [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
10                 <a id='rdetail_img_link' href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/[% ident %]'><img
11                     alt="Image of item" id='rdetail_image'
12                     src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]' /></a>
13                 [% END %]
14                 <br />
15                 <div class='jacket_attrib hide_me' id='rdetail.jacket_attrib_div'>
16                     <div>[% l("Image provided by") %]</div>
17                     <div>
18                         <a target='_blank' href='[% l("http://amazon.com/dp/") %]'
19                             class='classic_link' id='rdetail.jacket_attrib_link'>[% l("Amazon") %]</a>
20                     </div>
21                 </div>
22             </td>
23     
24             <td valign="top">
25                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
26                     <tr>
27                         <td valign="top">
28                             <span id='rdetail_title'>[% attrs.title %]</span><br />
29                             [% IF attrs.author %]
30                             <span style="color:#545454;">[% l("Author") %]:</span>
31                             <em><a title='[% l("Perform an author search") %]'
32                                     id='rdetail_author'
33                                     href="[% ctx.opac_root %]/results?query=author%3a[% attrs.author | replace('[,\.:;]', '') | uri %]&loc=[% loc %]">[% attrs.author %]</a>
34                             </em>
35                             [% END %]
36                         </td>
37                         <td align="right" valign="top" nowrap="nowrap" style="white-space:nowrap;">
38                             <div style="width:230px;text-align:left;margin-top:3px;">
39                                 <div style="float:right;">
40                                     <div style="border-bottom:1px dotted #ccc;padding-top:10px;"
41                                         class="rdetail_aux_utils">
42                                         <a href="[% ctx.opac_root %]/place_hold?hold_target=[% record.id %]&hold_type=T" id="rdetail_place_hold"><img
43                                             src="[% ctx.media_prefix %]/images/green_check.png" alt="place hold" />
44                                             <span style="position:relative;top:-3px;left:3px;">Place Hold</span></a>
45                                     </div>
46                                     <div style="padding-top:6px;" class="rdetail_aux_utils">
47                                         <div style="position:absolute;">
48                                             <div style="position:relative;top:5px; left: 25px;">
49                                                 <a title="Add to my list" id="add_mylist"
50                                                     href="#">Add to my list</a>
51                                             </div>
52                                         </div>
53                                         <a href="#"><img
54                                             alt="add to my list"
55                                             src="[% ctx.media_prefix %]/images/clipboard.png" /></a>
56                                     </div>
57                                 </div>
58                                 <div style="float:right;margin-right:17px;">
59                                     <img id="rdetail_tor_pic" alt="Format" class="hide_me" src="" />
60                                 </div>
61                             </div>
62                         </td>
63                     </tr>
64                 </table>
65                 <div style="border-top: 1px dotted #ccc;padding-top:17px;">
66                     <table border="0" cellpadding="0" width="100%">
67                         <tr>
68                             <td nowrap='nowrap' valign="top">
69                                 [% IF attrs.isbn %]<strong id="rdetail_isbn_lbl">[% l("ISBN") %]</strong>[% END %]
70                             </td>
71                             <td valign="top" id='rdetail_isbn'>[% attrs.isbn %]</td>
72                             <td nowrap='nowrap' valign="top">
73                                 [% IF attrs.phys_desc %]<strong id="rdetail_phys_lbl">[% l("Physical Description") %]</strong>[% END %]
74                             </td>
75                             <td valign="top" id='rdetail_physical_desc'>[% attrs.phys_desc %]</td>
76                         </tr>
77                         <tr>
78                             <td nowrap='nowrap' valign="top">
79                                 <strong id="rdetail_ed_lbl">[% IF attrs.edition; l("Edition"); END %]</strong>
80                             </td>
81                             <td valign="top" id='rdetail_edition'>[% attrs.edition %]</td>
82                             <td nowrap='nowrap' valign="top">
83                                 <strong id="rdetail_form_lbl">[% IF attrs.format; l("Format"); END %]</strong>
84                             </td>
85                             <td valign="top">
86                                 [% IF attrs.format %]
87                                 <img alt="Format" class='tor_pic'
88                                     title="[% attrs.format %]"
89                                     src="[% ctx.media_prefix _ '/images/' _ attrs.format_icon %]" />
90                                 [%  END %]
91                             </td>
92                         </tr>
93                         <tr>
94                             <td nowrap='nowrap' valign="top">
95                                 <strong id="rdetail_pubdate_lbl">[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
96                             </td>
97                             <td valign="top" id='rdetail_pubdate'>[% attrs.pubdate %]</td>
98                             <td nowrap='nowrap' valign="top">
99                                 <strong id="rdetail_sum_lbl">Summary</strong>
100                             </td>
101                             <td valign="top" id='rdetail_abstract'></td>
102                         </tr>
103                         <tr>
104                             <td nowrap='nowrap' valign="top">
105                                 <strong id="rdetail_pub_lbl">[% IF attrs.publisher; l("Publisher"); END %]</strong>
106                             </td>
107                             <td valign="top" id='rdetail_publisher'>[% attrs.publisher %]</td>
108                             <td nowrap='nowrap' valign="top">
109                                 [%# XXX TODO see kcls' drawMarcSubjects() in rdetail.js %]
110                                 <strong id="rdetail_sub_lbl">[% l("Subjects") %]</strong>
111                             </td>
112                             <td valign="top"></td>
113                         </tr>
114                     </table>
115                 </div>
116             </td>
117         </tr>
118     </tbody>
119 </table>
120 <br /><br />
121
122 <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
123     <thead>
124         <tr id="rdetails_status_head">
125             <td>[% l("Location") %]</td>
126             <td>[% l("Call Number") %]</td>
127             <td>[% l("Barcode") %]</td>
128             <td>[% l("Shelving Location") %]</td>
129             [% IF ctx.is_staff %]
130             <td>[% l("Age Hold Protection") %]</td>
131             <td>[% l("Create Date") %]</td>
132             <td>[% l("Holdable") %]</td>
133             [% END %]
134             <td>[% l("Status") %]</td>
135             <td>[% l("Due Date") %]</td>
136         </tr>
137     </thead>
138     <tbody class="copy_details_table">
139         [% FOR copy_info IN ctx.copies %]
140         <tr>
141             <td>[%
142                 # XXX KCLS-specific kludging
143                 org_name = ctx.find_aou(copy_info.circ_lib).name;
144                 dir = org_name | lower | replace('[^\w]', '') |
145                     replace('.+320th', '320th'); %]
146                 <a href="http://www.kcls.org/[% dir %]/"
147                     class="classic_link">[% org_name %]</a>
148             </td>
149             <td>[% copy_info.call_number_label %]</td>
150             <td>[% copy_info.barcode %]</td>
151             <td>[% copy_info.copy_location %]</td>
152             [% IF ctx.is_staff %]
153             <td>
154                 [% copy_info.age_protect ?
155                     ctx.find_crahp(copy_info.age_protect).name : l('None') %]
156             </td>
157             <td>[% date.format(
158                 ctx.parse_datetime(copy_info.create_date),
159                 DATE_FORMAT
160             ) %]</td>
161             <td>[% (copy_info.holdable == 't' AND
162                     copy_info.location_holdable == 't' AND
163                     copy_info.status_holdable == 't') ? l('Yes') : l('No') %]</td>
164             [% END %]
165             <td>[% copy_info.copy_status %]</td>
166             <td>[%
167                 IF copy_info.due_date;
168                     date.format(
169                         ctx.parse_datetime(copy_info.due_date),
170                         DATE_FORMAT
171                     );
172                 ELSE;
173                     '-';
174                 END %]</td>
175         </tr>
176         [% END %]
177         <tr>
178         [% IF ctx.copy_offset > 0;
179             new_offset = ctx.copy_offset - ctx.copy_limit;
180             IF new_offset < 0; new_offset = 0; END %]
181             <td>
182                 <a href="[% ctx.opac_root %]/record/[% record.id %]?copy_offset=[% new_offset %]&copy_limit=[% ctx.copy_limit %]">&laquo; [%
183                     l('Previous [_1]', ctx.copy_offset - new_offset)
184                 %]</a>
185             </td>
186         [% END %]
187         [% IF ctx.copies.size >= ctx.copy_limit %]
188             <td>
189                 <a href="[% ctx.opac_root %]/record/[% record.id %]?copy_offset=[% ctx.copy_offset + ctx.copy_limit %]&copy_limit=[% ctx.copy_limit %]">[%
190                     l('Next [_1]', ctx.copy_limit)
191                 %] &raquo;</a>
192             </td>
193         [% END %]
194         </tr>
195     </tbody>
196 </table>
197
198 <div id="rdetail_locs_expand" class="hide_me">
199     <a href="#"><img
200         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
201     <a style="position:relative;top:-3px;" href="#">Show more locations</a>
202 </div>
203
204 <div id="rdetail_locs_collapse" class="hide_me">
205     <a href="#"><img
206         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
207     <a style="position:relative;top:-3px;" href="#">Collapse locations</a>
208 </div>
209
210 <div id="rdetail_extras_expand" class="hide_me">
211     <a href="#"><img
212         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
213     <a style="position:relative;top:-3px;" href="#">Expand all tabs</a>
214 </div>
215
216 <div id="rdetail_extras_collapse" class="hide_me">
217     <a href="#"><img src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
218     <a style="position:relative;top:-3px;" href="#">Collapse all tabs</a>
219 </div>
220
221 <div class="hide_me">
222     <table id='' border="0" width="100%">
223         <tbody id='rdetail_details_tbody'>
224             <tr>
225                 <td id='' rowspan='2' valign="top" align="center" style="padding-right:10px;">
226                 </td>
227                 <td class='rdetail_desc' valign="top" colspan="3">
228                     <table border="0" width="100%">
229                         <tr>
230                             <td valign="top">
231                                 <div style="padding-bottom:7px;">
232                                     <strong>[% l("Title") %]:</strong>
233                                 </div>
234                             </td>
235                             <td width="1" valign="top" align="right" style="white-space:nowrap;">
236                                 <a href="[% ctx.opac_root %]/place_hold?hold_target=[% record.id %]&hold_type=T"><img alt="Place Hold"
237                                     src="[% ctx.media_prefix %]/images/place_hold.gif" /></a>
238                                 <a href="#" id="rd_reviews_and_more" target="_blank"><img
239                                     alt="Reviews and More" src="[% ctx.media_prefix %]/images/reviews.gif" /></a>
240                                 <a href="#" id=""><img alt="Add to My List"
241                                     src="[% ctx.media_prefix %]/images/add_mylist.gif" /></a>
242                             </td>
243                         </tr>
244                     </table>
245                 </td>        
246             </tr>
247             <tr>
248                 <td nowrap='nowrap' colspan="3" valign="bottom" style="padding-bottom:16px;">
249                 </td>
250             </tr>
251             <tr>
252                 <td><div style="height:20px;"></div></td>
253             </tr>
254         </tbody>
255     </table>
256     <!-- Empty span used for creating unAPI links -->
257     <abbr name="unapi" class="unapi-id"> <!-- unAPI URI goes here --> </abbr>
258 </div> <!-- details_body -->
259
260 <!-- ****************** end: rdetail_summary.xml ***************************** -->