]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/circs.tt2
Merge branch 'master' of git+ssh://yeti.esilibrary.com/home/evergreen/evergreen-equin...
[working/Evergreen.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 class="float-left">[% l('Current Items Checked Out') %]</span>
28         <span class="float-right">
29             <a class="hide_me" href="#">[% l('Export List') %]</a>
30         </span>
31     </div>
32     <div class="clear-both"></div>
33     [% IF ctx.success_renewals %]
34     <div class="renew-summary">
35         [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
36     </div>
37     [% END %]
38     [% IF ctx.failed_renewals %]
39     <div class="renew-summary red">
40         [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
41     </div>
42     [% END %]
43     <div id='checked_main'>
44         <form method="POST" id="circ-form"
45             onsubmit="return confirm('[% l("Are you sure you wish to renew the selected item(s)?") %]');">
46         <table cellpadding='0' cellspacing='0' class="opac-auto-097b">
47             <tr>
48                 <td>
49                     <select name="action">
50                         <option value="renew">[% l('Renew Selected Titles') %]</option>
51                     </select>
52                 </td>
53                 <td style="padding-left:9px;">
54                     <input type="image"
55                         alt="[% l('Go') %]" title="[% l('Go') %]"
56                         src="[% ctx.media_prefix %]/images/go-btn.png" /></a>
57                 </td>
58                 <td style="padding-left:5px;">
59                     <a href="#"><img alt="Renewing Help"
60                         src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
61                 </td>
62             </tr>
63         </table>
64         <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
65             border='0'>
66             <tr>
67                 <td width="1%" style="padding-left:10px;">
68                     <input type="checkbox" id="check_all_checked"
69                         onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'circ' && !inputs[i].disabled) inputs[i].checked = this.checked;}"
70                     />
71                 </td>
72                 <td width="40%" style="padding-left:5px;">
73                     <span title="Click to sort" style="cursor:pointer;">
74                         Title
75                     </span> /
76                     <span title="Click to sort" style="cursor:pointer;">
77                         Author
78                     </span>
79                 </td>
80                 <td width="8%" style="padding-right:5px;" align="center">
81                     <span title="Click to sort" style="cursor:pointer;">
82                         Renews<br />Left
83                     </span>
84                 </td>
85                 <td width="13%" style="padding-left:5px;">
86                     <span title="Click to sort" style="cursor:pointer;">Due Date
87                     </span>
88                 </td>
89                 <td width="16%">
90                     <span title="Click to sort" style="cursor:pointer;">barcode</span>
91                 </td>
92                 <td width="22%">
93                     <span title="Click to sort" style="cursor:pointer;">call number</span>
94                 </td>
95             </tr>
96         </table>
97    
98         <div id="checked_temp_parent">
99             <div id="acct_checked_temp">
100                 <table cellpadding='0' cellspacing='0' border='0'
101                     style="margin-top:5px;">
102                     [% FOR circ IN ctx.circs;
103                         attrs = {marc_xml => circ.marc_xml};
104                         PROCESS get_marc_attrs args=attrs; %]
105                     <tr>
106                         <td width="1%" style="padding-left:10px;" valign="top">
107                             <input type="checkbox" name="circ"
108                                 [% IF circ.circ.renewal_remaining < 1; l('disabled="disabled"'); END %]
109                                 value="[% circ.circ.id %]" />
110                         </td>
111                         <td width="40%"
112                             style="padding-left:5px;padding-bottom:10px;"
113                             name="author">
114                             <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title %]</a>
115                             [% IF attrs.author %] /
116                             <a href="[% ctx.opac_root %]/results?query=au:[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
117                             [% END %]
118                         </td>
119                         <td width="8%" name="renewals" align="center">
120                             [% circ.circ.renewal_remaining %]
121                         </td>
122                         <td width="13%" style="padding-left:5px;"
123                             name="due_date">
124                             [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
125                         </td>
126                         <td width="16%" name="barcode">
127                             [% circ.circ.target_copy.barcode %]
128                         </td>
129                         <td width="22%" name="call_number">
130                             [% circ.circ.target_copy.call_number.label %]
131                         </td>
132                     </tr>
133                     [%  IF circ.renewal_response AND
134                             circ.renewal_response.textcode != 'SUCCESS' %]
135                     <tr>
136                         <td colspan="6">[%# XXX colspan="0" does not work in IE %]
137                             <span class="failure-text" title="[% circ.renewal_response.textcode %] / [% circ.renewal_response.payload.fail_part %]">
138                                 [% circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode %]
139                             </span>
140                         </td>
141                     </tr>
142                     [%  END;
143                     END %]
144                 </table>
145             </div>
146         </div>
147         </form>
148     </div>
149     <div id='checked_hist' class="hide_me" style="padding-top:8px;">
150         <table id="acct_checked_hist_header" cellpadding='0' cellspacing='0'
151             border='0' width='100%'>
152             <tr>
153                 <td width="45%" style="padding-left:15px;">
154                     <span title="Click to sort"
155                         style="cursor:pointer;">Title</span> /
156                     <span title="Click to sort"
157                         style="cursor:pointer;">Author</span>
158                 </td>
159                 <td width="22%"
160                     style="white-space:nowrap;padding-left:5px;">
161                     <span title="Click to sort"
162                         style="cursor:pointer;">Call Number</span>
163                 </td>
164                 <td width="11%">
165                     <span title="Click to sort"
166                         style="cursor:pointer;">Checkout</span>
167                 </td>
168                 <td width="11%">
169                     <span title="Click to sort"
170                         style="cursor:pointer;">Due Date</span>
171                 </td>
172                 <td width="11%">
173                     <span title="Click to sort"
174                         style="cursor:pointer;">Returned</span>
175                 </td>
176             </tr>
177         </table>
178         <table cellpadding='0' cellspacing='0' border='0'
179             style="margin-top:5px;" width="100%">
180             <tbody id="acct_checked_hist_parent">
181                 <tr id="acct_checked_hist_temp">
182                     <td width="45%"
183                         style="padding-left:15px;padding-bottom:10px;">
184                         <a href="#" name="title"></a> /
185                         <span name="author"></span>
186                     </td>
187                     <td width="22%" style="padding-left:5px;"
188                         name="call_number"></td>
189                     <td width="11%" name="checkout"></td>
190                     <td width="11%" name="due_date"></td>
191                     <td width="11%" name="returned"
192                         nowrap="nowrap" style="white-space:nowrap;"></td>
193                 </tr>
194             </tbody>
195         </table>
196     </div>
197     <div id='non_cat_circs_div' class='hide_me'>
198         <br/>
199         <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
200         <table class='data_grid' width='100%'>
201             <thead>
202                 <tr>
203                     <td>[% l("Circulating Library") %]</td>
204                     <td>[% l("Circulation Type") %]</td>
205                     <td>[% l("Please return by ...") %]</td>
206                 </tr>
207             </thead>
208             <tbody id='non_cat_circs_tbody'>
209                 <tr id='non_cat_circs_row'>
210                     <td name='circ_lib'/>
211                     <td name='item_type'/>
212                     <td name='circ_time'/>
213                 </tr>
214             </tbody>
215         </table>
216     <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>
217    <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>
218 </div>
219 [% END %]