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">
84 INCLUDE "opac/parts/bookbag_actions.tt2";
87 operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
88 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
90 <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
91 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
96 <div class="rdetail_aux_utils toggle_list">
97 [% IF ctx.mylist.size %]
99 <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>
101 <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>
105 <div class="rdetail_aux_utils">
106 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
107 <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
108 <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
110 [%- IF ctx.refworks.enabled == 'true' %]
111 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
113 [% IF !ctx.is_staff %]
114 <div class="rdetail_aux_utils share_record">
115 <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
116 <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
121 [%- IF ctx.is_staff %]
122 <div class="rdetail_aux_utils clear_addedcontent_cache">
123 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
124 [% l('Clear AddedContent Cache') %]
132 [%- IF openurl.enabled == 'true';
134 FOREACH issn IN args.issns;
136 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
138 IF openurls.size && openurls.0 != '';
140 <div id='rdetail_openurl'>
141 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
144 FOREACH res IN openurls;
147 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
148 <td>[% res.target_coverage | html %]
149 [%- IF res.target_embargo != '';
151 res.target_embargo | html;
161 [%- merged_uris = args.uris.merge(args.online_res);
162 num_uris = merged_uris.size;
165 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
166 <div class="rdetail_uris">
167 [%- IF num_uris > 1 %]<ul>[% END %]
168 [%- FOR uri IN merged_uris %]
169 [%- IF num_uris == 1 -%]
170 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
172 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
174 <a href="[% uri.href %]" class="uri_link" property="url">
175 [%- IF uri.href != uri.link;
176 '<span property="description">' _ uri.link _ '</span>';
182 [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
183 <link property="availability" href="http://schema.org/OnlineOnly" />
184 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
185 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
187 [%- IF num_uris > 1 %]</ul>[% END %]
190 <div id="copy_hold_counts">
193 IF ctx.copy_summary.0.count;
194 INCLUDE "opac/parts/record/copy_counts.tt2";
196 <span id="rdetail_hold_counts">
197 <h2>[% l('Current holds') %]</h2>
200 # If org hiding is enabled/relevant, only show
201 # counts for copies within the hiding scope.
203 FOR count_chunk IN ctx.copy_summary;
204 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
205 # always true when hiding is disabled
208 count_entry = count_entry + 1;
210 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
211 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
216 <div id="metarecord_population">
218 # l( 'mmr id = ' _ ctx.mmr_id );
219 # l( 'mmr data = ' _ ctx.mmr_data );
220 mmr_attrs = {marc_xml => ctx.mmr_data.marc_xml};
221 PROCESS get_marc_attrs args=mmr_attrs;
223 IF args.mmr_unique_bib.size > 1;
225 <h3>View other formats and editions</h3>
226 <span class="metarecord_population_format">
227 [%- IF mmr_attrs.format_label;
228 FOR format IN mmr_attrs.all_formats;
230 link = mkurl(ctx.opac_root _ '/record/' _ format.source_bibs.0);
231 IF format.source_bibs.size > 1;
232 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']) );
234 <span class="metarecord_population_span_link">
235 <a href="[%- l( link ) %]">
236 [% format.label | html %]
237 ([%- l( format.source_bibs.size ) %])
242 [%- IF mmr_attrs.all_lang.size > 0 %]
243 <span class="metarecord_population_item_lang">
244 [% FOR lang IN mmr_attrs.all_lang;
245 link = mkurl(ctx.opac_root _ '/record/' _ lang.source_bibs.0);
246 IF lang.source_bibs.size > 1;
247 USE url(ctx.opac_root _ '/results');
248 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']) );
250 <span class="metarecord_population_span_link">
251 <a href="[%- l( link ) %]">
252 [% lang.label | html %]
253 ([%- l( lang.source_bibs.size ) %])
256 </span> <!-- metarecord_population_item_lang -->
258 <div class="metarecord_population_all">
260 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'] ) );
262 <span class="metarecord_population_span_link">
263 <a href="[%- l( link ) %]">View all [%- args.mmr_unique_bib.size %] formats and editions
267 END # ending tag for IF args.mmr_unique_bib.size > 1; %]
268 </div> <!-- metarecord_population -->
270 IF ctx.copy_summary.0.count;
271 INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;
276 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
278 [%- IF attrs.isbns.0;
279 FOR isbn IN attrs.isbns;
281 IF (matches = isbn.match('^(.+?)(\s.+)$'));
283 isbn_extra = matches.1;
286 <li class='rdetail_isbns'>
287 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
288 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
292 [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
293 <li class='rdetail_issns'>
294 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
295 <span class='rdetail_value'>[% issn | html %]</span>
299 [%- IF attrs.phys_desc %]
300 <li id='rdetail_phys_desc'>
301 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
302 <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
305 [%- IF attrs.edition %]
306 <li id='rdetail_edition'>
307 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
308 <span class='rdetail_value'>[% attrs.edition | html %]</span>
310 FOR entry IN attrs.graphic_editions;
311 FOR alt IN entry.graphic;
314 diratt = ' dir="' _ alt.dir _ '"';
317 <div class="graphic880 rdetail_value"[% diratt %]>
318 [% alt.value | html %]
326 [%- IF attrs.publisher %]
327 <li id='rdetail_publisher'>
328 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
329 <span class='rdetail_value' property="publisher" typeof="Organization">
330 [%- IF attrs.pubplace; %]
331 <span property="location">[% attrs.pubplace | html; %]</span>
333 <span property="name">[% attrs.publisher | html; %]</span>
335 [%- IF attrs.pubdate; %]
336 <span property="datePublished">[% attrs.pubdate | html; %]</span>
339 IF attrs.graphic_pubinfos.size > 0;
340 FOR entry IN attrs.graphic_pubinfos;
341 FOR alt IN entry.graphic;
344 diratt = ' dir="' _ alt.dir _ '"';
347 <div class="graphic880"[% diratt %]>
348 [% alt.value | html %]
357 [%- IF attrs.producer %]
358 <li id='rdetail_producer'>
359 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
360 <span class='rdetail_value'>
361 [%- IF attrs.prodplace; %]
362 <span>[% attrs.prodplace | html; %]</span>
364 <span>[% attrs.producer | html; %]</span>
365 [%- IF attrs.proddate; %]
366 <span>[% attrs.proddate | html; %]</span>
371 [%- IF attrs.distributor %]
372 <li id='rdetail_distributor'>
373 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
374 <span class='rdetail_value'>
375 [%- IF attrs.distplace; %]
376 <span>[% attrs.distplace | html; %]</span>
378 <span>[% attrs.distributor | html; %]</span>
379 [%- IF attrs.distdate; %]
380 <span>[% attrs.distdate | html; %]</span>
385 [%- IF attrs.manufacturer %]
386 <li id='rdetail_manufacturer'>
387 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
388 <span class='rdetail_value' property="manufacturer" typeof="Organization">
389 [%- IF attrs.manplace; %]
390 <span property="location">[% attrs.manplace | html; %]</span>
392 <span property="name">[% attrs.manufacturer | html; %]</span>
393 [%- IF attrs.mandate; %]
394 <span>[% attrs.mandate | html; %]</span>
399 [%- IF attrs.copyright %]
400 <li id='rdetail_copyright'>
401 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
402 <span class='rdetail_value'>[% attrs.copyright | html_entity; %]
403 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
404 [%- IF attrs.copyrightYear -%]
405 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
410 [%- IF (ctx.badge_scores.size > 0) %]
411 <li id='rdetail_badges'>
412 <strong class='rdetail_label'>[% l("Badges:") %]</strong>
414 [% FOR bscore IN ctx.badge_scores; %]
415 <li><strong>[% bscore.badge.name | html %]</strong>: [% bscore.score %] / 5.0</li>
421 [%- INCLUDE "opac/parts/record/contents.tt2" %]
422 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
423 [%- INCLUDE "opac/parts/record/series.tt2" %]
424 [%- INCLUDE "opac/parts/record/extras.tt2" %]