2 [% PROCESS "opac/parts/misc_util.tt2";
4 ctx.page_title = attrs.title | html
5 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">[% attrs.title_extended | html %]</h1>
17 FOR link880 IN attrs.graphic_titles;
18 FOR alt IN link880.graphic;
19 '<h2 class="graphic880"';
21 ' dir="' _ alt.dir _ '"';
23 '>'; alt.value | html; '</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 %]'>
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 %]' />
50 <a href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/r/[% ctx.bre_id | uri %]'><img
51 alt="[% l('Image of item') %]" id='rdetail_image'
52 src='[% ctx.media_prefix %]/opac/extras/ac/jacket/[% record.summary.jacket_size %]/r/[% ctx.bre_id | uri %]' />
56 <div id="format_actions">
57 [%- IF attrs.format_label %]
58 [% FOR format IN attrs.all_formats %]
59 <img title="[% format.label | html %]"
60 alt="[% format.label | html %]"
61 src="[% format.icon %]" />
62 [% format.label | html %]
65 <div id="rdetail_actions_div">
66 [%- search_ou = ctx.search_ou;
67 IF ctx.place_unfillable ||
68 ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size
69 && (ctx.holds_block.enabled != 'true' || !attrs.org_copy_counts.$search_ou.available)
72 <div class="rdetail_aux_utils place_hold">
73 <a href="[% mkurl(ctx.opac_root _ '/place_hold',
74 {hold_target => ctx.bre_id, hold_type => 'T', hold_source_page => mkurl()}, stop_parms) %]"
75 class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/green_check.png"
76 [% img_alt(l('Place Hold on [_1]', attrs.title)) %]/>
77 <span class="place_hold">[% l('Place Hold') %]</span></a>
80 <div class="rdetail_aux_utils toggle_list">
82 INCLUDE "opac/parts/bookbag_actions.tt2";
85 operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
86 label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
88 <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
89 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
94 <div class="rdetail_aux_utils">
95 <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
96 <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
97 <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
99 [%- IF ctx.refworks.enabled == 'true' %]
100 [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
102 <div class="rdetail_aux_utils share_record">
103 <a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
104 <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
108 [%- IF ctx.is_staff %]
109 <div class="rdetail_aux_utils clear_addedcontent_cache">
110 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
111 [% l('Clear AddedContent Cache') %]
119 [%- IF openurl.enabled == 'true';
121 FOREACH issn IN args.issns;
123 openurls = openurls.import(ResolverResolver.resolve_issn(issn, openurl.baseurl));
125 IF openurls.size && openurls.0 != '';
127 <div id='rdetail_openurl'>
128 <strong class='rdetail_openurl_title'>[% l("Electronic resources") %]</strong>
131 FOREACH res IN openurls;
134 <td class='rdetail_openurl_entry'><a href="[% res.target_url %]">[% res.public_name | html %]</a></td>
135 <td>[% res.target_coverage | html %]
136 [%- IF res.target_embargo != '';
138 res.target_embargo | html;
148 [%- merged_uris = args.uris.merge(args.online_res);
149 num_uris = merged_uris.size;
152 <h2 class="rdetail_uris">[% l("Electronic resources") %]</h2>
153 <div class="rdetail_uris">
154 [%- IF num_uris > 1 %]<ul>[% END %]
155 [%- FOR uri IN merged_uris %]
156 [%- IF num_uris == 1 -%]
157 <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
159 <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
161 <a href="[% uri.href %]" class="uri_link" property="url">
162 [%- IF uri.href != uri.link;
163 '<span property="description">' _ uri.link _ '</span>';
169 [%- ' - <span property="description">' _ uri.note _ '</span>' IF uri.note %]
170 <link property="availability" href="http://schema.org/OnlineOnly" />
171 [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
172 [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
174 [%- IF num_uris > 1 %]</ul>[% END %]
177 <div id="copy_hold_counts">
180 IF ctx.copy_summary.0.count;
181 INCLUDE "opac/parts/record/copy_counts.tt2";
183 <span id="rdetail_hold_counts">
184 <h2>[% l('Current holds') %]</h2>
187 # If org hiding is enabled/relevant, only show
188 # counts for copies within the hiding scope.
190 FOR count_chunk IN ctx.copy_summary;
191 IF ctx.org_within_hiding_scope(count_chunk.org_unit);
192 # always true when hiding is disabled
195 count_entry = count_entry + 1;
197 l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
198 ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
203 <div id="metarecord_population">
205 # l( 'mmr id = ' _ ctx.mmr_id );
206 # l( 'mmr data = ' _ ctx.mmr_data );
207 mmr_attrs = {marc_xml => ctx.mmr_data.marc_xml};
208 PROCESS get_marc_attrs args=mmr_attrs;
210 IF args.mmr_unique_bib.size > 1;
212 <h3>View other formats and editions</h3>
213 <span class="metarecord_population_format">
214 [%- IF mmr_attrs.format_label;
215 FOR format IN mmr_attrs.all_formats;
217 link = mkurl(ctx.opac_root _ '/record/' _ format.source_bibs.0);
218 IF format.source_bibs.size > 1;
219 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']) );
221 <span class="metarecord_population_span_link">
222 <a href="[%- l( link ) %]">
223 [% format.label | html %]
224 ([%- l( format.source_bibs.size ) %])
229 [%- IF mmr_attrs.all_lang.size > 0 %]
230 <span class="metarecord_population_item_lang">
231 [% FOR lang IN mmr_attrs.all_lang;
232 link = mkurl(ctx.opac_root _ '/record/' _ lang.source_bibs.0);
233 IF lang.source_bibs.size > 1;
234 USE url(ctx.opac_root _ '/results');
235 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']) );
237 <span class="metarecord_population_span_link">
238 <a href="[%- l( link ) %]">
239 [% lang.label | html %]
240 ([%- l( lang.source_bibs.size ) %])
243 </span> <!-- metarecord_population_item_lang -->
245 <div class="metarecord_population_all">
247 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'] ) );
249 <span class="metarecord_population_span_link">
250 <a href="[%- l( link ) %]">View all [%- args.mmr_unique_bib.size %] formats and editions
254 END # ending tag for IF args.mmr_unique_bib.size > 1; %]
255 </div> <!-- metarecord_population -->
257 IF ctx.copy_summary.0.count;
258 INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;
263 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
265 [%- IF attrs.isbns.0;
266 FOR isbn IN attrs.isbns;
268 IF (matches = isbn.match('^(.+?)(\s.+)$'));
270 isbn_extra = matches.1;
273 <li class='rdetail_isbns'>
274 <strong class='rdetail_label'>[% l('ISBN:'); %]</strong>
275 <span class='rdetail_value' property='isbn'>[% isbn | html %]</span>[% isbn_extra | html %]
279 [%- IF attrs.issns.0; FOR issn IN attrs.issns %]
280 <li class='rdetail_issns'>
281 <strong class='rdetail_label'>[% l('ISSN:'); %]</strong>
282 <span class='rdetail_value'>[% issn | html %]</span>
286 [%- IF attrs.phys_desc %]
287 <li id='rdetail_phys_desc'>
288 <strong class='rdetail_label'>[% l("Physical Description:") %]</strong>
289 <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
292 [%- IF attrs.edition %]
293 <li id='rdetail_edition'>
294 <strong class='rdetail_label'>[% l("Edition:") %]</strong>
295 <span class='rdetail_value'>[% attrs.edition | html %]</span>
297 FOR entry IN attrs.graphic_editions;
298 FOR alt IN entry.graphic;
301 diratt = ' dir="' _ alt.dir _ '"';
304 <div class="graphic880 rdetail_value"[% diratt %]>
305 [% alt.value | html %]
313 [%- IF attrs.publisher %]
314 <li id='rdetail_publisher'>
315 <strong class='rdetail_label'>[% l("Publisher:") %]</strong>
316 <span class='rdetail_value' property="publisher" typeof="Organization">
317 [%- IF attrs.pubplace; %]
318 <span property="location">[% attrs.pubplace | html; %]</span>
320 <span property="name">[% attrs.publisher | html; %]</span>
322 [%- IF attrs.pubdate; %]
323 <span property="datePublished">[% attrs.pubdate | html; %]</span>
326 IF attrs.graphic_pubinfos.size > 0;
327 FOR entry IN attrs.graphic_pubinfos;
328 FOR alt IN entry.graphic;
331 diratt = ' dir="' _ alt.dir _ '"';
334 <div class="graphic880"[% diratt %]>
335 [% alt.value | html %]
344 [%- IF attrs.producer %]
345 <li id='rdetail_producer'>
346 <strong class='rdetail_label'>[% l("Producer:") %]</strong>
347 <span class='rdetail_value'>
348 [%- IF attrs.prodplace; %]
349 <span>[% attrs.prodplace | html; %]</span>
351 <span>[% attrs.producer | html; %]</span>
352 [%- IF attrs.proddate; %]
353 <span>[% attrs.proddate | html; %]</span>
358 [%- IF attrs.distributor %]
359 <li id='rdetail_distributor'>
360 <strong class='rdetail_label'>[% l("Distributor:") %]</strong>
361 <span class='rdetail_value'>
362 [%- IF attrs.distplace; %]
363 <span>[% attrs.distplace | html; %]</span>
365 <span>[% attrs.distributor | html; %]</span>
366 [%- IF attrs.distdate; %]
367 <span>[% attrs.distdate | html; %]</span>
372 [%- IF attrs.manufacturer %]
373 <li id='rdetail_manufacturer'>
374 <strong class='rdetail_label'>[% l("Manufacturer:") %]</strong>
375 <span class='rdetail_value' property="manufacturer" typeof="Organization">
376 [%- IF attrs.manplace; %]
377 <span property="location">[% attrs.manplace | html; %]</span>
379 <span property="name">[% attrs.manufacturer | html; %]</span>
380 [%- IF attrs.mandate; %]
381 <span>[% attrs.mandate | html; %]</span>
386 [%- IF attrs.copyright %]
387 <li id='rdetail_copyright'>
388 <strong class='rdetail_label'>[% l("Copyright:") %]</strong>
389 <span class='rdetail_value'>[% attrs.copyright | html_entity; %]
390 [%-# Provide the 4-digit year, cleansed of '@' and other junk %]
391 [%- IF attrs.copyrightYear -%]
392 <meta property='copyrightYear' content='[% attrs.copyrightYear | html; %]'>
397 [%- IF (ctx.badge_scores.size > 0) %]
398 <li id='rdetail_badges'>
399 <strong class='rdetail_label'>[% l("Badges:") %]</strong>
401 [% FOR bscore IN ctx.badge_scores; %]
402 <li><strong>[% bscore.badge.name | html %]</strong>: [% bscore.score %] / 5.0</li>
408 [%- INCLUDE "opac/parts/record/contents.tt2" %]
409 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
410 [%- INCLUDE "opac/parts/record/series.tt2" %]
411 [%- INCLUDE "opac/parts/record/extras.tt2" %]