]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/kpac/parts/record_row.tt2
LP#1681095 Browser cache-busting key for longer expires
[working/Evergreen.git] / Open-ILS / src / templates / kpac / parts / record_row.tt2
1 <div class="search_results">
2     <div class="item_detail_image">
3         [%  img_src = ctx.media_prefix _ '/images/kpac/item_image.jpg' _ ctx.cache_key; # default image
4             ident = attrs.isbn_clean || attrs.upc; 
5             IF ident; 
6                 img_src = ctx.media_prefix _ '/opac/extras/ac/jacket/medium/' _ ident;
7             END;
8         %]
9         <a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]"><img 
10             alt="[% l('Image of item') %]" width="167"
11             src='[% mkurl(img_src, {}, 1) %]' /></a><br />
12     </div>
13     <div class="item_detail_info">
14         <div class="item_detail_name"><a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]">[% attrs.title | html %]</a></div>
15         <div class="item_detail_author">[% l('by [_1]', attrs.author) | html %]</div>
16         <div class="item_detail_callnumber">[% attrs.holdings.0.label | html %]</div>
17         <div class="item_detail_extra_info">
18             [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] <!-- TODO fix commas, etc. -->
19             [% IF attrs.phys_desc %]<br/>[% attrs.phys_desc | html; END %]
20         </div>
21         [% IF show_actions %]
22         <div class="item_detail_actions">
23             <div class="button"><a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]"><img 
24                 src="[% ctx.media_prefix %]/images/kpac/more_info_btn.png[% ctx.cache_key %]" alt="[% l('more info') %]" /></a></div>
25             <div class="button"><a href="[% mkurl(ctx.kpac_root _ '/getit/' _ rec_id) %]"><img 
26                 src="[% ctx.media_prefix %]/images/kpac/get_it_btn_sm.png[% ctx.cache_key %]" alt="[% l('get it') %]" /></a></div>
27             <div class="clear">&nbsp;</div>
28         </div>
29         [% END %]
30     </div>
31     <div class="item_icon_wrapper">
32         <div class="item_icon">
33             &nbsp;<img width="35" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />&nbsp; 
34             <!-- put a single &nbsp; around each side of the image - for vertical centering -->
35         </div>
36         <div class="item_icon_type_text">[% attrs.format_label %]</div>
37     </div>
38     <div class="clear">&nbsp;</div>
39 </div>
40