]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/kpac/getit_results.tt2
kpac : make hold-placement terminology more clear
[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(title_html) %]
18         You successfully saved [_1].  <br/>
19         To manage your lists, go to <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) %]">My Lists</a>
20         [% END %]
21         <p>
22     [% ELSIF ctx.added_to_list %]
23         [% list_html = ctx.list.name | html %]
24         <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
25         <p>
26         [% |l(title_html, list_html) %]
27         You successfully saved [_1] to [_2]. <br/>  
28         To manage your lists, go to <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) %]">My Lists</a>
29         [% END %]
30         <p>
31     [% ELSIF CGI.param('hold') %]
32         [% lib_html = ctx.get_aou(ctx.hold.pickup_lib).name | html %]
33         <h2 class="sub_header2">[% l('Hold Successfull!') %]</h2>
34         <p>
35         [% |l(title_html, lib_html) %]
36         Your request for <a href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">[_1]</a> was successful.<br/>
37         You will be notified when your item is ready for pickup.  You will be able to pick your item up at [_2].
38         [% END %]
39         <p>
40     [% ELSE %]
41         <p>
42         [% |l(title_html) %]
43         Unable to request <a href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">[_1]</a>.<br/>
44         Please see a librarian.
45         [% END %]
46     [% END %]
47 </div>
48
49 <div class="sub_navigation2 checkout">
50     <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
51         <td><a href="[% mkurl(ctx.kpac_root _ '/results', {}, kill_params) %]">
52             <img src="[% ctx.media_prefix %]/images/kpac/back_to_results_btn.png" /></a></td>
53         <td width="100%" class="nav_mid_bg">&nbsp;</td>
54         <td><img src="[% ctx.media_prefix %]/images/kpac/back_to_book.png" /></td>
55         <td nowrap="nowrap">
56             <a class="checkout_res_back" href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">
57                 [%  title = attrs.title || '';
58                     title = title.substr(18, title.length, '...');
59                     l('Back to [_1]', title);
60                 %]
61             </a>
62         </td>
63     </tr></table>
64 </div>
65           
66 [% END %]          
67