]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/kpac/getit_results.tt2
LP#1681095 Browser cache-busting key for longer expires
[working/Evergreen.git] / Open-ILS / src / templates / kpac / getit_results.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "kpac/parts/grid.tt2";
3     WRAPPER "kpac/parts/subpage.tt2";
4     PROCESS "opac/parts/misc_util.tt2"; # MARC 
5     attrs = {marc_xml => ctx.marc_xml};
6     PROCESS get_marc_attrs args=attrs;
7     ctx.page_title = l('Get it');
8     kill_params = ['list', 'hold', 'hold_failed', 'pickup_lib', 'action'];
9     title_html = attrs.title | html;
10 %]
11           
12
13 <div class="checkout_res_body">
14     [% IF ctx.added_to_anon %]
15         <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
16         <p>
17         [% l('You successfully saved [_1].', title_html) %]<br/>
18         [% l('To manage your lists, go to [_1]My Lists[_2]', '<a href="' _ mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) _ '">', '</a>') %]
19         <p>
20     [% ELSIF ctx.added_to_list %]
21         [% list_html = ctx.added_to_list.name | html %]
22         <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
23         <p>
24         [% l('You successfully saved [_1] to [_2].', title_html, list_html) %]<br/>
25         [% l('To manage your lists, go to [_1]My Lists[_2]', '<a href="' _ mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) _ '">', '</a>') %]
26         <p>
27     [% ELSIF CGI.param('hold') %]
28         [% lib_html = ctx.get_aou(ctx.hold.pickup_lib).name | html %]
29         <h2 class="sub_header2">[% l('Hold Successful!') %]</h2>
30         <p>
31         [% l('Your request for [_1] was successful.', '<a href="' _ mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) _ '">' _ title_html _ '</a>') %]<br/>
32         [% l('You will be notified when your item is ready for pickup.  You will be able to pick your item up at [_1].', lib_html) %]
33         <p>
34     [% ELSE %]
35         <p>
36         [% l('Unable to request [_1].', '<a href="' _ mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) _ '">' _ title_html _ '</a>') %]<br/>
37         [% l('Please see a librarian.') %]
38     [% END %]
39 </div>
40
41 <div class="sub_navigation2 checkout">
42     <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
43         <td><a href="[% mkurl(ctx.kpac_root _ '/results', {}, kill_params) %]">
44             <img src="[% ctx.media_prefix %]/images/kpac/back_to_results_btn.png[% ctx.cache_key %]" /></a></td>
45         <td width="100%" class="nav_mid_bg">&nbsp;</td>
46         <td><img src="[% ctx.media_prefix %]/images/kpac/back_to_book.png[% ctx.cache_key %]" /></td>
47         <td nowrap="nowrap">
48             <a class="checkout_res_back" href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">
49                 [%  title = attrs.title || '';
50                     IF title.length > 18; title = title.substr(18, title.length, '...'); END;
51                     l('Back to [_1]', title);
52                 %]
53             </a>
54         </td>
55     </tr></table>
56 </div>
57           
58 [% END %]          
59