1 [% PROCESS "opac/parts/misc_util.tt2";
3 ctx.page_title = attrs.title | html
4 ctx.metalinks.push('<meta property="og:image" content="' _ ctx.media_prefix _ '/opac/extras/ac/jacket/large/r/' _ ctx.bre_id _ '" />');
6 <!-- ****************** rdetail_summary.xml ***************************** -->
7 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
11 [%-# This holds the record summary information %]
12 <div id="rdetail_summary_header">
13 <div id='rdetail_title_div'>
14 <h1 id='rdetail_title' property="name">[% IF attrs.hl.title; attrs.hl.title; ELSE; attrs.title_extended | html; END %]</h1>
16 FOR link880 IN attrs.graphic_titles;
17 FOR alt IN link880.graphic;
18 '<h2 class="graphic880"';
20 ' dir="' _ alt.dir _ '"';
22 '>'; alt.value | html; '</h2>';
26 [%- INCLUDE "opac/parts/record/authors.tt2" %]
28 <div id="rdetail_image_div">
29 [%- IF obalkyknih_cz.enabled == 'true' %]
33 isbnissn = attrs.isbns.0;
34 IF (matches = isbnissn.match('^(.+?)(\s.+)$'));
39 isbnissn=attrs.issns.0;
42 <a href='http://obalkyknih.cz/view?isbn=[% isbnissn %]'>
44 alt="[% l('Image of item') %]" id='rdetail_image'
45 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]' />
48 <a href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/r/[% ctx.bre_id | uri %]'><img
49 alt="[% l('Image of item') %]" id='rdetail_image'
50 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]' />
55 <div id="format_actions">
58 [%- IF attrs.format_label %]
59 [% FOR format IN attrs.all_formats %]
60 <img title="[% format.label | html %]"
61 alt="[% format.label | html %]"
62 src="[% format.icon %]" />
63 [% format.label | html %]
67 <div id="rdetail_actions_div">
68 [%- search_ou = ctx.search_ou;
69 IF ctx.place_unfillable ||
70 ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size
71 && (ctx.holds_block.enabled != 'true' || !attrs.org_copy_counts.$search_ou.available)
74 <div class="rdetail_aux_utils place_hold">
75 <a href="[% mkurl(ctx.opac_root _ '/place_hold',
76 {hold_target => ctx.bre_id, hold_type => 'T', hold_source_page => mkurl()}, stop_parms) %]"
77 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
78 [% img_alt(l('Place Hold on [_1]', attrs.title)) %]/>
79 <span class="place_hold">[% l('Place Hold') %]</span></a>
83 [%- IF ebook_api.enabled == 'true' && args.ebook %]
84 <div id="[%- ctx.bre_id -%]_ebook_checkout" class="rdetail_aux_utils ebook_action hidden">
85 <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
86 {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'}, stop_parms) %]"
87 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
88 [% img_alt(l('Check Out [_1]', attrs.title)) %]/>
89 <span class="place_hold">[% l('Check Out E-Item') %]</span></a>
91 <div id="[%- ctx.bre_id -%]_ebook_place_hold" class="rdetail_aux_utils ebook_action hidden">
92 <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
93 {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'place_hold'}, stop_parms) %]"
94 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
95 [% img_alt(l('Place Hold on [_1]', attrs.title)) %]/>
96 <span class="place_hold">[% l('Place Hold on E-Item') %]</span></a>
100 <div class="rdetail_aux_utils toggle_list">
101 [% operation = ctx.mylist.grep('^' _ ctx.bre_id _ '$').size ? "delete" : "add";
102 addhref = mkurl(ctx.opac_root _ '/mylist/add', {record => ctx.bre_id}, stop_parms);
103 delhref = mkurl(ctx.opac_root _ '/mylist/delete', {record => ctx.bre_id}, stop_parms);
104 label = (operation == "add") ? l("Add to Basket") : l("Remove from Basket");
106 <a href="[% addhref %]" id="mylist_add_[% ctx.bre_id %]"
107 rel="nofollow" vocab=""
108 data-recid="[% ctx.bre_id %]" data-action="add"
109 class="no-dec mylist_action [% IF ctx.mylist.grep('^' _ ctx.bre_id _ '$').size %]hidden[% END %]"
110 title="[% l("Add [_1] to basket", attrs.title) %]" rel="nofollow" vocab="">
111 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
112 [% l("Add to basket") %]
114 <a href="[% delhref %]" id="mylist_delete_[% ctx.bre_id %]"
115 rel="nofollow" vocab=""
116 data-recid="[% ctx.bre_id %]" data-action="delete"
117 class="mylist_action [% IF !ctx.mylist.grep('^' _ ctx.bre_id _ '$').size %]hidden[% END %]"
118 title="[% l("Remove [_1] from basket", attrs.title) %]" rel="nofollow" vocab="">
119 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
120 [% l("Remove from basket") %]
123 <div class="rdetail_aux_utils toggle_list">
124 [% IF ctx.mylist.size %]
126 <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('View Basket') %]" />[% l(' View Basket') %]</a>
128 <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="[% l('View My Basket') %]" />[% l(' View My Basket') %]</a>
132 <div class="rdetail_aux_utils toggle_list">
133 [% IF !ctx.is_staff %]
135 INCLUDE "opac/parts/bookbag_actions.tt2";
140 <div class="rdetail_aux_utils">
141 <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('Print / Email Actions Image') %]" />
142 <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
143 <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
145 [%- IF ctx.refworks.enabled == 'true' %]
146 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
148 [% IF !ctx.is_staff %]
149 <div class="rdetail_aux_utils share_record">
150 <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
151 <img src="[% ctx.media_prefix %]/images/link.png[% ctx.cache_key %]" alt="[% l('Permalink') %]" />
156 [% IF !search.no_highlight %]
157 <div class="rdetail_aux_utils highlighting">
158 [% IF CGI.param('no_highlight') %]
159 <a href="[% mkurl('', {}, ['no_highlight']) %]" class="no-dec">
161 <a href="[% mkurl('', {no_highlight => '1'}) %]" class="no-dec">
163 <img src="[% ctx.media_prefix %]/images/highlight.png[% ctx.cache_key %]" alt="[% l('Toggle highlighting') %]" />
164 [% CGI.param('no_highlight') ? l('Enable Highlighting') : l('Disable Highlighting') %]
168 [%- IF ctx.is_staff %]
169 <div class="rdetail_aux_utils clear_addedcontent_cache">
170 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
171 [% l('Clear AddedContent Cache') %]
179 [%- IF openurl.enabled == 'true';
181 FOREACH issn IN args.issns;
183 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
185 IF openurls.size && openurls.0 != '';
187 <div id='rdetail_openurl'>
188 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
191 FOREACH res IN openurls;
194 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]" target="_blank" rel="noopener">[% res.public_name | html %]</a></td>
195 <td>[% res.target_coverage | html %]
196 [%- IF res.target_embargo != '';
198 res.target_embargo | html;
208 [%- merged_uris = args.uris.merge(args.online_res);
209 num_uris = merged_uris.size;
212 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
213 <div class="rdetail_uris">
214 [%- IF num_uris > 1 %]<ul>[% END %]
215 [%- FOR uri IN merged_uris %]
216 [%- IF num_uris == 1 -%]
217 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
219 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
221 <a href="[% uri.href %]" class="uri_link" property="url" target="_blank" rel="noopener">
222 [%- IF uri.href != uri.link;
223 '<span property="description">' _ uri.link _ '</span>';
229 [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
230 <link property="availability" href="http://schema.org/OnlineOnly" />
231 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
232 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
234 [%- IF num_uris > 1 %]</ul>[% END %]
237 IF ebook_api.enabled == 'true';
238 INCLUDE "opac/parts/ebook_api/avail.tt2";
242 <div id="copy_hold_counts">
245 IF ctx.copy_summary.0.count;
246 INCLUDE "opac/parts/record/copy_counts.tt2";
248 <span id="rdetail_hold_counts">
249 <h2>[% l('Current holds') %]</h2>
252 # If org hiding is enabled/relevant, only show
253 # counts for copies within the hiding scope.
255 FOR count_chunk IN ctx.copy_summary;
256 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
257 # always true when hiding is disabled
260 count_entry = count_entry + 1;
262 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
263 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
268 <div id="metarecord_population">
270 # l( 'mmr id = ' _ ctx.mmr_id );
271 # l( 'mmr data = ' _ ctx.mmr_data );
272 mmr_attrs = {marc_xml => ctx.mmr_data.marc_xml};
273 PROCESS get_marc_attrs args=mmr_attrs;
275 IF args.mmr_unique_bib.size > 1;
277 <h3>[% l("View other formats and editions") %]</h3>
278 <span class="metarecord_population_format">
279 [%- IF mmr_attrs.format_label;
280 FOR format IN mmr_attrs.all_formats;
282 link = mkurl(ctx.opac_root _ '/record/' _ format.source_bibs.0);
283 IF format.source_bibs.size > 1;
284 link = mkurl( ctx.opac_root _ '/results', { modifier => 'metabib', metarecord => ctx.mmr_id, 'fi:icon_format' => format.search_format, 'fi:from_metarecord' => ctx.mmr_id }, stop_parms.merge(expert_search_parms, general_search_parms, browse_search_parms, facet_search_parms, ['qtype','fi:search_format','fi:icon_format','fi:item_lang','fi:from_metarecord']) );
286 <span class="metarecord_population_span_link">
287 <a href="[%- l( link ) %]">
288 [% format.label | html %]
289 ([%- l( format.source_bibs.size ) %])
294 [%- IF mmr_attrs.all_lang.size > 0 %]
295 <span class="metarecord_population_item_lang">
296 [% FOR lang IN mmr_attrs.all_lang;
297 link = mkurl(ctx.opac_root _ '/record/' _ lang.source_bibs.0);
298 IF lang.source_bibs.size > 1;
299 USE url(ctx.opac_root _ '/results');
300 link = mkurl( ctx.opac_root _ '/results', { modifier => 'metabib', metarecord => ctx.mmr_id, 'fi:item_lang' => lang.search_format, 'fi:from_metarecord' => ctx.mmr_id }, stop_parms.merge(expert_search_parms, general_search_parms, browse_search_parms, facet_search_parms, ['qtype','fi:search_format','fi:icon_format','fi:item_lang','fi:from_metarecord']) );
302 <span class="metarecord_population_span_link">
303 <a href="[%- l( link ) %]">
304 [% lang.label | html %]
305 ([%- l( lang.source_bibs.size ) %])
308 </span> <!-- metarecord_population_item_lang -->
310 <div class="metarecord_population_all">
312 link = mkurl( ctx.opac_root _ '/results', { modifier => 'metabib', metarecord => ctx.mmr_id, 'fi:from_metarecord' => ctx.mmr_id }, stop_parms.merge(expert_search_parms, general_search_parms, browse_search_parms, facet_search_parms, ['qtype','fi:search_format','fi:icon_format','fi:item_lang','fi:from_metarecord'] ) );
314 <span class="metarecord_population_span_link">
315 <a href="[%- l( link ) %]">[% l("View all formats and editions ") %] ([%- args.mmr_unique_bib.size %])
319 END # ending tag for IF args.mmr_unique_bib.size > 1; %]
320 </div> <!-- metarecord_population -->
322 IF ctx.copy_summary.0.count;
323 INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;
328 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
330 [%- IF attrs.hl.isbn.size; FOR isbn IN attrs.hl.isbn %]
331 <li class='rdetail_isbns'>
332 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong> [% isbn %]
334 [%- END; ELSIF attrs.isbns.0;
335 FOR isbn IN attrs.isbns;
337 IF (matches = isbn.match('^(.+?)(\s.+)$'));
339 isbn_extra = matches.1;
342 <li class='rdetail_isbns'>
343 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
344 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
348 [%- IF attrs.hl.issn.size; FOR issn IN attrs.hl.issn %]
349 <li class='rdetail_issns'>
350 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong> [% issn %]
352 [%- END; ELSIF attrs.issns.0; FOR issn IN attrs.issns %]
353 <li class='rdetail_issns'>
354 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
355 <span class='rdetail_value'>[% issn | html %]</span>
359 [%- IF attrs.hl.physical_description.size %]
360 <li id='rdetail_phys_desc'>
361 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
362 <span class='rdetail_value' highlighted='true'>[% attrs.hl.physical_description.join('<br/>') %]</span>
364 [%- ELSIF attrs.phys_desc %]
365 <li id='rdetail_phys_desc'>
366 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
367 <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
370 [%- IF attrs.hl.edition %]
371 <li id='rdetail_edition'>
372 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
373 <span class='rdetail_value' highlighted='true'>[% attrs.hl.edition %]</span>
374 [%- ELSIF attrs.edition %]
375 <li id='rdetail_edition'>
376 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
377 <span class='rdetail_value'>[% attrs.edition | html %]</span>
379 FOR entry IN attrs.graphic_editions;
380 FOR alt IN entry.graphic;
383 diratt = ' dir="' _ alt.dir _ '"';
386 <div class="graphic880 rdetail_value"[% diratt %]>
387 [% alt.value | html %]
395 [%- IF attrs.hl.publisher %]
396 <li id='rdetail_publisher'>
397 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
398 <span class='rdetail_value' highlighted='true'>[% attrs.hl.publisher %]</span>
400 [%- ELSIF attrs.publisher %]
401 <li id='rdetail_publisher'>
402 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
403 <span class='rdetail_value' property="publisher" typeof="Organization">
404 [%- IF attrs.pubplace; %]
405 <span property="location">[% attrs.pubplace | html; %]</span>
407 <span property="name">[% attrs.publisher | html; %]</span>
409 [%- IF attrs.pubdate; %]
410 <span property="datePublished">[% attrs.pubdate | html; %]</span>
413 IF attrs.graphic_pubinfos.size > 0;
414 FOR entry IN attrs.graphic_pubinfos;
415 FOR alt IN entry.graphic;
418 diratt = ' dir="' _ alt.dir _ '"';
421 <div class="graphic880"[% diratt %]>
422 [% alt.value | html %]
431 [%- IF attrs.producer %]
432 <li id='rdetail_producer'>
433 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
434 <span class='rdetail_value'>
435 [%- IF attrs.prodplace; %]
436 <span>[% attrs.prodplace | html; %]</span>
438 <span>[% attrs.producer | html; %]</span>
439 [%- IF attrs.proddate; %]
440 <span>[% attrs.proddate | html; %]</span>
445 [%- IF attrs.distributor %]
446 <li id='rdetail_distributor'>
447 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
448 <span class='rdetail_value'>
449 [%- IF attrs.distplace; %]
450 <span>[% attrs.distplace | html; %]</span>
452 <span>[% attrs.distributor | html; %]</span>
453 [%- IF attrs.distdate; %]
454 <span>[% attrs.distdate | html; %]</span>
459 [%- IF attrs.manufacturer %]
460 <li id='rdetail_manufacturer'>
461 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
462 <span class='rdetail_value' property="manufacturer" typeof="Organization">
463 [%- IF attrs.manplace; %]
464 <span property="location">[% attrs.manplace | html; %]</span>
466 <span property="name">[% attrs.manufacturer | html; %]</span>
467 [%- IF attrs.mandate; %]
468 <span>[% attrs.mandate | html; %]</span>
473 [%- IF attrs.copyright %]
474 <li id='rdetail_copyright'>
475 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
476 <span class='rdetail_value'>[% attrs.copyright | html_entity; %]
477 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
478 [%- IF attrs.copyrightYear -%]
479 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
484 [%- IF (ctx.badge_scores.size > 0 && ctx.hide_badge_scores != 'true') %]
485 <li id='rdetail_badges'>
486 <strong class='rdetail_label'>[% l("Badges:") %]</strong>
488 [% FOR bscore IN ctx.badge_scores; %]
489 <li><strong>[% bscore.badge.name | html %]</strong>: [% bscore.score %] / 5.0</li>
495 [%- INCLUDE "opac/parts/record/contents.tt2" %]
496 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
497 [%- INCLUDE "opac/parts/record/series.tt2" %]
498 [%- INCLUDE "opac/parts/record/extras.tt2" %]