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