2 PROCESS "opac/parts/header.tt2";
3 PROCESS "opac/parts/misc_util.tt2"; # MARC
4 WRAPPER "kpac/parts/subpage.tt2";
5 attrs = {marc_xml => ctx.marc_xml};
6 PROCESS get_marc_attrs args=attrs;
7 ctx.page_title = attrs.title | html
10 <div class="item_detail_header">
12 <div class="item_detail_image">
13 [% ident = attrs.isbn_clean || attrs.upc;
14 href = ctx.media_prefix _ '/images/kpac/item_image.jpg';
15 IF ident; href = ctx.media_prefix _ '/opac/extras/ac/jacket/medium/' _ ident; END %]
16 <a href="[% href | url %]"><img
17 alt="[% l('Image of item') %]" width="167" src='[% href | url %]' /></a><br />
20 <div class="item_detail_info">
21 <div class="item_detail_name">[% attrs.title | html %]</div>
22 <div class="item_detail_author">[% l('by [_1]', attrs.author) | html %]</div>
23 <div class="item_detail_icon_rate">
24 <div class="item_icon_wrapper">
25 <div class="item_icon">
26 <img width="35" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
27 <!-- put a single around each side of the image - for vertical centering -->
29 <div class="item_icon_type_text">[% attrs.format_label %]</div>
32 <div class="item_detail_rate_wrapper">
33 <div class="item_detail_rate_starts">
34 <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
35 <span class="ltfl_reviews"/>
38 <div style="margin-bottom:20px;">
39 <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
44 <div class="item_detail_rate_starts"><img alt="[% l('rating') %]" src="[% ctx.media_prefix %]/images/kpac/stars.png" /></div>
45 <div class="item_detail_rate_link"><a href="javascript:;">[% l('Rate this') %]</a></div>
46 <div class="clear"> </div>
49 <div class="item_detail_cn_wrapper">
50 <div class="item_detail_callnumber">[% attrs.holdings.0.label | html %]</div>
51 <div class="item_detail_extra_info">
52 [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] <!-- TODO fix commas, etc. -->
53 [% IF attrs.phys_desc %]<br/>[% attrs.phys_desc | html; END %]
57 <div class="clear"> </div>
61 <div class="item_detail_header_buttons">
62 <div class="item_detail_getit_btn"><a href="[% mkurl(ctx.kpac_root _ '/getit/' _ ctx.bre_id) %]"><img
63 alt="[% l('Get it') | html %]" src="[% ctx.media_prefix %]/images/kpac/get_it_btn.png" /></a>
65 <div class="item_detail_goback_btn">
66 <a href="[% mkurl(ctx.kpac_root _ '/results') %]"><img
67 alt="[% l('Go Back') | html %]" src="[% ctx.media_prefix %]/images/kpac/go_back_btn.png" /></a>
70 <div class="clear"> </div>
73 <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
75 <div class="sub_header">[% l('You can find this item at these locations:') %]</div>
76 <div class="item_detail_location_wrapper">
77 [% INCLUDE 'kpac/parts/copy_table.tt2' %]
80 [% IF attrs.summary %]
81 <div class="sub_header">[% l('About this item:') %]</div>
82 <div class="item_detail_desc">
83 [% FOR sum IN attrs.summary %]
84 [% IF !loop.first; '<br/>'; END %]
85 <p>[% sum | html %] </p>
90 [% INCLUDE 'kpac/parts/addedcontent.tt2' %]