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.circs.size < 1 %]
34 <div class="opac-auto-079">
35 <big><strong>[% l('You have no items checked out.') %]</strong></big>
38 [% IF ctx.success_renewals %]
39 <div class="renew-summary">
40 [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
43 [% IF ctx.failed_renewals %]
44 <div class="renew-summary red">
45 [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
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">
54 <select name="action">
55 <option value="renew">[% l('Renew Selected Titles') %]</option>
58 <td style="padding-left:9px;">
60 alt="[% l('Go') %]" title="[% l('Go') %]"
61 src="[% ctx.media_prefix %]/images/go-btn.png" /></a>
63 <td style="padding-left:5px;">
64 <a href="#"><img alt="Renewing Help"
65 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
69 <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
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;}"
77 <td width="40%" style="padding-left:5px;">
78 <span title="Click to sort" class='pointer'>
81 <span title="Click to sort" class='pointer'>
85 <td width="8%" style="padding-right:5px;" align="center">
86 <span title="Click to sort" class='pointer'>Renews<br />Left
89 <td width="13%" style="padding-left:5px;">
90 <span title="Click to sort" class='pointer'>Due Date</span>
93 <span title="Click to sort" class='pointer'>barcode</span>
96 <span title="Click to sort" class='pointer'>call number</span>
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; %]
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 %]" />
115 style="padding-left:5px;padding-bottom:10px;"
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?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
122 <td width="8%" name="renewals" align="center">
123 [% circ.circ.renewal_remaining %]
125 <td width="13%" style="padding-left:5px;"
127 [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
129 <td width="16%" name="barcode">
130 [% circ.circ.target_copy.barcode %]
132 <td width="22%" name="call_number">
133 [% circ.circ.target_copy.call_number.label %]
136 [% IF circ.renewal_response AND
137 circ.renewal_response.textcode != 'SUCCESS' %]
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 %]
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%'>
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>
162 style="white-space:nowrap;padding-left:5px;">
163 <span title="Click to sort" class='pointer'>Call Number</span>
166 <span title="Click to sort" class='pointer'>Checkout</span>
169 <span title="Click to sort" class='pointer'>Due Date</span>
172 <span title="Click to sort" class='pointer'>Returned</span>
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">
181 style="padding-left:15px;padding-bottom:10px;">
182 <a href="#" name="title"></a> /
183 <span name="author"></span>
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>
195 <div id='non_cat_circs_div' class='hide_me'>
197 <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
198 <table class='data_grid' width='100%'>
201 <td>[% l("Circulating Library") %]</td>
202 <td>[% l("Circulation Type") %]</td>
203 <td>[% l("Please return by ...") %]</td>
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'/>
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>