1 [% PROCESS "opac/parts/misc_util.tt2";
3 ctx.page_title = attrs.title | html
5 <!-- ****************** rdetail_summary.xml ***************************** -->
6 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
10 [%-# This holds the record summary information %]
11 <div id="rdetail_summary_header">
12 <div id='rdetail_title_div'>
13 <h1 id='rdetail_title' property="name">[% attrs.title_extended | html %]</h1>
15 FOR link880 IN attrs.graphic_titles;
16 FOR alt IN link880.graphic;
17 '<h2 class="graphic880"';
19 ' dir="' _ alt.dir _ '"';
21 '>'; alt.value | html; '</h2>';
25 [%- INCLUDE "opac/parts/record/authors.tt2" %]
27 <div id="rdetail_image_div">
28 <a href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/r/[% ctx.bre_id | uri %]'><img
29 alt="[% l('Image of item') %]" id='rdetail_image'
30 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]' /></a>
33 <div id="format_actions">
34 [%- IF attrs.format_label %]
35 [% FOR format IN attrs.all_formats %]
36 <img title="[% format.label | html %]"
37 alt="[% format.label | html %]"
38 src="[% format.icon %]" />
39 [% format.label | html %]
42 <div id="rdetail_actions_div">
43 [%- search_ou = ctx.search_ou;
44 IF ctx.place_unfillable ||
45 ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size
46 && (ctx.holds_block.enabled != 'true' || !attrs.org_copy_counts.$search_ou.available)
49 <div class="rdetail_aux_utils place_hold">
50 <a href="[% mkurl(ctx.opac_root _ '/place_hold',
51 {hold_target => ctx.bre_id, hold_type => 'T', hold_source_page => mkurl()}, stop_parms) %]"
52 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png"
53 [% img_alt(l('Place Hold on [_1]', attrs.title)) %]/>
54 <span class="place_hold">[% l('Place Hold') %]</span></a>
57 <div class="rdetail_aux_utils toggle_list">
59 INCLUDE "opac/parts/bookbag_actions.tt2";
62 operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
63 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
65 <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
66 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
71 <div class="rdetail_aux_utils">
72 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
73 <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
74 <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
76 [%- IF ctx.refworks.enabled == 'true' %]
77 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
83 [%- IF openurl.enabled == 'true';
85 FOREACH issn IN args.issns;
87 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
89 IF openurls.size && openurls.0 != '';
91 <div id='rdetail_openurl'>
92 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
95 FOREACH res IN openurls;
98 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
99 <td>[% res.target_coverage | html %]
100 [%- IF res.target_embargo != '';
102 res.target_embargo | html;
112 [%- merged_uris = args.uris.merge(args.online_res);
113 num_uris = merged_uris.size;
116 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
117 <div class="rdetail_uris">
118 [%- IF num_uris > 1 %]<ul>[% END %]
119 [%- FOR uri IN merged_uris %]
120 [%- IF num_uris == 1 -%]
121 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
123 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
125 <a href="[% uri.href %]" property="url">
126 [%- IF uri.href != uri.link;
127 '<span property="description">' _ uri.link _ '</span>';
133 [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
134 <link property="availability" href="http://schema.org/OnlineOnly" />
135 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
136 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
138 [%- IF num_uris > 1 %]</ul>[% END %]
141 [%- # Hold/copy summary
142 IF ctx.copy_summary.0.count
144 <div id="copy_hold_counts">
145 [%- INCLUDE "opac/parts/record/copy_counts.tt2" %]
146 <span id="rdetail_hold_counts">
147 <h2>[% l('Current holds') %]</h2>
150 # If org hiding is enabled/relevant, only show
151 # counts for copies within the hiding scope.
153 FOR count_chunk IN ctx.copy_summary;
154 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
155 # always true when hiding is disabled
158 count_entry = count_entry + 1;
160 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
161 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
165 [%- INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies %]
169 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
171 [%- IF attrs.isbns.0;
172 FOR isbn IN attrs.isbns;
174 IF (matches = isbn.match('^(.+?)(\s.+)$'));
176 isbn_extra = matches.1;
179 <li class='rdetail_isbns'>
180 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
181 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
185 [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
186 <li class='rdetail_issns'>
187 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
188 <span class='rdetail_value'>[% issn | html %]</span>
192 [%- IF attrs.phys_desc %]
193 <li id='rdetail_phys_desc'>
194 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
195 <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
198 [%- IF attrs.edition %]
199 <li id='rdetail_edition'>
200 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
201 <span class='rdetail_value'>[% attrs.edition | html %]</span>
203 FOR entry IN attrs.graphic_editions;
204 FOR alt IN entry.graphic;
207 diratt = ' dir="' _ alt.dir _ '"';
210 <div class="graphic880 rdetail_value"[% diratt %]>
211 [% alt.value | html %]
219 [%- IF attrs.publisher %]
220 <li id='rdetail_publisher'>
221 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
222 <span class='rdetail_value' property="publisher" typeof="Organization">
223 [%- IF attrs.pubplace; %]
224 <span property="location">[% attrs.pubplace | html; %]</span>
226 <span property="name">[% attrs.publisher | html; %]</span>
228 [%- IF attrs.pubdate; %]
229 <span property="datePublished">[% attrs.pubdate | html; %]</span>
232 IF attrs.graphic_pubinfos.size > 0;
233 FOR entry IN attrs.graphic_pubinfos;
234 FOR alt IN entry.graphic;
237 diratt = ' dir="' _ alt.dir _ '"';
240 <div class="graphic880"[% diratt %]>
241 [% alt.value | html %]
250 [%- IF attrs.producer %]
251 <li id='rdetail_producer'>
252 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
253 <span class='rdetail_value'>
254 [%- IF attrs.prodplace; %]
255 <span>[% attrs.prodplace | html; %]</span>
257 <span>[% attrs.producer | html; %]</span>
258 [%- IF attrs.proddate; %]
259 <span>[% attrs.proddate | html; %]</span>
264 [%- IF attrs.distributor %]
265 <li id='rdetail_distributor'>
266 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
267 <span class='rdetail_value'>
268 [%- IF attrs.distplace; %]
269 <span>[% attrs.distplace | html; %]</span>
271 <span>[% attrs.distributor | html; %]</span>
272 [%- IF attrs.distdate; %]
273 <span>[% attrs.distdate | html; %]</span>
278 [%- IF attrs.manufacturer %]
279 <li id='rdetail_manufacturer'>
280 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
281 <span class='rdetail_value' property="manufacturer" typeof="Organization">
282 [%- IF attrs.manplace; %]
283 <span property="location">[% attrs.manplace | html; %]</span>
285 <span property="name">[% attrs.manufacturer | html; %]</span>
286 [%- IF attrs.mandate; %]
287 <span>[% attrs.mandate | html; %]</span>
292 [%- IF attrs.copyright %]
293 <li id='rdetail_copyright'>
294 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
295 <span class='rdetail_value'>[% attrs.copyright | html_entity; %]
296 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
297 [%- IF attrs.copyrightYear -%]
298 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
305 [%- INCLUDE "opac/parts/record/contents.tt2" %]
306 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
307 [%- INCLUDE "opac/parts/record/series.tt2" %]
308 [%- INCLUDE "opac/parts/record/extras.tt2" %]