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 <!-- TODO chilifresh, etc. -->
34 <div class="item_detail_rate_starts"><img alt="rating" src="[% ctx.media_prefix %]/images/kpac/stars.png" /></div>
35 <div class="item_detail_rate_link"><a href="javascript:;">Rate this</a></div>
36 <div class="clear"> </div>
38 <div class="item_detail_cn_wrapper">
39 <div class="item_detail_callnumber">[% attrs.holdings.0.label | html %]</div>
40 <div class="item_detail_extra_info">
41 [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] <!-- TODO fix commas, etc. -->
42 [% IF attrs.phys_desc %]<br/>[% attrs.phys_desc | html; END %]
46 <div class="clear"> </div>
50 <div class="item_detail_header_buttons">
51 <div class="item_detail_getit_btn"><a href="[% mkurl(ctx.kpac_root _ '/getit/' _ ctx.bre_id) %]"><img
52 alt="[% l('Get it') | html %]" src="[% ctx.media_prefix %]/images/kpac/get_it_btn.png" /></a>
54 <div class="item_detail_goback_btn">
55 <a href="[% mkurl(ctx.kpac_root _ '/results') %]"><img
56 alt="[% l('Go Back') | html %]" src="[% ctx.media_prefix %]/images/kpac/go_back_btn.png" /></a>
59 <div class="clear"> </div>
62 <div class="sub_header">[% l('You can find this item at these locations:') %]</div>
63 <div class="item_detail_location_wrapper">
64 [% INCLUDE 'kpac/parts/copy_table.tt2' %]
67 [% IF attrs.summary %]
68 <div class="sub_header">[% l('About this item:') %]</div>
69 <div class="item_detail_desc">
70 [% FOR sum IN attrs.summary %]
71 [% IF !loop.first; '<br/>'; END %]
72 <p>[% sum | html %] </p>
79 <div class="item_detail_extras_tabs">
80 <a href="javascript:;">Reviews</a>
81 <div class="selected">Rate this Item</div>
82 <a href="javascript:;">About the Author</a>
83 <div class="clear"> </div>
86 <div class="item_detail_rating_top">
87 <table cellpadding="0" cellspacing="0" border="0" class="item_avg_rate_table">
89 <td class="avg_rate">Average Rating</td>
90 <td class="stars"><img alt="rating" src="[% ctx.media_prefix %]/images/kpac/stars.png" /></td>
91 <td class="total_rates">out of 132 reviews</td>
94 <div class="clear"> </div>
97 <div class="item_detail_rating">
98 <div class="review_box_top"> </div>
99 <div class="review_box_body">
100 <div class="input_boxes">
101 <table cellpadding="0" cellspacing="0" border="0">
103 <td class="review_name_cell"><input type="text" class="review_name" style="color:#aaa;" value=" Name " onfocus="if(this.value==' Name '){this.value='';this.style.color='#424242';}" onblur="if(this.value==''){this.value=' Name '; this.style.color='#aaa';}" /></td>
104 <td class="review_email_cell"><input type="text" class="review_email" style="color:#aaa;" value=" Email Address " onfocus="if(this.value==' Email Address '){this.value='';this.style.color='#424242';}" onblur="if(this.value==''){this.value=' Email Address '; this.style.color='#aaa';}" /></td>
105 <td class="rating_msg_box">Your email address will not<br />be displayed to other users.</td>
109 <div class="item_detail_rating2">
110 <table cellpadding="0" cellspacing="0" border="0" class="item_avg_rate_table2"><tr>
111 <td class="rate">Rating</td>
112 <td class="stars"><img alt="rating" src="[% ctx.media_prefix %]/images/kpac/stars_gray.png" /></td>
113 <td class="scale">1 = Poor, 5 = Awesome</td>
117 <div class="review_comment_box"><textarea class="review_comment" style="color:#aaa;" onfocus="if(this.value==' Write the reasons for your rating here. '){this.value='';this.style.color='#424242';}" onblur="if(this.value==''){this.value=' Write the reasons for your rating here. '; this.style.color='#aaa';}"> Write the reasons for your rating here. </textarea></div>
118 <div class="clear"> </div>
120 <div class="review_submit_box"><a href="javascript:;"><img alt="submit review" src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" /></a></div>
123 <div class="sub_navigation1">
124 <table cellpadding="0" cellspacing="0" border="0" width="100%">
126 <td><a href="javascript:;"><img src="[% ctx.media_prefix %]/images/kpac/go_back_btn.png" /></a></td>
127 <td width="100%" class="nav_mid_bg"></td>
128 <td class="to_top_btn"><a href="javascript:;"><img src="[% ctx.media_prefix %]/images/kpac/to_top_btn.png" /></a></td>