-[% WRAPPER "default/opac/parts/base.tt2" +
+[% PROCESS "default/opac/parts/header.tt2";
+ PROCESS "default/opac/parts/marc_misc.tt2";
+ WRAPPER "default/opac/parts/base.tt2" +
"default/opac/parts/myopac/base.tt2";
myopac_page = "circs" %]
<div id='myopac_checked_div' style="padding:0px;">
- <div id="acct_checked_tabs" style="padding-bottom: 12px;color:#666;">
+ <div id="acct_checked_tabs" style="padding-bottom: 12px;color:#666;" class="hide_me">
<div class="align selected" id="checked_label">
- <img src="/images/sub_checked_out_on.jpg" />
+ <img src="[% ctx.media_prefix %]/images/sub_checked_out_on.jpg" />
</div>
<div class="align" id="checked_hist_link">
<a class="" href="#"><img
- src="/images/sub_checked_hist_off.jpg" /></a>
+ src="[% ctx.media_prefix %]/images/sub_checked_hist_off.jpg" /></a>
</div>
<div class="align hide_me" id="checked_link">
<a href="#">
- <img src="/images/sub_checked_out_off.jpg" />
+ <img src="[% ctx.media_prefix %]/images/sub_checked_out_off.jpg" />
</a>
</div>
<div class="align selected hide_me" id="checked_hist_label">
- <img src="/images/sub_checked_hist_on.jpg" />
+ <img src="[% ctx.media_prefix %]/images/sub_checked_hist_on.jpg" />
</div>
<div class="clear-both"></div>
</div>
<div class="header_middle">
- <span id="acct_checked_header" style="float:left;">
- Current Items Checked Out
- </span>
- <span style="float:right;">
- <a class="hide_me" href="#">Export List</a>
+ <span class="float-left">[% l('Current Items Checked Out') %]</span>
+ <span class="float-right">
+ <a class="hide_me" href="#">[% l('Export List') %]</a>
</span>
</div>
<div class="clear-both"></div>
+ [% IF ctx.circs.size < 1 %]
+ <div class="opac-auto-079">
+ <big><strong>[% l('You have no items checked out.') %]</strong></big>
+ </div>
+ [% ELSE %]
+ [% IF ctx.success_renewals %]
+ <div class="renew-summary">
+ [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
+ </div>
+ [% END %]
+ [% IF ctx.failed_renewals %]
+ <div class="renew-summary red">
+ [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
+ </div>
+ [% END %]
<div id='checked_main'>
- <table cellpadding='0' cellspacing='0' border='0'
- style="padding:8px 0px 6px 0px;">
+ <form method="POST" id="circ-form"
+ onsubmit="return confirm('[% l("Are you sure you wish to renew the selected item(s)?") %]');">
+ <table cellpadding='0' cellspacing='0' class="opac-auto-097b">
<tr>
<td>
- <a href="#">Renew Selected Titles</a>
+ <select name="action">
+ <option value="renew">[% l('Renew Selected Titles') %]</option>
+ </select>
</td>
<td style="padding-left:9px;">
- <a class="hide_me" href="#"><img
- alt="Save"
- src="/images/save-btn.png" /></a>
+ <input type="image"
+ alt="[% l('Go') %]" title="[% l('Go') %]"
+ src="[% ctx.media_prefix %]/images/go-btn.png" /></a>
</td>
<td style="padding-left:5px;">
<a href="#"><img alt="Renewing Help"
- src="/images/question-mark.png" /></a>
+ src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
</td>
</tr>
</table>
border='0'>
<tr>
<td width="1%" style="padding-left:10px;">
- <input type="checkbox" id="check_all_checked" />
+ <input type="checkbox" id="check_all_checked"
+ 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;}"
+ />
</td>
<td width="40%" style="padding-left:5px;">
- <span title="Click to sort" style="cursor:pointer;">
+ <span title="Click to sort" class='pointer'>
Title
</span> /
- <span title="Click to sort" style="cursor:pointer;">
+ <span title="Click to sort" class='pointer'>
Author
</span>
</td>
<td width="8%" style="padding-right:5px;" align="center">
- <span title="Click to sort" style="cursor:pointer;">
- Renews<br />Left
+ <span title="Click to sort" class='pointer'>Renews<br />Left
</span>
</td>
<td width="13%" style="padding-left:5px;">
- <span title="Click to sort" style="cursor:pointer;">Due Date
- </span>
+ <span title="Click to sort" class='pointer'>Due Date</span>
</td>
<td width="16%">
- <span title="Click to sort" style="cursor:pointer;">barcode</span>
+ <span title="Click to sort" class='pointer'>barcode</span>
</td>
<td width="22%">
- <span title="Click to sort" style="cursor:pointer;">call number</span>
+ <span title="Click to sort" class='pointer'>call number</span>
</td>
</tr>
</table>
<div id="acct_checked_temp">
<table cellpadding='0' cellspacing='0' border='0'
style="margin-top:5px;">
+ [% FOR circ IN ctx.circs;
+ attrs = {marc_xml => circ.marc_xml};
+ PROCESS get_marc_attrs args=attrs; %]
<tr>
<td width="1%" style="padding-left:10px;" valign="top">
- <input type="checkbox" name="check_all_checked" />
+ <input type="checkbox" name="circ"
+ [% IF circ.circ.renewal_remaining < 1; l('disabled="disabled"'); END %]
+ value="[% circ.circ.id %]" />
</td>
<td width="40%"
style="padding-left:5px;padding-bottom:10px;"
name="author">
- <a href="#" name="title"></a>
+ <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title %]</a>
+ [% IF attrs.author %] /
+ <a href="[% ctx.opac_root %]/results?query=au:[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
+ [% END %]
+ </td>
+ <td width="8%" name="renewals" align="center">
+ [% circ.circ.renewal_remaining %]
</td>
- <td width="8%" name="renewals" align="center"></td>
<td width="13%" style="padding-left:5px;"
- name="due_date"></td>
- <td width="16%" name="barcode"></td>
- <td width="22%" name="call_number"></td>
+ name="due_date">
+ [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
+ </td>
+ <td width="16%" name="barcode">
+ [% circ.circ.target_copy.barcode %]
+ </td>
+ <td width="22%" name="call_number">
+ [% circ.circ.target_copy.call_number.label %]
+ </td>
</tr>
+ [% IF circ.renewal_response AND
+ circ.renewal_response.textcode != 'SUCCESS' %]
+ <tr>
+ <td colspan="6">[%# XXX colspan="0" does not work in IE %]
+ <span class="failure-text" title="[% circ.renewal_response.textcode %] / [% circ.renewal_response.payload.fail_part %]">
+ [% circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode %]
+ </span>
+ </td>
+ </tr>
+ [% END;
+ END %]
</table>
</div>
</div>
+ </form>
</div>
+ [% END %]
<div id='checked_hist' class="hide_me" style="padding-top:8px;">
<table id="acct_checked_hist_header" cellpadding='0' cellspacing='0'
border='0' width='100%'>
<tr>
<td width="45%" style="padding-left:15px;">
- <span title="Click to sort"
- style="cursor:pointer;">Title</span> /
- <span title="Click to sort"
- style="cursor:pointer;">Author</span>
+ <span title="Click to sort" class='pointer'>Title</span> /
+ <span title="Click to sort" class='pointer'>Author</span>
</td>
<td width="22%"
style="white-space:nowrap;padding-left:5px;">
- <span title="Click to sort"
- style="cursor:pointer;">Call Number</span>
+ <span title="Click to sort" class='pointer'>Call Number</span>
</td>
<td width="11%">
- <span title="Click to sort"
- style="cursor:pointer;">Checkout</span>
+ <span title="Click to sort" class='pointer'>Checkout</span>
</td>
<td width="11%">
- <span title="Click to sort"
- style="cursor:pointer;">Due Date</span>
+ <span title="Click to sort" class='pointer'>Due Date</span>
</td>
<td width="11%">
- <span title="Click to sort"
- style="cursor:pointer;">Returned</span>
+ <span title="Click to sort" class='pointer'>Returned</span>
</td>
</tr>
</table>
</div>
<div id='non_cat_circs_div' class='hide_me'>
<br/>
- <div style='text-align: center'><b>&myopac.common.other.circ;</b></div>
+ <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
<table class='data_grid' width='100%'>
<thead>
<tr>
- <td>&myopac.checked.circ.lib;</td>
- <td>&myopac.checked.item.type;</td>
- <td>&myopac.checked.circ.time;</td>
+ <td>[% l("Circulating Library") %]</td>
+ <td>[% l("Circulation Type") %]</td>
+ <td>[% l("Please return by ...") %]</td>
</tr>
</thead>
<tbody id='non_cat_circs_tbody'>
</tr>
</tbody>
</table>
- </div>
- <div id='myopac_renew_success' class='hide_me'>&myopac.checked.renew.success;</div>
- <span class='hide_me' id='myopac_renew_confirm'>&myopac.checked.renew.confirm;</span>
- <span class='hide_me' id='myopac_renew_fail'>&myopac.checked.renew.fail;</span>
- <span class='hide_me' id='myopac_renew_fail2'>&myopac.checked.renew.fail2;</span>
+ <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>
+ <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>
</div>
[% END %]