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 -->
6 <table width="100%" border="0" cellpadding="0" cellspacing="0" id="rdetail_details_table">
7 <tbody id="rdetail_details_tbody">
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>
19 <table border="0" cellpadding="0" cellspacing="0" width="100%">
22 <span id='rdetail_title'>[% attrs.title_extended %]</span><br />
24 <span class='opac-auto-030'>[% l("Author") %]:</span>
25 <em><a title='[% l("Perform an author search") %]'
27 href="[% ctx.opac_root %]/results?qtype=author&query=[%-
28 attrs.author | replace('[,\.:;]', '') | uri %]&loc=[% CGI.param('loc') | uri %]">[% attrs.author %]</a></em>
31 <td align="right" valign="top" nowrap="nowrap" style="white-space:nowrap;">
32 <div style="width:230px;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 ? "&" : ""; %]hold_target=[% ctx.bre_id %]&hold_type=T" id="rdetail_place_hold" class="no-dec"><img
37 src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('place hold') %]" /><span
38 style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
40 <div class="rdetail_aux_utils opac-auto-121">
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");
45 <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
46 <input type="hidden" name="record" value="[% ctx.bre_id %]" />
48 <div class="opac-auto-149">
49 <input type="submit" title="[% label %]" value="[% label %]" class="subtle-button" />
52 <input type="image" alt="[% label %]"
53 src="[% ctx.media_prefix %]/images/clipboard.png" />
57 <div style="float:right;margin-right:17px;">
58 [% IF attrs.format_icon %]
59 <img alt="[% attrs.format_label %]" title="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
66 <div class='opac-auto-018'>
67 <table border="0" cellpadding="0" width="100%">
69 <td nowrap='nowrap' valign="top">
70 [% IF attrs.isbns.0 %]<strong id="rdetail_isbn_lbl">[% l("ISBN") %]</strong>[% END %]
72 <td valign="top" id='rdetail_isbn'>
73 [% FOR isbn IN attrs.isbns %][% IF !loop.first; %]<br/>[% END; isbn; END %]
75 <td nowrap='nowrap' valign="top">
76 [% IF attrs.phys_desc %]<strong id="rdetail_phys_lbl">[% l("Physical Description") %]</strong>[% END %]
78 <td valign="top" id='rdetail_physical_desc'>[% attrs.phys_desc %]</td>
81 <td nowrap='nowrap' valign="top">
82 <strong id="rdetail_ed_lbl">[% IF attrs.edition; l("Edition"); END %]</strong>
84 <td valign="top" id='rdetail_edition'>[% attrs.edition %]</td>
87 <td nowrap='nowrap' valign="top">
88 <strong id="rdetail_pub_lbl">[% IF attrs.publisher; l("Publisher"); END %]</strong>
90 <td valign="top" id='rdetail_publisher'>[% attrs.publisher %]</td>
91 <td nowrap='nowrap' valign="top">
92 <strong id="rdetail_pubdate_lbl">[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
94 <td valign="top" id='rdetail_pubdate'>[% attrs.pubdate %]</td>
98 <!-- hold/copy summary -->
99 <div style="padding-top:15px;">
101 [% l("[quant,_1,Hold,Holds] with [quant,_2,total copy,total copies]",
102 ctx.record_hold_count, ctx.copy_summary.0.count) %]
104 <div>[% l('[quant,_1,Copy,Copies] available', ctx.copy_summary.0.available) %]</div>
114 <table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
116 <tr id="rdetails_status_head">
117 <td>[% l("Location") %]</td>
118 <td>[% l("Call Number") %]</td>
119 <td>[% l("Barcode") %]</td>
120 <td>[% l("Shelving Location") %]</td>
121 [% IF ctx.is_staff %]
122 <td>[% l("Age Hold Protection") %]</td>
123 <td>[% l("Create Date") %]</td>
124 <td>[% l("Holdable?") %]</td>
126 <td>[% l("Status") %]</td>
127 <td>[% l("Due Date") %]</td>
130 <tbody class="copy_details_table">
132 FOR copy_info IN ctx.copies %]
135 # XXX KCLS-specific kludging
136 org_name = ctx.get_aou(copy_info.circ_lib).name;
137 dir = org_name | lower | replace('[^\w]', '') |
138 replace('.+320th', '320th'); %]
139 <a href="http://www.kcls.org/[% dir %]/"
140 class="classic_link">[% org_name %]</a>
142 <td>[% copy_info.call_number_label %]</td>
143 <td>[% copy_info.barcode %]</td>
144 <td>[% copy_info.copy_location %]</td>
145 [% IF ctx.is_staff %]
147 [% copy_info.age_protect ?
148 ctx.get_crahp(copy_info.age_protect).name : l('None') %]
151 ctx.parse_datetime(copy_info.create_date),
154 <td>[% # Show copy/volume hold links to staff (without
155 # checking whether they have permissions to do those).
156 overall_holdable = (copy_info.holdable == 't' AND
157 copy_info.location_holdable == 't' AND
158 copy_info.status_holdable == 't');
161 <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&" : ""; %]hold_target=[% copy_info.id %]&hold_type=C">[% l("copy") %]</a>
162 [% IF copy_info.call_number != last_cn;
163 last_cn = copy_info.call_number;
165 <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&" : ""; %]hold_target=[% copy_info.call_number %]&hold_type=V">[% l("volume") %]</a>
171 <td>[% copy_info.copy_status %]</td>
173 IF copy_info.due_date;
175 ctx.parse_datetime(copy_info.due_date),
184 [% IF ctx.copy_offset > 0;
185 new_offset = ctx.copy_offset - ctx.copy_limit;
186 IF new_offset < 0; new_offset = 0; END %]
188 <a href="[% ctx.opac_root %]/record/[% ctx.bre_id %]?copy_offset=[% new_offset %]&copy_limit=[% ctx.copy_limit %]">« [%
189 l('Previous [_1]', ctx.copy_offset - new_offset)
193 [% IF ctx.copies.size >= ctx.copy_limit %]
195 <a href="[% ctx.opac_root %]/record/[% ctx.bre_id %]?copy_offset=[% ctx.copy_offset + ctx.copy_limit %]&copy_limit=[% ctx.copy_limit %]">[%
196 l('Next [_1]', ctx.copy_limit)
203 [% more_copies_limit = 50 %] [%# TODO: config %]
204 [% IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
205 <div style='margin-top:10px;'>
206 <img src="[% ctx.media_prefix %]/images/plus_sign.png" />
208 SET x = cgi.param('copy_limit', more_copies_limit);
209 SET x = cgi.param('copy_offset', 0); %]
210 <a href="[% cgi.url("-path" => 1, "-query" => 1) %]">[% l('Show more copies') %]</a>
212 [% ELSIF ctx.copy_limit == more_copies_limit %]
213 <div style='margin-top:10px;'>
214 <img src="[% ctx.media_prefix %]/images/minus_sign.png" />
216 SET x = cgi.param('copy_limit', '0'); # 0 == fall back to default
217 SET x = cgi.param('copy_offset', '0'); %]
218 <a href="[% cgi.url("-path" => 1, "-query" => 1) %]">[% l('Show fewer copies') %]</a>
226 <div id="rdetail_locs_expand" class="hide_me">
228 src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
229 <a style="position:relative;top:-3px;" href="#">[% l('Show more locations') %]</a>
232 <div id="rdetail_locs_collapse" class="hide_me">
234 src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
235 <a style="position:relative;top:-3px;" href="#">[% l('Collapse locations') %]</a>
238 <div id="rdetail_extras_expand" class="hide_me">
240 src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
241 <a style="position:relative;top:-3px;" href="#">[% l('Expand all tabs') %]</a>
244 <div id="rdetail_extras_collapse" class="hide_me">
245 <a href="#"><img src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
246 <a style="position:relative;top:-3px;" href="#">[% l('Collapse all tabs') %]</a>
249 <div class="hide_me">
250 <table id='' border="0" width="100%">
251 <tbody id='rdetail_details_tbody'>
253 <td id='' rowspan='2' valign="top" align="center" style="padding-right:10px;">
255 <td class='rdetail_desc' valign="top" colspan="3">
256 <table border="0" width="100%">
259 <div style="padding-bottom:7px;">
260 <strong>[% l("Title") %]:</strong>
263 <td width="1" valign="top" align="right" style="white-space:nowrap;">
264 <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&" : ""; %]hold_target=[% ctx.bre_id %]&hold_type=T"><img alt="[% l('Place Hold') %]"
265 src="[% ctx.media_prefix %]/images/place_hold.gif" /></a>
266 <a href="#" id="rd_reviews_and_more" target="_blank"><img
267 alt="[% l('Reviews and More') %]" src="[% ctx.media_prefix %]/images/reviews.gif" /></a>
268 <a href="#" id=""><img alt="[% l('Add to My List') %]"
269 src="[% ctx.media_prefix %]/images/add_mylist.gif" /></a>
276 <td nowrap='nowrap' colspan="3" valign="bottom" style="padding-bottom:16px;">
280 <td><div style="height:20px;"></div></td>
284 </div> <!-- details_body -->
286 <!-- ****************** end: rdetail_summary.xml ***************************** -->