"Items Ready For Pickup" works
[evergreen-equinox.git] / Open-ILS / web / templates / default / opac / myopac / circs.tt2
1 [%  PROCESS "default/opac/parts/header.tt2";
2     PROCESS "default/opac/parts/marc_misc.tt2";
3     WRAPPER "default/opac/parts/base.tt2" +
4         "default/opac/parts/myopac/base.tt2";
5     myopac_page = "circs"  %]
6 <div id='myopac_checked_div' style="padding:0px;">
7     <div id="acct_checked_tabs" style="padding-bottom: 12px;color:#666;" class="hide_me">
8         <div class="align selected" id="checked_label">
9             <img src="[% ctx.media_prefix %]/images/sub_checked_out_on.jpg" />
10         </div>
11         <div class="align" id="checked_hist_link">
12             <a class="" href="#"><img
13                 src="[% ctx.media_prefix %]/images/sub_checked_hist_off.jpg" /></a>
14         </div>
15         <div class="align hide_me" id="checked_link">
16             <a href="#">
17                 <img src="[% ctx.media_prefix %]/images/sub_checked_out_off.jpg" />
18             </a>
19         </div>
20         <div class="align selected hide_me" id="checked_hist_label">
21             <img src="[% ctx.media_prefix %]/images/sub_checked_hist_on.jpg" />
22         </div>    
23         <div class="clear-both"></div>
24     </div>
25     
26     <div class="header_middle">
27         <span id="acct_checked_header" style="float:left;">
28             Current Items Checked Out
29         </span>
30         <span style="float:right;">
31             <a class="hide_me" href="#">Export List</a>
32         </span>
33     </div>
34     <div class="clear-both"></div>
35     <div id='checked_main'>
36         <table cellpadding='0' cellspacing='0' class="opac-auto-097b">
37             <tr>
38                 <td>
39                     <a href="#">Renew Selected Titles</a>
40                 </td>
41                 <td style="padding-left:9px;">
42                     <a class="hide_me" href="#"><img
43                         alt="Save"
44                         src="[% ctx.media_prefix %]/images/save-btn.png" /></a>
45                 </td>
46                 <td style="padding-left:5px;">
47                     <a href="#"><img alt="Renewing Help"
48                         src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
49                 </td>
50             </tr>
51         </table>
52         <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
53             border='0'>
54             <tr>
55                 <td width="1%" style="padding-left:10px;">
56                     <input type="checkbox" id="check_all_checked" />
57                 </td>
58                 <td width="40%" style="padding-left:5px;">
59                     <span title="Click to sort" style="cursor:pointer;">
60                         Title
61                     </span> /
62                     <span title="Click to sort" style="cursor:pointer;">
63                         Author
64                     </span>
65                 </td>
66                 <td width="8%" style="padding-right:5px;" align="center">
67                     <span title="Click to sort" style="cursor:pointer;">
68                         Renews<br />Left
69                     </span>
70                 </td>
71                 <td width="13%" style="padding-left:5px;">
72                     <span title="Click to sort" style="cursor:pointer;">Due Date
73                     </span>
74                 </td>
75                 <td width="16%">
76                     <span title="Click to sort" style="cursor:pointer;">barcode</span>
77                 </td>
78                 <td width="22%">
79                     <span title="Click to sort" style="cursor:pointer;">call number</span>
80                 </td>
81             </tr>
82         </table>
83    
84         <div id="checked_temp_parent">
85             <div id="acct_checked_temp">
86                 <table cellpadding='0' cellspacing='0' border='0'
87                     style="margin-top:5px;">
88                     [% FOR circ IN ctx.circs;
89                         attrs = {marc_xml => circ.marc_xml};
90                         PROCESS get_marc_attrs args=attrs; %]
91                     <tr>
92                         <td width="1%" style="padding-left:10px;" valign="top">
93                             <input type="checkbox" name="check_all_checked" />
94                         </td>
95                         <td width="40%"
96                             style="padding-left:5px;padding-bottom:10px;"
97                             name="author">
98                             <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title %]</a>
99                             [% IF attrs.author %] /
100                             <a href="[% ctx.opac_root %]/results?query=au:[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
101                             [% END %]
102                         </td>
103                         <td width="8%" name="renewals" align="center">
104                             [% circ.circ.renewal_remaining %]
105                         </td>
106                         <td width="13%" style="padding-left:5px;"
107                             name="due_date">
108                             [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
109                         </td>
110                         <td width="16%" name="barcode">
111                             [% circ.circ.target_copy.barcode %]
112                         </td>
113                         <td width="22%" name="call_number">
114                             [% circ.circ.target_copy.call_number.label %]
115                         </td>
116                     </tr>
117                     [% END %]
118                 </table>
119             </div>
120         </div>
121     </div>
122     <div id='checked_hist' class="hide_me" style="padding-top:8px;">
123         <table id="acct_checked_hist_header" cellpadding='0' cellspacing='0'
124             border='0' width='100%'>
125             <tr>
126                 <td width="45%" style="padding-left:15px;">
127                     <span title="Click to sort"
128                         style="cursor:pointer;">Title</span> /
129                     <span title="Click to sort"
130                         style="cursor:pointer;">Author</span>
131                 </td>
132                 <td width="22%"
133                     style="white-space:nowrap;padding-left:5px;">
134                     <span title="Click to sort"
135                         style="cursor:pointer;">Call Number</span>
136                 </td>
137                 <td width="11%">
138                     <span title="Click to sort"
139                         style="cursor:pointer;">Checkout</span>
140                 </td>
141                 <td width="11%">
142                     <span title="Click to sort"
143                         style="cursor:pointer;">Due Date</span>
144                 </td>
145                 <td width="11%">
146                     <span title="Click to sort"
147                         style="cursor:pointer;">Returned</span>
148                 </td>
149             </tr>
150         </table>
151         <table cellpadding='0' cellspacing='0' border='0'
152             style="margin-top:5px;" width="100%">
153             <tbody id="acct_checked_hist_parent">
154                 <tr id="acct_checked_hist_temp">
155                     <td width="45%"
156                         style="padding-left:15px;padding-bottom:10px;">
157                         <a href="#" name="title"></a> /
158                         <span name="author"></span>
159                     </td>
160                     <td width="22%" style="padding-left:5px;"
161                         name="call_number"></td>
162                     <td width="11%" name="checkout"></td>
163                     <td width="11%" name="due_date"></td>
164                     <td width="11%" name="returned"
165                         nowrap="nowrap" style="white-space:nowrap;"></td>
166                 </tr>
167             </tbody>
168         </table>
169     </div>
170     <div id='non_cat_circs_div' class='hide_me'>
171         <br/>
172         <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
173         <table class='data_grid' width='100%'>
174             <thead>
175                 <tr>
176                     <td>[% l("Circulating Library") %]</td>
177                     <td>[% l("Circulation Type") %]</td>
178                     <td>[% l("Please return by ...") %]</td>
179                 </tr>
180             </thead>
181             <tbody id='non_cat_circs_tbody'>
182                 <tr id='non_cat_circs_row'>
183                     <td name='circ_lib'/>
184                     <td name='item_type'/>
185                     <td name='circ_time'/>
186                 </tr>
187             </tbody>
188         </table>
189     </div>
190     <div id='myopac_renew_success' class='hide_me'>[% l("item(s) successfully renewed") %]</div>
191     <span class='hide_me' id='myopac_renew_confirm'>[% l("Are you sure you wish to renew the selected item(s)?") %]</span>
192     <span class='hide_me' id='myopac_renew_fail'>[% l("The system is unable to renew the selected item at this time.  This usually means the item is needed to fulfill a hold.  Please see a librarian for further help.") %]</span>
193    <span class='hide_me' id='myopac_renew_fail2'>[% l("Library policy prevents the renewal of this item at this time.  Please see a librarian for further details.") %]</span>
194 </div>
195 [% END %]