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">[% attrs.title_extended | html %]</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"
78 [% img_alt(l('Place Hold on [_1]', attrs.title)) %]/>
79 <span class="place_hold">[% l('Place Hold') %]</span></a>
82 <div class="rdetail_aux_utils toggle_list">
83 [% IF !ctx.is_staff %]
85 INCLUDE "opac/parts/bookbag_actions.tt2";
88 operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
89 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
91 <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
92 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
98 <div class="rdetail_aux_utils toggle_list">
99 [% IF ctx.mylist.size %]
101 <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Lists') %]" />[% l(' View My Lists') %]</a>
103 <a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Temporary List') %]" />[% l(' View My Temporary List') %]</a>
107 <div class="rdetail_aux_utils">
108 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
109 <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
110 <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
112 [%- IF ctx.refworks.enabled == 'true' %]
113 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
115 [% IF !ctx.is_staff %]
116 <div class="rdetail_aux_utils share_record">
117 <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
118 <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
123 [%- IF ctx.is_staff %]
124 <div class="rdetail_aux_utils clear_addedcontent_cache">
125 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
126 [% l('Clear AddedContent Cache') %]
134 [%- IF openurl.enabled == 'true';
136 FOREACH issn IN args.issns;
138 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
140 IF openurls.size && openurls.0 != '';
142 <div id='rdetail_openurl'>
143 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
146 FOREACH res IN openurls;
149 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
150 <td>[% res.target_coverage | html %]
151 [%- IF res.target_embargo != '';
153 res.target_embargo | html;
163 [%- merged_uris = args.uris.merge(args.online_res);
164 num_uris = merged_uris.size;
167 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
168 <div class="rdetail_uris">
169 [%- IF num_uris > 1 %]<ul>[% END %]
170 [%- FOR uri IN merged_uris %]
171 [%- IF num_uris == 1 -%]
172 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
174 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
176 <a href="[% uri.href %]" class="uri_link" property="url">
177 [%- IF uri.href != uri.link;
178 '<span property="description">' _ uri.link _ '</span>';
184 [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
185 <link property="availability" href="http://schema.org/OnlineOnly" />
186 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
187 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
189 [%- IF num_uris > 1 %]</ul>[% END %]
192 IF ebook_api.enabled == 'true';
193 INCLUDE "opac/parts/ebook_api/avail.tt2";
197 <div id="copy_hold_counts">
200 IF ctx.copy_summary.0.count;
201 INCLUDE "opac/parts/record/copy_counts.tt2";
203 <span id="rdetail_hold_counts">
204 <h2>[% l('Current holds') %]</h2>
207 # If org hiding is enabled/relevant, only show
208 # counts for copies within the hiding scope.
210 FOR count_chunk IN ctx.copy_summary;
211 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
212 # always true when hiding is disabled
215 count_entry = count_entry + 1;
217 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
218 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
223 <div id="metarecord_population">
225 # l( 'mmr id = ' _ ctx.mmr_id );
226 # l( 'mmr data = ' _ ctx.mmr_data );
227 mmr_attrs = {marc_xml => ctx.mmr_data.marc_xml};
228 PROCESS get_marc_attrs args=mmr_attrs;
230 IF args.mmr_unique_bib.size > 1;
232 <h3>View other formats and editions</h3>
233 <span class="metarecord_population_format">
234 [%- IF mmr_attrs.format_label;
235 FOR format IN mmr_attrs.all_formats;
237 link = mkurl(ctx.opac_root _ '/record/' _ format.source_bibs.0);
238 IF format.source_bibs.size > 1;
239 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']) );
241 <span class="metarecord_population_span_link">
242 <a href="[%- l( link ) %]">
243 [% format.label | html %]
244 ([%- l( format.source_bibs.size ) %])
249 [%- IF mmr_attrs.all_lang.size > 0 %]
250 <span class="metarecord_population_item_lang">
251 [% FOR lang IN mmr_attrs.all_lang;
252 link = mkurl(ctx.opac_root _ '/record/' _ lang.source_bibs.0);
253 IF lang.source_bibs.size > 1;
254 USE url(ctx.opac_root _ '/results');
255 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']) );
257 <span class="metarecord_population_span_link">
258 <a href="[%- l( link ) %]">
259 [% lang.label | html %]
260 ([%- l( lang.source_bibs.size ) %])
263 </span> <!-- metarecord_population_item_lang -->
265 <div class="metarecord_population_all">
267 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'] ) );
269 <span class="metarecord_population_span_link">
270 <a href="[%- l( link ) %]">View all [%- args.mmr_unique_bib.size %] formats and editions
274 END # ending tag for IF args.mmr_unique_bib.size > 1; %]
275 </div> <!-- metarecord_population -->
277 IF ctx.copy_summary.0.count;
278 INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;
283 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
285 [%- IF attrs.isbns.0;
286 FOR isbn IN attrs.isbns;
288 IF (matches = isbn.match('^(.+?)(\s.+)$'));
290 isbn_extra = matches.1;
293 <li class='rdetail_isbns'>
294 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
295 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
299 [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
300 <li class='rdetail_issns'>
301 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
302 <span class='rdetail_value'>[% issn | html %]</span>
306 [%- IF attrs.phys_desc %]
307 <li id='rdetail_phys_desc'>
308 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
309 <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
312 [%- IF attrs.edition %]
313 <li id='rdetail_edition'>
314 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
315 <span class='rdetail_value'>[% attrs.edition | html %]</span>
317 FOR entry IN attrs.graphic_editions;
318 FOR alt IN entry.graphic;
321 diratt = ' dir="' _ alt.dir _ '"';
324 <div class="graphic880 rdetail_value"[% diratt %]>
325 [% alt.value | html %]
333 [%- IF attrs.publisher %]
334 <li id='rdetail_publisher'>
335 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
336 <span class='rdetail_value' property="publisher" typeof="Organization">
337 [%- IF attrs.pubplace; %]
338 <span property="location">[% attrs.pubplace | html; %]</span>
340 <span property="name">[% attrs.publisher | html; %]</span>
342 [%- IF attrs.pubdate; %]
343 <span property="datePublished">[% attrs.pubdate | html; %]</span>
346 IF attrs.graphic_pubinfos.size > 0;
347 FOR entry IN attrs.graphic_pubinfos;
348 FOR alt IN entry.graphic;
351 diratt = ' dir="' _ alt.dir _ '"';
354 <div class="graphic880"[% diratt %]>
355 [% alt.value | html %]
364 [%- IF attrs.producer %]
365 <li id='rdetail_producer'>
366 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
367 <span class='rdetail_value'>
368 [%- IF attrs.prodplace; %]
369 <span>[% attrs.prodplace | html; %]</span>
371 <span>[% attrs.producer | html; %]</span>
372 [%- IF attrs.proddate; %]
373 <span>[% attrs.proddate | html; %]</span>
378 [%- IF attrs.distributor %]
379 <li id='rdetail_distributor'>
380 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
381 <span class='rdetail_value'>
382 [%- IF attrs.distplace; %]
383 <span>[% attrs.distplace | html; %]</span>
385 <span>[% attrs.distributor | html; %]</span>
386 [%- IF attrs.distdate; %]
387 <span>[% attrs.distdate | html; %]</span>
392 [%- IF attrs.manufacturer %]
393 <li id='rdetail_manufacturer'>
394 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
395 <span class='rdetail_value' property="manufacturer" typeof="Organization">
396 [%- IF attrs.manplace; %]
397 <span property="location">[% attrs.manplace | html; %]</span>
399 <span property="name">[% attrs.manufacturer | html; %]</span>
400 [%- IF attrs.mandate; %]
401 <span>[% attrs.mandate | html; %]</span>
406 [%- IF attrs.copyright %]
407 <li id='rdetail_copyright'>
408 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
409 <span class='rdetail_value'>[% attrs.copyright | html_entity; %]
410 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
411 [%- IF attrs.copyrightYear -%]
412 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
417 [%- IF (ctx.badge_scores.size > 0) %]
418 <li id='rdetail_badges'>
419 <strong class='rdetail_label'>[% l("Badges:") %]</strong>
421 [% FOR bscore IN ctx.badge_scores; %]
422 <li><strong>[% bscore.badge.name | html %]</strong>: [% bscore.score %] / 5.0</li>
428 [%- INCLUDE "opac/parts/record/contents.tt2" %]
429 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
430 [%- INCLUDE "opac/parts/record/series.tt2" %]
431 [%- INCLUDE "opac/parts/record/extras.tt2" %]