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" />
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>
15 <div class="align hide_me" id="checked_link">
17 <img src="[% ctx.media_prefix %]/images/sub_checked_out_off.jpg" />
20 <div class="align selected hide_me" id="checked_hist_label">
21 <img src="[% ctx.media_prefix %]/images/sub_checked_hist_on.jpg" />
23 <div class="clear-both"></div>
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>
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) %]
38 [% IF ctx.failed_renewals %]
39 <div class="renew-summary red">
40 [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
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">
49 <select name="action">
50 <option value="renew">[% l('Renew Selected Titles') %]</option>
53 <td style="padding-left:9px;">
55 alt="[% l('Go') %]" title="[% l('Go') %]"
56 src="[% ctx.media_prefix %]/images/go-btn.png" /></a>
58 <td style="padding-left:5px;">
59 <a href="#"><img alt="Renewing Help"
60 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
64 <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
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;}"
72 <td width="40%" style="padding-left:5px;">
73 <span title="Click to sort" style="cursor:pointer;">
76 <span title="Click to sort" style="cursor:pointer;">
80 <td width="8%" style="padding-right:5px;" align="center">
81 <span title="Click to sort" style="cursor:pointer;">
85 <td width="13%" style="padding-left:5px;">
86 <span title="Click to sort" style="cursor:pointer;">Due Date
90 <span title="Click to sort" style="cursor:pointer;">barcode</span>
93 <span title="Click to sort" style="cursor:pointer;">call number</span>
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; %]
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 %]" />
112 style="padding-left:5px;padding-bottom:10px;"
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>
119 <td width="8%" name="renewals" align="center">
120 [% circ.circ.renewal_remaining %]
122 <td width="13%" style="padding-left:5px;"
124 [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
126 <td width="16%" name="barcode">
127 [% circ.circ.target_copy.barcode %]
129 <td width="22%" name="call_number">
130 [% circ.circ.target_copy.call_number.label %]
133 [% IF circ.renewal_response AND
134 circ.renewal_response.textcode != 'SUCCESS' %]
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 %]
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%'>
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>
160 style="white-space:nowrap;padding-left:5px;">
161 <span title="Click to sort"
162 style="cursor:pointer;">Call Number</span>
165 <span title="Click to sort"
166 style="cursor:pointer;">Checkout</span>
169 <span title="Click to sort"
170 style="cursor:pointer;">Due Date</span>
173 <span title="Click to sort"
174 style="cursor:pointer;">Returned</span>
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">
183 style="padding-left:15px;padding-bottom:10px;">
184 <a href="#" name="title"></a> /
185 <span name="author"></span>
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>
197 <div id='non_cat_circs_div' class='hide_me'>
199 <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
200 <table class='data_grid' width='100%'>
203 <td>[% l("Circulating Library") %]</td>
204 <td>[% l("Circulation Type") %]</td>
205 <td>[% l("Please return by ...") %]</td>
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'/>
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>