1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 WRAPPER "opac/parts/myopac/base.tt2";
4 myopac_page = "circs" %]
5 <div id='myopac_checked_div'>
7 <div id="acct_checked_tabs">
8 <div class="align selected">
9 <a href="#">[% l("Current Items Checked Out") %]</a>
12 <a href="circ_history">[% l("Check Out History") %]</a>
16 <div class="header_middle">
17 <span class="float-left">[% l('Current Items Checked Out') %]</span>
18 <span class="float-right">
19 <a class="hide_me" href="#">[% l('Export List') %]</a>
22 <div class="clear-both"></div>
23 [% IF ctx.circs.size < 1 %]
24 <div class="warning_box">
25 <big><strong>[% l('You have no items checked out.') %]</strong></big>
28 [% IF ctx.success_renewals %]
29 <div class="renew-summary">
30 [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
33 [% IF ctx.failed_renewals %]
34 <div class="renew-summary red">
35 [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
38 <div id='checked_main'>
39 <form method="POST" id="circ-form"
40 onsubmit="return confirm('[% l("Are you sure you wish to renew the selected item(s)?") %]');">
41 <table cellpadding='0' cellspacing='0' class="item_list_padding">
44 <select name="action">
45 <option value="renew">[% l('Renew Selected Titles') %]</option>
48 <td style="padding-left:9px;">
51 alt="[% l('Go') %]" title="[% l('Go') %]"
52 class="opac-button" />
54 <td style="padding-left:5px;">
55 <a href="#"><img alt="Renewing Help"
56 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
60 <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
63 <td width="1%" style="padding-left:10px;">
64 <input type="checkbox" id="check_all_checked"
65 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;}"
68 <td width="40%" style="padding-left:5px;">
69 <span title="Click to sort" class='pointer'>
72 <span title="Click to sort" class='pointer'>
76 <td width="8%" style="padding-right:5px;" align="center">
77 <span title="Click to sort" class='pointer'>Renews<br />Left
80 <td width="13%" style="padding-left:5px;">
81 <span title="Click to sort" class='pointer'>Due Date</span>
84 <span title="Click to sort" class='pointer'>barcode</span>
87 <span title="Click to sort" class='pointer'>call number</span>
92 <div id="checked_temp_parent">
93 <div id="acct_checked_temp">
94 <table cellpadding='0' cellspacing='0' border='0'
95 style="margin-top:5px;">
96 [% FOR circ IN ctx.circs;
97 attrs = {marc_xml => circ.marc_xml};
98 PROCESS get_marc_attrs args=attrs; %]
100 <td width="1%" style="padding-left:10px;" valign="top">
101 <input type="checkbox" name="circ"
102 [% IF circ.circ.renewal_remaining < 1 %] disabled="disabled" [% END %]
103 value="[% circ.circ.id %]" />
106 style="padding-left:5px;padding-bottom:10px;"
108 <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
109 [% IF attrs.author %] /
110 <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
113 <td width="8%" name="renewals" align="center">
114 [% circ.circ.renewal_remaining %]
116 <td width="13%" style="padding-left:5px;"
118 [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
120 <td width="16%" name="barcode">
121 [% circ.circ.target_copy.barcode | html %]
123 <td width="22%" name="call_number">
124 [% circ.circ.target_copy.call_number.label | html %]
127 [% IF circ.renewal_response AND
128 circ.renewal_response.textcode != 'SUCCESS' %]
130 <td colspan="6">[%# XXX colspan="0" does not work in IE %]
131 <span class="failure-text" title="[% circ.renewal_response.textcode | html %] / [% circ.renewal_response.payload.fail_part | html %]">
132 [% (circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode) | html %]
144 <div id='non_cat_circs_div' class='hide_me'>
146 <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
147 <table class='data_grid' width='100%'>
150 <td>[% l("Circulating Library") %]</td>
151 <td>[% l("Circulation Type") %]</td>
152 <td>[% l("Please return by ...") %]</td>
155 <tbody id='non_cat_circs_tbody'>
156 <tr id='non_cat_circs_row'>
157 <td name='circ_lib'/>
158 <td name='item_type'/>
159 <td name='circ_time'/>