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