]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/parts/record/summary.tt2
Merge branch 'master' of git://git.evergreen-ils.org/Evergreen into ttopac
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / parts / record / summary.tt2
1 <!-- ****************** rdetail_summary.xml ***************************** -->
2 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
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="[% l('Image of item') %]" id='rdetail_image'
12                     src='[% ctx.media_prefix %]/opac/extras/ac/jacket/medium/[% ident %]' /></a>
13                 [% END %]
14                 <br />
15             </td>
16     
17             <td valign="top">
18                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
19                     <tr>
20                         <td valign="top">
21                             <span id='rdetail_title'>[% attrs.title %]</span><br />
22                             [% IF attrs.author %]
23                             <span class='opac-auto-030'>[% l("Author") %]:</span>
24                             <em><a title='[% l("Perform an author search") %]'
25                                     id='rdetail_author'
26                                     href="[% ctx.opac_root %]/results?qtype=author&amp;query=[%-
27                                         attrs.author | replace('[,\.:;]', '') | uri %]&amp;loc=[% CGI.param('loc') | uri %]">[% attrs.author %]</a></em>
28                             [% END %]
29                         </td>
30                         <td align="right" valign="top" nowrap="nowrap" style="white-space:nowrap;">
31                             <div style="width:230px;text-align:left;margin-top:3px;">
32                                 <div style="float:right;">
33                                     <div class="rdetail_aux_utils opac-auto-010">
34                                         <a href="[% ctx.opac_root %]/place_hold[%-
35                                             propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% ctx.bre_id %]&amp;hold_type=T" id="rdetail_place_hold" class="no-dec"><img
36                                             src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('place hold') %]" /><span 
37                                                 style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
38                                     </div>
39                                     <div class="rdetail_aux_utils opac-auto-121">
40                                         [%  
41                                             operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
42                                             label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); 
43                                         %]
44                                         <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
45                                             <input type="hidden" name="record" value="[% ctx.bre_id %]" />
46                                             <div class="pos-abs">
47                                                 <div class="opac-auto-149">
48                                                     <input type="submit" title="[% label %]" value="[% label %]" class="subtle-button" />
49                                                 </div>
50                                             </div>
51                                             <input type="image" alt="[% label %]"
52                                                 src="[% ctx.media_prefix %]/images/clipboard.png" />
53                                         </form>
54                                     </div>
55                                 </div>
56                                 <div style="float:right;margin-right:17px;">
57                                     [% IF attrs.format_icon %]
58                                     <img alt="[% attrs.format_label %]" title="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
59                                     [% END %]
60                                 </div>
61                             </div>
62                         </td>
63                     </tr>
64                 </table>
65                 <div class='opac-auto-018'>
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                         </tr>
83                         <tr>
84                             <td nowrap='nowrap' valign="top">
85                                 <strong id="rdetail_pub_lbl">[% IF attrs.publisher; l("Publisher"); END %]</strong>
86                             </td>
87                             <td valign="top" id='rdetail_publisher'>[% attrs.publisher %]</td>
88                             <td nowrap='nowrap' valign="top">
89                                 <strong id="rdetail_pubdate_lbl">[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
90                             </td>
91                             <td valign="top" id='rdetail_pubdate'>[% attrs.pubdate %]</td>
92                         </tr>
93                     </table>
94
95                     <!-- hold/copy summary -->
96                     <div style="padding-top:15px;">
97                         <div>
98                             [% l("[quant,_1,Hold,Holds] with [quant,_2,total copy,total copies]", 
99                                 ctx.record_hold_count, ctx.copy_summary.0.count) %]
100                         </div>
101                         <div>[% l('[quant,_1,Copy,Copies] available', ctx.copy_summary.0.available) %]</div>
102                     </div>
103
104                 </div>
105             </td>
106         </tr>
107     </tbody>
108 </table>
109 <br /><br />
110
111 <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
112     <thead>
113         <tr id="rdetails_status_head">
114             <td>[% l("Location") %]</td>
115             <td>[% l("Call Number") %]</td>
116             <td>[% l("Barcode") %]</td>
117             <td>[% l("Shelving Location") %]</td>
118             [% IF ctx.is_staff %]
119             <td>[% l("Age Hold Protection") %]</td>
120             <td>[% l("Create Date") %]</td>
121             <td>[% l("Holdable") %]</td>
122             [% END %]
123             <td>[% l("Status") %]</td>
124             <td>[% l("Due Date") %]</td>
125         </tr>
126     </thead>
127     <tbody class="copy_details_table">
128         [% FOR copy_info IN ctx.copies %]
129         <tr>
130             <td>[%
131                 # XXX KCLS-specific kludging
132                 org_name = ctx.get_aou(copy_info.circ_lib).name;
133                 dir = org_name | lower | replace('[^\w]', '') |
134                     replace('.+320th', '320th'); %]
135                 <a href="http://www.kcls.org/[% dir %]/"
136                     class="classic_link">[% org_name %]</a>
137             </td>
138             <td>[% copy_info.call_number_label %]</td>
139             <td>[% copy_info.barcode %]</td>
140             <td>[% copy_info.copy_location %]</td>
141             [% IF ctx.is_staff %]
142             <td>
143                 [% copy_info.age_protect ?
144                     ctx.get_crahp(copy_info.age_protect).name : l('None') %]
145             </td>
146             <td>[% date.format(
147                 ctx.parse_datetime(copy_info.create_date),
148                 DATE_FORMAT
149             ) %]</td>
150             <td>[% (copy_info.holdable == 't' AND
151                     copy_info.location_holdable == 't' AND
152                     copy_info.status_holdable == 't') ? l('Yes') : l('No') %]</td>
153             [% END %]
154             <td>[% copy_info.copy_status %]</td>
155             <td>[%
156                 IF copy_info.due_date;
157                     date.format(
158                         ctx.parse_datetime(copy_info.due_date),
159                         DATE_FORMAT
160                     );
161                 ELSE;
162                     '-';
163                 END %]</td>
164         </tr>
165         [% END %]
166         <tr>
167         [% IF ctx.copy_offset > 0;
168             new_offset = ctx.copy_offset - ctx.copy_limit;
169             IF new_offset < 0; new_offset = 0; END %]
170             <td>
171                 <a href="[% ctx.opac_root %]/record/[% ctx.bre_id %]?copy_offset=[% new_offset %]&amp;copy_limit=[% ctx.copy_limit %]">&laquo; [%
172                     l('Previous [_1]', ctx.copy_offset - new_offset)
173                 %]</a>
174             </td>
175         [% END %]
176         [% IF ctx.copies.size >= ctx.copy_limit %]
177             <td>
178                 <a href="[% ctx.opac_root %]/record/[% ctx.bre_id %]?copy_offset=[% ctx.copy_offset + ctx.copy_limit %]&amp;copy_limit=[% ctx.copy_limit %]">[%
179                     l('Next [_1]', ctx.copy_limit)
180                 %] &raquo;</a>
181             </td>
182         [% END %]
183         </tr>
184     </tbody>
185 </table>
186
187 <div id="rdetail_locs_expand" class="hide_me">
188     <a href="#"><img
189         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
190     <a style="position:relative;top:-3px;" href="#">[% l('Show more locations') %]</a>
191 </div>
192
193 <div id="rdetail_locs_collapse" class="hide_me">
194     <a href="#"><img
195         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
196     <a style="position:relative;top:-3px;" href="#">[% l('Collapse locations') %]</a>
197 </div>
198
199 <div id="rdetail_extras_expand" class="hide_me">
200     <a href="#"><img
201         src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
202     <a style="position:relative;top:-3px;" href="#">[% l('Expand all tabs') %]</a>
203 </div>
204
205 <div id="rdetail_extras_collapse" class="hide_me">
206     <a href="#"><img src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
207     <a style="position:relative;top:-3px;" href="#">[% l('Collapse all tabs') %]</a>
208 </div>
209
210 <div class="hide_me">
211     <table id='' border="0" width="100%">
212         <tbody id='rdetail_details_tbody'>
213             <tr>
214                 <td id='' rowspan='2' valign="top" align="center" style="padding-right:10px;">
215                 </td>
216                 <td class='rdetail_desc' valign="top" colspan="3">
217                     <table border="0" width="100%">
218                         <tr>
219                             <td valign="top">
220                                 <div style="padding-bottom:7px;">
221                                     <strong>[% l("Title") %]:</strong>
222                                 </div>
223                             </td>
224                             <td width="1" valign="top" align="right" style="white-space:nowrap;">
225                                 <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% ctx.bre_id %]&amp;hold_type=T"><img alt="[% l('Place Hold') %]"
226                                     src="[% ctx.media_prefix %]/images/place_hold.gif" /></a>
227                                 <a href="#" id="rd_reviews_and_more" target="_blank"><img
228                                     alt="[% l('Reviews and More') %]" src="[% ctx.media_prefix %]/images/reviews.gif" /></a>
229                                 <a href="#" id=""><img alt="[% l('Add to My List') %]"
230                                     src="[% ctx.media_prefix %]/images/add_mylist.gif" /></a>
231                             </td>
232                         </tr>
233                     </table>
234                 </td>        
235             </tr>
236             <tr>
237                 <td nowrap='nowrap' colspan="3" valign="bottom" style="padding-bottom:16px;">
238                 </td>
239             </tr>
240             <tr>
241                 <td><div style="height:20px;"></div></td>
242             </tr>
243         </tbody>
244     </table>
245 </div> <!-- details_body -->
246
247 <!-- ****************** end: rdetail_summary.xml ***************************** -->