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 _ '" />');
7 <!-- ****************** rdetail_summary.xml ***************************** -->
8 <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
12 [%-# This holds the record summary information %]
13 <div id="rdetail_summary_header">
14 <div id='rdetail_title_div'>
15 <h1 id='rdetail_title' property="name">[% IF attrs.hl.title; accordion(attrs.hl.title); ELSE; accordion(attrs.title_extended); END %]</h1>
17 FOR link880 IN attrs.graphic_titles;
18 FOR alt IN link880.graphic;
19 '<h2 class="graphic880"';
21 ' dir="' _ alt.dir _ '"';
23 '>'; accordion(alt.value); '</h2>';
27 [%- INCLUDE "opac/parts/record/authors.tt2" %]
29 <div id="rdetail_image_div">
30 [%- IF obalkyknih_cz.enabled == 'true' %]
34 isbnissn = attrs.isbns.0;
35 IF (matches = isbnissn.match('^(.+?)(\s.+)$'));
40 isbnissn=attrs.issns.0;
43 <a href='http://obalkyknih.cz/view?isbn=[% isbnissn | html %]'>
45 alt="[% l('Image of item') %]" id='rdetail_image'
46 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]' />
49 <a href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/r/[% ctx.bre_id | uri %]'><img
50 alt="[% l('Image of item') %]" id='rdetail_image'
51 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]' />
56 <div id="format_actions">
59 [%- IF attrs.format_label %]
60 [% FOR format IN attrs.all_formats %]
61 <img title="[% format.label | html %]"
62 alt="[% format.label | html %]"
63 src="[% format.icon %]" />
64 [% format.label | html %]
68 <div id="rdetail_actions_div">
69 [%- search_ou = ctx.search_ou;
70 IF ctx.place_unfillable ||
71 ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size
72 && (ctx.holds_block.enabled != 'true' || !attrs.org_copy_counts.$search_ou.available)
75 <div class="rdetail_aux_utils place_hold">
76 <a href="[% mkurl(ctx.opac_root _ '/place_hold',
77 {hold_target => ctx.bre_id, hold_type => 'T', hold_source_page => mkurl()}, stop_parms) %]"
78 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
79 [% img_alt(l('Place Hold on [_1]', attrs.title)) | html %]/>
80 <span class="place_hold">[% l('Place Hold') %]</span></a>
84 [%- IF ebook_api.enabled == 'true' && args.ebook %]
85 <div id="[%- ctx.bre_id -%]_ebook_checkout" class="rdetail_aux_utils ebook_action hidden">
86 <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_checkout',
87 {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'checkout'}, stop_parms) %]"
88 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
89 [% img_alt(l('Check Out [_1]', attrs.title)) | html %]/>
90 <span class="place_hold">[% l('Check Out E-Item') %]</span></a>
92 <div id="[%- ctx.bre_id -%]_ebook_place_hold" class="rdetail_aux_utils ebook_action hidden">
93 <a href="[% mkurl(ctx.opac_root _ '/myopac/ebook_place_hold',
94 {title => args.ebook.ebook_id, vendor => args.ebook.vendor, action => 'place_hold'}, stop_parms) %]"
95 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png[% ctx.cache_key %]"
96 [% img_alt(l('Place Hold on [_1]', attrs.title)) | html %]/>
97 <span class="place_hold">[% l('Place Hold on E-Item') %]</span></a>
101 <div class="rdetail_aux_utils toggle_list">
102 [% operation = ctx.mylist.grep('^' _ ctx.bre_id _ '$').size ? "delete" : "add";
103 addhref = mkurl(ctx.opac_root _ '/mylist/add', {record => ctx.bre_id}, stop_parms);
104 delhref = mkurl(ctx.opac_root _ '/mylist/delete', {record => ctx.bre_id}, stop_parms);
105 label = (operation == "add") ? l("Add to Basket") : l("Remove from Basket");
107 <a href="[% addhref %]" id="mylist_add_[% ctx.bre_id %]"
108 rel="nofollow" vocab=""
109 data-recid="[% ctx.bre_id %]" data-action="add"
110 class="no-dec mylist_action [% IF ctx.mylist.grep('^' _ ctx.bre_id _ '$').size %]hidden[% END %]"
111 title="[% l("Add [_1] to basket", attrs.title) | html %]" rel="nofollow" vocab="">
112 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
113 [% l("Add to basket") %]
115 <a href="[% delhref %]" id="mylist_delete_[% ctx.bre_id %]"
116 rel="nofollow" vocab=""
117 data-recid="[% ctx.bre_id %]" data-action="delete"
118 class="mylist_action [% IF !ctx.mylist.grep('^' _ ctx.bre_id _ '$').size %]hidden[% END %]"
119 title="[% l("Remove [_1] from basket", attrs.title) | html %]" rel="nofollow" vocab="">
120 <img src="[% ctx.media_prefix %]/images/add-to-cart.png[% ctx.cache_key %]" alt="" />
121 [% l("Remove from basket") %]
124 <div class="rdetail_aux_utils toggle_list">
125 [% IF ctx.mylist.size %]
127 <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>
129 <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>
133 <div class="rdetail_aux_utils toggle_list">
134 [% IF !ctx.is_staff %]
136 INCLUDE "opac/parts/bookbag_actions.tt2";
141 <div class="rdetail_aux_utils">
142 <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('Print / Email Actions Image') %]" />
143 <a href="[% mkurl(ctx.opac_root _ '/record/print_preview/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
144 <a href="[% mkurl(ctx.opac_root _ '/record/email_preview/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
146 [%- IF ctx.refworks.enabled == 'true' %]
147 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
149 [% IF !ctx.is_staff %]
150 <div class="rdetail_aux_utils share_record">
151 <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
152 <img src="[% ctx.media_prefix %]/images/link.png[% ctx.cache_key %]" alt="[% l('Permalink') %]" />
157 [% IF !search.no_highlight %]
158 <div class="rdetail_aux_utils highlighting">
159 [% IF CGI.param('no_highlight') %]
160 <a href="[% mkurl('', {}, ['no_highlight']) %]" class="no-dec">
162 <a href="[% mkurl('', {no_highlight => '1'}) %]" class="no-dec">
164 <img src="[% ctx.media_prefix %]/images/highlight.png[% ctx.cache_key %]" alt="[% l('Toggle highlighting') %]" />
165 [% CGI.param('no_highlight') ? l('Enable Highlighting') : l('Disable Highlighting') %]
169 [%- IF ctx.is_staff %]
170 <div class="rdetail_aux_utils clear_addedcontent_cache">
171 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
172 [% l('Clear AddedContent Cache') %]
180 [%- IF openurl.enabled == 'true';
182 FOREACH issn IN args.issns;
184 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
186 IF openurls.size && openurls.0 != '';
188 <div id='rdetail_openurl'>
189 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
192 FOREACH res IN openurls;
195 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]" target="_blank" rel="noopener">[% res.public_name | html %]</a></td>
196 <td>[% res.target_coverage | html %]
197 [%- IF res.target_embargo != '';
199 res.target_embargo | html;
209 [%- merged_uris = args.uris.merge(args.online_res);
210 num_uris = merged_uris.size;
213 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
214 <div class="rdetail_uris">
215 [%- IF num_uris > 1 %]<ul>[% END %]
216 [%- FOR uri IN merged_uris %]
218 filtered_href = uri.href | html;
219 filtered_link = uri.link ? uri.link : '' | html;
220 filtered_note = uri.note ? uri.note : '' | html;
221 filtered_type = uri.type ? uri.type : '' | html;
223 [%- IF num_uris == 1 -%]
224 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
226 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
228 [%- IF filtered_type.length > 0 -%]
229 <strong> [% filtered_type %] </strong>
231 <a href="[% filtered_href %]" class="uri_link" property="url" target="_blank" rel="noopener">
232 [%- IF filtered_href != filtered_link;
233 '<span property="description">' _ filtered_link _ '</span>';
239 [%- IF filtered_note -%]
240 [%- '- <span property="description">' _ filtered_note _ '</span>' %]
242 [% IF ctx.get_org_setting(ctx.search_ou, 'opac.uri_default_note_text') %]
243 [% link_note = ctx.get_org_setting(ctx.search_ou, 'opac.uri_default_note_text') %]
244 [% '- <span property="description">'; link_note | html; '</span>' %]
247 <link property="availability" href="http://schema.org/OnlineOnly" />
248 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
249 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
251 [%- IF num_uris > 1 %]</ul>[% END %]
254 IF ebook_api.enabled == 'true';
255 INCLUDE "opac/parts/ebook_api/avail.tt2";
259 <div id="copy_hold_counts">
262 IF ctx.copy_summary.0.count;
263 INCLUDE "opac/parts/record/copy_counts.tt2";
265 <span id="rdetail_hold_counts">
266 <h2>[% l('Current holds') %]</h2>
269 # If org hiding is enabled/relevant, only show
270 # counts for copies within the hiding scope.
272 FOR count_chunk IN ctx.copy_summary;
273 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
274 # always true when hiding is disabled
277 count_entry = count_entry + 1;
279 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
280 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
285 <div id="metarecord_population">
287 # l( 'mmr id = ' _ ctx.mmr_id );
288 # l( 'mmr data = ' _ ctx.mmr_data );
289 mmr_attrs = {marc_xml => ctx.mmr_data.marc_xml};
290 PROCESS get_marc_attrs args=mmr_attrs;
292 IF args.mmr_unique_bib.size > 1;
294 <h3>[% l("View other formats and editions") %]</h3>
295 <span class="metarecord_population_format">
296 [%- IF mmr_attrs.format_label;
297 FOR format IN mmr_attrs.all_formats;
299 link = mkurl(ctx.opac_root _ '/record/' _ format.source_bibs.0);
300 IF format.source_bibs.size > 1;
301 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']) );
303 <span class="metarecord_population_span_link">
304 <a href="[%- l( link ) %]">
305 [% format.label | html %]
306 ([%- l( format.source_bibs.size ) %])
311 [%- IF mmr_attrs.all_lang.size > 0 %]
312 <span class="metarecord_population_item_lang">
313 [% FOR lang IN mmr_attrs.all_lang;
314 link = mkurl(ctx.opac_root _ '/record/' _ lang.source_bibs.0);
315 IF lang.source_bibs.size > 1;
316 USE url(ctx.opac_root _ '/results');
317 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']) );
319 <span class="metarecord_population_span_link">
320 <a href="[%- l( link ) %]">
321 [% lang.label | html %]
322 ([%- l( lang.source_bibs.size ) %])
325 </span> <!-- metarecord_population_item_lang -->
327 <div class="metarecord_population_all">
329 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'] ) );
331 <span class="metarecord_population_span_link">
332 <a href="[%- l( link ) %]">[% l("View all formats and editions ") %] ([%- args.mmr_unique_bib.size %])
336 END # ending tag for IF args.mmr_unique_bib.size > 1; %]
337 </div> <!-- metarecord_population -->
339 IF ctx.copy_summary.0.count;
340 INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;
345 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
347 [%- IF attrs.hl.isbn.size; FOR isbn IN attrs.hl.isbn %]
348 <li class='rdetail_isbns'>
349 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
350 <span class='rdetail_value' property='isbn'>[% isbn %]</span>
352 [%- END; ELSIF attrs.isbns.0;
353 FOR isbn IN attrs.isbns;
355 IF (matches = isbn.match('^(.+?)(\s.+)$'));
357 isbn_extra = matches.1;
360 <li class='rdetail_isbns'>
361 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
362 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
366 [%- IF attrs.hl.issn.size; FOR issn IN attrs.hl.issn %]
367 <li class='rdetail_issns'>
368 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong> [% issn %]
370 [%- END; ELSIF attrs.issns.0; FOR issn IN attrs.issns %]
371 <li class='rdetail_issns'>
372 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
373 <span class='rdetail_value'>[% issn | html %]</span>
377 [%- IF attrs.hl.physical_description.size %]
378 <li id='rdetail_phys_desc'>
379 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
380 <span class='rdetail_value' highlighted='true'>
381 [% FOREACH desc IN attrs.hl.physical_description %]
382 <span>[% accordion(desc) %]</span><br/>
385 [%- ELSIF attrs.phys_desc %]
386 <li id='rdetail_phys_desc'>
387 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
388 <span class='rdetail_value'>[% accordion(attrs.phys_desc) %]</span>
391 [%- IF attrs.hl.edition %]
392 <li id='rdetail_edition'>
393 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
394 <span class='rdetail_value' highlighted='true'>[% accordion(attrs.hl.edition) %]</span>
395 [%- ELSIF attrs.edition %]
396 <li id='rdetail_edition'>
397 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
398 <span class='rdetail_value'>[% accordion(attrs.edition) %]</span>
400 FOR entry IN attrs.graphic_editions;
401 FOR alt IN entry.graphic;
404 diratt = ' dir="' _ alt.dir _ '"';
407 <div class="graphic880 rdetail_value"[% diratt %]>
408 [% accordion(alt.value); %]
416 [%- IF attrs.hl.publisher %]
417 <li id='rdetail_publisher'>
418 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
419 <span class='rdetail_value' highlighted='true'>[% accordion(attrs.hl.publisher) %]</span>
421 [%- ELSIF attrs.publisher %]
422 <li id='rdetail_publisher'>
423 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
424 <span class='rdetail_value' property="publisher" typeof="Organization">
426 [%- IF attrs.pubplace; %]
427 <span property="location">[% attrs.pubplace | html %]</span>
429 <span property="name">[% attrs.publisher | html %]</span>
431 [%- IF attrs.pubdate; %]
432 <span property="datePublished">[% attrs.pubdate | html %]</span>
435 IF attrs.graphic_pubinfos.size > 0;
436 FOR entry IN attrs.graphic_pubinfos;
437 FOR alt IN entry.graphic;
440 diratt = ' dir="' _ alt.dir _ '"';
443 <div class="graphic880"[% diratt %]>
444 [% accordion(alt.value) %]
453 [%- IF attrs.producer %]
454 <li id='rdetail_producer'>
455 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
456 <span class='rdetail_value'>
457 [%- IF attrs.prodplace; %]
458 <span>[% accordion(attrs.prodplace) %]</span>
460 <span>[% accordion(attrs.producer) %]</span>
461 [%- IF attrs.proddate; %]
462 <span>[% accordion(attrs.proddate) %]</span>
467 [%- IF attrs.distributor %]
468 <li id='rdetail_distributor'>
469 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
470 <span class='rdetail_value'>
471 [%- IF attrs.distplace; %]
472 <span>[% accordion(attrs.distplace) %]</span>
474 <span>[% accordion(attrs.distributor) %]</span>
475 [%- IF attrs.distdate; %]
476 <span>[% accordion(attrs.distdate) %]</span>
481 [%- IF attrs.manufacturer %]
482 <li id='rdetail_manufacturer'>
483 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
484 <span class='rdetail_value' property="manufacturer" typeof="Organization">
485 [%- IF attrs.manplace; %]
486 <span property="location">[% accordion(attrs.manplace) %]</span>
488 <span property="name">[% accordion(attrs.manufacturer) %]</span>
489 [%- IF attrs.mandate; %]
490 <span>[% accordion(attrs.mandate) %]</span>
495 [%- IF attrs.copyright %]
496 <li id='rdetail_copyright'>
497 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
498 <span class='rdetail_value'>[% accordion(attrs.copyright) %]
499 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
500 [%- IF attrs.copyrightYear -%]
501 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
506 [%- IF (ctx.badge_scores.size > 0 && ctx.hide_badge_scores != 'true') %]
507 <li id='rdetail_badges'>
508 <strong class='rdetail_label'>[% l("Badges:") %]</strong>
510 [% FOR bscore IN ctx.badge_scores; %]
511 <li><strong>[% bscore.badge.name | html %]</strong>: [% bscore.score %] / 5.0</li>
517 [%- INCLUDE "opac/parts/record/contents.tt2" %]
518 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
519 [%- INCLUDE "opac/parts/record/series.tt2" %]
520 [%- INCLUDE "opac/parts/record/extras.tt2" %]