round of CSS cleanup; removing unused rules and replacing inline style with css...
[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 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" class='pointer'>
74                         Title
75                     </span> /
76                     <span title="Click to sort" class='pointer'>
77                         Author
78                     </span>
79                 </td>
80                 <td width="8%" style="padding-right:5px;" align="center">
81                     <span title="Click to sort" class='pointer'>Renews<br />Left
82                     </span>
83                 </td>
84                 <td width="13%" style="padding-left:5px;">
85                     <span title="Click to sort" class='pointer'>Due Date</span>
86                 </td>
87                 <td width="16%">
88                     <span title="Click to sort" class='pointer'>barcode</span>
89                 </td>
90                 <td width="22%">
91                     <span title="Click to sort" class='pointer'>call number</span>
92                 </td>
93             </tr>
94         </table>
95    
96         <div id="checked_temp_parent">
97             <div id="acct_checked_temp">
98                 <table cellpadding='0' cellspacing='0' border='0'
99                     style="margin-top:5px;">
100                     [% FOR circ IN ctx.circs;
101                         attrs = {marc_xml => circ.marc_xml};
102                         PROCESS get_marc_attrs args=attrs; %]
103                     <tr>
104                         <td width="1%" style="padding-left:10px;" valign="top">
105                             <input type="checkbox" name="circ"
106                                 [% IF circ.circ.renewal_remaining < 1; l('disabled="disabled"'); END %]
107                                 value="[% circ.circ.id %]" />
108                         </td>
109                         <td width="40%"
110                             style="padding-left:5px;padding-bottom:10px;"
111                             name="author">
112                             <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title %]</a>
113                             [% IF attrs.author %] /
114                             <a href="[% ctx.opac_root %]/results?query=au:[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
115                             [% END %]
116                         </td>
117                         <td width="8%" name="renewals" align="center">
118                             [% circ.circ.renewal_remaining %]
119                         </td>
120                         <td width="13%" style="padding-left:5px;"
121                             name="due_date">
122                             [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
123                         </td>
124                         <td width="16%" name="barcode">
125                             [% circ.circ.target_copy.barcode %]
126                         </td>
127                         <td width="22%" name="call_number">
128                             [% circ.circ.target_copy.call_number.label %]
129                         </td>
130                     </tr>
131                     [%  IF circ.renewal_response AND
132                             circ.renewal_response.textcode != 'SUCCESS' %]
133                     <tr>
134                         <td colspan="6">[%# XXX colspan="0" does not work in IE %]
135                             <span class="failure-text" title="[% circ.renewal_response.textcode %] / [% circ.renewal_response.payload.fail_part %]">
136                                 [% circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode %]
137                             </span>
138                         </td>
139                     </tr>
140                     [%  END;
141                     END %]
142                 </table>
143             </div>
144         </div>
145         </form>
146     </div>
147     <div id='checked_hist' class="hide_me" style="padding-top:8px;">
148         <table id="acct_checked_hist_header" cellpadding='0' cellspacing='0'
149             border='0' width='100%'>
150             <tr>
151                 <td width="45%" style="padding-left:15px;">
152                     <span title="Click to sort" class='pointer'>Title</span> /
153                     <span title="Click to sort" class='pointer'>Author</span>
154                 </td>
155                 <td width="22%"
156                     style="white-space:nowrap;padding-left:5px;">
157                     <span title="Click to sort" class='pointer'>Call Number</span>
158                 </td>
159                 <td width="11%">
160                     <span title="Click to sort" class='pointer'>Checkout</span>
161                 </td>
162                 <td width="11%">
163                     <span title="Click to sort" class='pointer'>Due Date</span>
164                 </td>
165                 <td width="11%">
166                     <span title="Click to sort" class='pointer'>Returned</span>
167                 </td>
168             </tr>
169         </table>
170         <table cellpadding='0' cellspacing='0' border='0'
171             style="margin-top:5px;" width="100%">
172             <tbody id="acct_checked_hist_parent">
173                 <tr id="acct_checked_hist_temp">
174                     <td width="45%"
175                         style="padding-left:15px;padding-bottom:10px;">
176                         <a href="#" name="title"></a> /
177                         <span name="author"></span>
178                     </td>
179                     <td width="22%" style="padding-left:5px;"
180                         name="call_number"></td>
181                     <td width="11%" name="checkout"></td>
182                     <td width="11%" name="due_date"></td>
183                     <td width="11%" name="returned"
184                         nowrap="nowrap" style="white-space:nowrap;"></td>
185                 </tr>
186             </tbody>
187         </table>
188     </div>
189     <div id='non_cat_circs_div' class='hide_me'>
190         <br/>
191         <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
192         <table class='data_grid' width='100%'>
193             <thead>
194                 <tr>
195                     <td>[% l("Circulating Library") %]</td>
196                     <td>[% l("Circulation Type") %]</td>
197                     <td>[% l("Please return by ...") %]</td>
198                 </tr>
199             </thead>
200             <tbody id='non_cat_circs_tbody'>
201                 <tr id='non_cat_circs_row'>
202                     <td name='circ_lib'/>
203                     <td name='item_type'/>
204                     <td name='circ_time'/>
205                 </tr>
206             </tbody>
207         </table>
208     <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>
209    <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>
210 </div>
211 [% END %]