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" class='pointer'>
76 <span title="Click to sort" class='pointer'>
80 <td width="8%" style="padding-right:5px;" align="center">
81 <span title="Click to sort" class='pointer'>Renews<br />Left
84 <td width="13%" style="padding-left:5px;">
85 <span title="Click to sort" class='pointer'>Due Date</span>
88 <span title="Click to sort" class='pointer'>barcode</span>
91 <span title="Click to sort" class='pointer'>call number</span>
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; %]
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 %]" />
110 style="padding-left:5px;padding-bottom:10px;"
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>
117 <td width="8%" name="renewals" align="center">
118 [% circ.circ.renewal_remaining %]
120 <td width="13%" style="padding-left:5px;"
122 [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
124 <td width="16%" name="barcode">
125 [% circ.circ.target_copy.barcode %]
127 <td width="22%" name="call_number">
128 [% circ.circ.target_copy.call_number.label %]
131 [% IF circ.renewal_response AND
132 circ.renewal_response.textcode != 'SUCCESS' %]
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 %]
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%'>
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>
156 style="white-space:nowrap;padding-left:5px;">
157 <span title="Click to sort" class='pointer'>Call Number</span>
160 <span title="Click to sort" class='pointer'>Checkout</span>
163 <span title="Click to sort" class='pointer'>Due Date</span>
166 <span title="Click to sort" class='pointer'>Returned</span>
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">
175 style="padding-left:15px;padding-bottom:10px;">
176 <a href="#" name="title"></a> /
177 <span name="author"></span>
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>
189 <div id='non_cat_circs_div' class='hide_me'>
191 <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
192 <table class='data_grid' width='100%'>
195 <td>[% l("Circulating Library") %]</td>
196 <td>[% l("Circulation Type") %]</td>
197 <td>[% l("Please return by ...") %]</td>
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'/>
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>