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 [% IF !ctx.is_staff %]
103 INCLUDE "opac/parts/bookbag_actions.tt2";
106 operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
107 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
109 <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
110 <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="" />
116 <div class="rdetail_aux_utils toggle_list">
117 [% IF ctx.mylist.size %]
119 <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 My Lists') %]" />[% l(' View My Lists') %]</a>
121 <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('View My Temporary List') %]" />[% l(' View My Temporary List') %]</a>
125 <div class="rdetail_aux_utils">
126 <img src="[% ctx.media_prefix %]/images/clipboard.png[% ctx.cache_key %]" alt="[% l('Print / Email Actions Image') %]" />
127 <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
128 <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
130 [%- IF ctx.refworks.enabled == 'true' %]
131 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
133 [% IF !ctx.is_staff %]
134 <div class="rdetail_aux_utils share_record">
135 <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
136 <img src="[% ctx.media_prefix %]/images/link.png[% ctx.cache_key %]" alt="[% l('Permalink') %]" />
141 [% IF !search.no_highlight %]
142 <div class="rdetail_aux_utils highlighting">
143 [% IF CGI.param('no_highlight') %]
144 <a href="[% mkurl('', {}, ['no_highlight']) %]" class="no-dec">
146 <a href="[% mkurl('', {no_highlight => '1'}) %]" class="no-dec">
148 <img src="[% ctx.media_prefix %]/images/highlight.png[% ctx.cache_key %]" alt="[% l('Toggle highlighting') %]" />
149 [% CGI.param('no_highlight') ? l('Enable Highlighting') : l('Disable Highlighting') %]
153 [%- IF ctx.is_staff %]
154 <div class="rdetail_aux_utils clear_addedcontent_cache">
155 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
156 [% l('Clear AddedContent Cache') %]
164 [%- IF openurl.enabled == 'true';
166 FOREACH issn IN args.issns;
168 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
170 IF openurls.size && openurls.0 != '';
172 <div id='rdetail_openurl'>
173 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
176 FOREACH res IN openurls;
179 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
180 <td>[% res.target_coverage | html %]
181 [%- IF res.target_embargo != '';
183 res.target_embargo | html;
193 [%- merged_uris = args.uris.merge(args.online_res);
194 num_uris = merged_uris.size;
197 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
198 <div class="rdetail_uris">
199 [%- IF num_uris > 1 %]<ul>[% END %]
200 [%- FOR uri IN merged_uris %]
201 [%- IF num_uris == 1 -%]
202 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
204 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
206 <a href="[% uri.href %]" class="uri_link" property="url">
207 [%- IF uri.href != uri.link;
208 '<span property="description">' _ uri.link _ '</span>';
214 [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
215 <link property="availability" href="http://schema.org/OnlineOnly" />
216 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
217 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
219 [%- IF num_uris > 1 %]</ul>[% END %]
222 IF ebook_api.enabled == 'true';
223 INCLUDE "opac/parts/ebook_api/avail.tt2";
227 <div id="copy_hold_counts">
230 IF ctx.copy_summary.0.count;
231 INCLUDE "opac/parts/record/copy_counts.tt2";
233 <span id="rdetail_hold_counts">
234 <h2>[% l('Current holds') %]</h2>
237 # If org hiding is enabled/relevant, only show
238 # counts for copies within the hiding scope.
240 FOR count_chunk IN ctx.copy_summary;
241 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
242 # always true when hiding is disabled
245 count_entry = count_entry + 1;
247 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
248 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
253 <div id="metarecord_population">
255 # l( 'mmr id = ' _ ctx.mmr_id );
256 # l( 'mmr data = ' _ ctx.mmr_data );
257 mmr_attrs = {marc_xml => ctx.mmr_data.marc_xml};
258 PROCESS get_marc_attrs args=mmr_attrs;
260 IF args.mmr_unique_bib.size > 1;
262 <h3>[% l("View other formats and editions") %]</h3>
263 <span class="metarecord_population_format">
264 [%- IF mmr_attrs.format_label;
265 FOR format IN mmr_attrs.all_formats;
267 link = mkurl(ctx.opac_root _ '/record/' _ format.source_bibs.0);
268 IF format.source_bibs.size > 1;
269 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']) );
271 <span class="metarecord_population_span_link">
272 <a href="[%- l( link ) %]">
273 [% format.label | html %]
274 ([%- l( format.source_bibs.size ) %])
279 [%- IF mmr_attrs.all_lang.size > 0 %]
280 <span class="metarecord_population_item_lang">
281 [% FOR lang IN mmr_attrs.all_lang;
282 link = mkurl(ctx.opac_root _ '/record/' _ lang.source_bibs.0);
283 IF lang.source_bibs.size > 1;
284 USE url(ctx.opac_root _ '/results');
285 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']) );
287 <span class="metarecord_population_span_link">
288 <a href="[%- l( link ) %]">
289 [% lang.label | html %]
290 ([%- l( lang.source_bibs.size ) %])
293 </span> <!-- metarecord_population_item_lang -->
295 <div class="metarecord_population_all">
297 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'] ) );
299 <span class="metarecord_population_span_link">
300 <a href="[%- l( link ) %]">[% l("View all formats and editions ") %] ([%- args.mmr_unique_bib.size %])
304 END # ending tag for IF args.mmr_unique_bib.size > 1; %]
305 </div> <!-- metarecord_population -->
307 IF ctx.copy_summary.0.count;
308 INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;
313 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
315 [%- IF attrs.isbns.0;
316 FOR isbn IN attrs.isbns;
318 IF (matches = isbn.match('^(.+?)(\s.+)$'));
320 isbn_extra = matches.1;
323 <li class='rdetail_isbns'>
324 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
325 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
329 [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
330 <li class='rdetail_issns'>
331 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
332 <span class='rdetail_value'>[% issn | html %]</span>
336 [%- IF attrs.hl.physical_description.size %]
337 <li id='rdetail_phys_desc'>
338 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
339 <span class='rdetail_value' highlighted='true'>[% attrs.hl.physical_description.join('<br/>') %]</span>
341 [%- ELSIF attrs.phys_desc %]
342 <li id='rdetail_phys_desc'>
343 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
344 <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
347 [%- IF attrs.hl.edition %]
348 <li id='rdetail_edition'>
349 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
350 <span class='rdetail_value' highlighted='true'>[% attrs.hl.edition %]</span>
351 [%- ELSIF attrs.edition %]
352 <li id='rdetail_edition'>
353 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
354 <span class='rdetail_value'>[% attrs.edition | html %]</span>
356 FOR entry IN attrs.graphic_editions;
357 FOR alt IN entry.graphic;
360 diratt = ' dir="' _ alt.dir _ '"';
363 <div class="graphic880 rdetail_value"[% diratt %]>
364 [% alt.value | html %]
372 [%- IF attrs.hl.publisher %]
373 <li id='rdetail_publisher'>
374 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
375 <span class='rdetail_value' highlighted='true'>[% attrs.hl.publisher %]</span>
377 [%- ELSIF attrs.publisher %]
378 <li id='rdetail_publisher'>
379 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
380 <span class='rdetail_value' property="publisher" typeof="Organization">
381 [%- IF attrs.pubplace; %]
382 <span property="location">[% attrs.pubplace | html; %]</span>
384 <span property="name">[% attrs.publisher | html; %]</span>
386 [%- IF attrs.pubdate; %]
387 <span property="datePublished">[% attrs.pubdate | html; %]</span>
390 IF attrs.graphic_pubinfos.size > 0;
391 FOR entry IN attrs.graphic_pubinfos;
392 FOR alt IN entry.graphic;
395 diratt = ' dir="' _ alt.dir _ '"';
398 <div class="graphic880"[% diratt %]>
399 [% alt.value | html %]
408 [%- IF attrs.producer %]
409 <li id='rdetail_producer'>
410 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
411 <span class='rdetail_value'>
412 [%- IF attrs.prodplace; %]
413 <span>[% attrs.prodplace | html; %]</span>
415 <span>[% attrs.producer | html; %]</span>
416 [%- IF attrs.proddate; %]
417 <span>[% attrs.proddate | html; %]</span>
422 [%- IF attrs.distributor %]
423 <li id='rdetail_distributor'>
424 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
425 <span class='rdetail_value'>
426 [%- IF attrs.distplace; %]
427 <span>[% attrs.distplace | html; %]</span>
429 <span>[% attrs.distributor | html; %]</span>
430 [%- IF attrs.distdate; %]
431 <span>[% attrs.distdate | html; %]</span>
436 [%- IF attrs.manufacturer %]
437 <li id='rdetail_manufacturer'>
438 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
439 <span class='rdetail_value' property="manufacturer" typeof="Organization">
440 [%- IF attrs.manplace; %]
441 <span property="location">[% attrs.manplace | html; %]</span>
443 <span property="name">[% attrs.manufacturer | html; %]</span>
444 [%- IF attrs.mandate; %]
445 <span>[% attrs.mandate | html; %]</span>
450 [%- IF attrs.copyright %]
451 <li id='rdetail_copyright'>
452 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
453 <span class='rdetail_value'>[% attrs.copyright | html_entity; %]
454 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
455 [%- IF attrs.copyrightYear -%]
456 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
461 [%- IF (ctx.badge_scores.size > 0) %]
462 <li id='rdetail_badges'>
463 <strong class='rdetail_label'>[% l("Badges:") %]</strong>
465 [% FOR bscore IN ctx.badge_scores; %]
466 <li><strong>[% bscore.badge.name | html %]</strong>: [% bscore.score %] / 5.0</li>
472 [%- INCLUDE "opac/parts/record/contents.tt2" %]
473 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
474 [%- INCLUDE "opac/parts/record/series.tt2" %]
475 [%- INCLUDE "opac/parts/record/extras.tt2" %]