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