Koha/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl
Henri-Damien LAURENT 7e5bfb9d29 displaying button Renew All only if syspref OpacRenewalAllowed is set.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-15 15:33:00 -06:00

305 lines
15 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo; Library Home for
<!-- TMPL_LOOP name="BORROWER_INFO" -->
<!-- TMPL_VAR name="firstname" --><!-- TMPL_VAR name="surname" -->
<!-- /TMPL_LOOP -->
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/JavaScript" language="JavaScript">
//<![CDATA[
$(document).ready(function() {
$('#opac-user-views').tabs();
});
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<div id="doc3" class="yui-t1">
<div id="bd">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
<!-- TMPL_LOOP NAME="BORROWER_INFO" -->
<h2>Hello, <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> <span class="hint">(<a href="/cgi-bin/koha/opac-logout.pl">Click here</a> if you're not <!-- TMPL_VAR NAME="title" --> <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" -->)</span></h2>
<!-- TMPL_IF NAME="patronupdate" --><div class="dialog message"><h3>Thank you!</h3><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="opacnote"-->
<h3>Message from the library</h3>
<p><!-- TMPL_VAR name="opacnote" --></p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="flagged" -->
<ul>
<!-- TMPL_IF NAME="debarred" -->
<li><strong>Please note:</strong> Your account has been frozen. Usually the reason for freezing an account is old overdues or damage fees.If <a href="/cgi-bin/koha/opac-user.pl">your account page</a> shows your account to be clear, please consult a librarian.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="gonenoaddress" -->
<li><strong>Please note:</strong> According to our records, we don't have up-to-date <a href="/cgi-bin/koha/opac-userdetails.pl">contact information</a> on file. Please contact your librarian, or use the <a href="/cgi-bin/koha/opac-userupdate.pl">online update form</a> to submit current information (<em>Please note:</em> there may be a delay in restoring your account if you submit online)</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="lost" -->
<li><strong>Please note: </strong> Your library card has been marked as lost or stolen. If this is an error, please take your card to the circulation desk at your local library and the error will be corrected.</li>
<!-- /TMPL_IF -->
</ul>
<!-- /TMPL_IF -->
<div id="opac-user-views" class="toptabs">
<ul>
<li><a href="/cgi-bin/koha/opac-user.pl#opac-user-checkouts">Checked Out</a></li>
<!-- TMPL_IF NAME="overdues_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-overdues">Overdue</a></li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="amountoverfive" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="amountoverzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Fines</a></li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="amountlessthanzero" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-fines">Credits</a></li><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="waiting_count" --><!-- TMPL_IF NAME="atdestination" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-waiting">Waiting</a></li><!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="reserves_count" --><li><a href="/cgi-bin/koha/opac-user.pl#opac-user-holds">Holds</a></li><!-- /TMPL_IF -->
</ul>
<!-- FINES BOX -->
<!-- TMPL_IF NAME="amountoverfive" -->
<div id="opac-user-fines">
<table>
<caption>Fines and Charges</caption>
<tr><th colspan="2">Amount</th></tr>
<tr>
<td>You currently owe fines and charges amounting to:</td>
<td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td>
</tr>
</table></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="amountoverzero" -->
<div id="opac-user-fines"> <h3>Fines and Charges</h3>
<table>
<tr><th colspan="2">Amount</th></tr>
<tr><td>You currently owe fines and charges amounting to:</td>
<td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
</table></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME"amountlessthanzero" -->
<div id="opac-user-fines"> <h3>Credits</h3>
<table>
<tr><th colspan="2">Amount</th></tr>
<tr><td>You have a credit of:</td><td><a href="/cgi-bin/koha/opac-account.pl"><!-- TMPL_VAR NAME="amountoutstanding" --></a></td></tr>
</table></div>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- TMPL_IF NAME="waiting_count" -->
<!-- TMPL_IF NAME="atdestination" -->
<div id="opac-user-waiting">
<table>
<caption>Holds Waiting</caption>
<tr>
<th colspan="2">Title</th>
<th>Hold date</th>
<th>Pick Up Branch</th>
</tr>
<!-- TMPL_LOOP NAME="WAITING" -->
<tr>
<td>
<img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="itemtype" -->.gif" alt="<!-- TMPL_VAR NAME="itemtype" -->" title="<!-- TMPL_VAR NAME="itemtype" -->" />
</td>
<td>
<a href="opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->">
<!-- TMPL_VAR NAME="waiting_title" -->
</a>
<span class="item-details">
<!-- TMPL_VAR NAME="author" -->
</span>
</td>
<td>
<!-- TMPL_VAR NAME="reservedate" -->
</td>
<td>
<!-- TMPL_IF NAME="atdestination" -->
<strong>Waiting</strong> at <!-- TMPL_VAR NAME="branch" -->
<!-- TMPL_ELSE -->
In transit from <!-- TMPL_VAR NAME="holdingbranch" --> to <!-- TMPL_VAR NAME="branch" -->
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table></div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<div id="opac-user-checkouts"><!-- TMPL_IF NAME="issues_count" -->
<table>
<caption><!-- TMPL_VAR NAME="issues_count" --> Items</caption>
<!-- ISSUES TABLE ROWS --><tr>
<th colspan="2">Title</th>
<th>Call No.</th>
<th>Due</th>
<!-- TMPL_IF name="OpacRenewalAllowed" -->
<!-- TMPL_UNLESS name="patron_flagged" --><th>Renew</th><!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<th>Fines</th>
</tr>
<!-- TMPL_LOOP NAME="ISSUES" -->
<!-- TMPL_IF NAME="toggle" -->
<!-- TMPL_IF NAME="overdue" -->
<tr class="overdue">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="overdue" -->
<tr class="highlight overdue">
<!-- TMPL_ELSE -->
<tr class="highlight">
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<td>
<!-- TMPL_IF NAME="imageurl" -->
<img src="/opac-tmpl/prog/itemtypeimg/<!-- TMPL_VAR NAME="itemtype" -->.gif" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR NAME="description" -->" />
<!-- TMPL_ELSE -->
<!-- TMPL_VAR name="description" -->
<!-- /TMPL_IF -->
</td>
<td><!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="Book Cover Image" class="thumbnail" /></a><!-- /TMPL_IF --><!-- /TMPL_IF -->
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a>
<span class="item-details">
<!-- TMPL_VAR NAME="author" -->
</span>
</td>
<td><!-- TMPL_VAR NAME="classification" --></td>
<!-- TMPL_IF NAME="overdue" -->
<td class="overdue"><!-- TMPL_VAR NAME="date_due" --></td>
<!-- TMPL_ELSE -->
<td><!-- TMPL_VAR NAME="date_due" --></td>
<!-- /TMPL_IF -->
<!-- TMPL_IF name="OpacRenewalAllowed" -->
<!-- TMPL_UNLESS name="patron_flagged" -->
<td>
<!-- TMPL_IF NAME="status" -->
<a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew</a> <span class="renewals">(<!-- TMPL_VAR NAME="renewsleft" --> of <!-- TMPL_VAR NAME="renewsallowed" --> renewals remaining)</span>
<!-- TMPL_ELSE -->
Not renewable
<!-- /TMPL_IF -->
</td>
<!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
<td><!-- TMPL_IF NAME="charges" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!--TMPL_IF Name="OpacRenewalAllowed"-->
<form action="/cgi-bin/koha/opac-renew.pl" method="post">
<input type="hidden" name="from" value="opac_user" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
<!-- TMPL_LOOP NAME="ISSUES" -->
<input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
<!-- /TMPL_LOOP -->
<input type="submit" value="Renew All" />
</form>
<!--/TMPL_IF-->
<!-- TMPL_ELSE -->
<table>
<tr><td>You have nothing checked out</td></tr>
</table>
<!-- /TMPL_IF --></div>
<!-- TMPL_IF NAME="overdues_count" -->
<div id="opac-user-overdues"><table>
<caption>Overdues <span class="count">(<!-- TMPL_VAR NAME="overdues_count" --> total)</span></caption>
<!-- OVERDUES TABLE ROWS -->
<tr>
<th colspan="2">Title</th><th>Call No.</th>
<th>Due</th>
<th>Renew</th>
<!-- <th>Fine to Date</th> -->
</tr>
<!-- TMPL_LOOP NAME="OVERDUES" -->
<tr>
<td><img src="<!-- TMPL_VAR NAME="themelang" -->/images/<!-- TMPL_VAR NAME="ccode" -->.gif" alt="<!-- TMPL_VAR NAME="ccode" -->" title="<!-- TMPL_VAR NAME="ccode" -->" /></td>
<td><!-- TMPL_IF NAME="AmazonContent" --><!-- TMPL_IF NAME="isbn" --><a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><img src="http://images.amazon.com/images/P/<!-- TMPL_VAR name="isbn" -->.01.THUMBZZZ.jpg" alt="" class="thumbnail" /></a><!-- /TMPL_IF --><!-- /TMPL_IF --> <a href="/cgi-bin/koha/opac-detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a><span class="item-details">
<!-- TMPL_VAR NAME="author" --></span></td>
<td><!-- TMPL_VAR NAME="classification" --></td>
<td><!-- TMPL_VAR NAME="date_due" --></td>
<td>
<!-- TMPL_IF NAME="debarred" -->Account Frozen
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="status" -->
<a href="/cgi-bin/koha/opac-renew.pl?from=opac_user&amp;item=<!-- TMPL_VAR NAME="itemnumber" -->&amp;bornum=<!-- TMPL_VAR NAME="borrowernumber" -->">Renew</a> <span class="renewals">(<!-- TMPL_VAR NAME="renewsleft" --> of <!-- TMPL_VAR NAME="renewsallowed" --> renewals remaining)</span>
<!-- TMPL_ELSE -->
<!-- TMPL_IF NAME="onreserve" -->
On Reserve
<!-- TMPL_ELSE -->
No renewals left
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</td>
<!-- <td><!-- TMPL_VAR NAME="charges" --></td> -->
</tr>
<!-- /TMPL_LOOP -->
</table></div>
<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="reserves_count" -->
<div id="opac-user-holds">
<table>
<caption>Holds <span class="count">(<!-- TMPL_VAR NAME="reserves_count" --> total)</span></caption>
<!-- RESERVES TABLE ROWS -->
<tr>
<th>Title</th>
<th>Placed On</th>
<th>Pick Up Location</th>
<th>Status</th>
<th>Modify</th>
</tr>
<!-- TMPL_LOOP NAME="RESERVES" -->
<tr>
<td>
<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR NAME="reserves_title" --></a>
<!-- TMPL_VAR NAME="author" -->
</td>
<td><!-- TMPL_VAR NAME="reservedate" --></td>
<td><!-- TMPL_VAR NAME="branch" --></td>
<td>
<!-- TMPL_IF NAME="wait" -->
<!-- TMPL_IF NAME="atdestination" -->
<!-- TMPL_IF NAME="found" -->
Item waiting at <b> <!-- TMPL_VAR NAME="wbrname" --></b>
<input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
<!-- TMPL_ELSE -->
Item waiting to be pulled from <b> <!-- TMPL_VAR NAME="wbrname" --></b>
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
Item in transit to <b> <!-- TMPL_VAR NAME="wbrname" --></b> <input type="hidden" name="pickup" value="<!-- TMPL_VAR NAME="wbrcd" -->" />
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
Item waiting to be pulled
<!-- /TMPL_IF -->
</td>
<td>
<form action="/cgi-bin/koha/opac-modrequest.pl" method="post">
<input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
<input type="submit" name="submit" class="icon delete cancel" value="Cancel" onclick="return confirmDelete('Are you sure you want to cancel this hold?');" /></form>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<!-- /TMPL_IF -->
</div><!-- /opac-user views -->
</div>
</div>
</div>
<div class="yui-b">
<!--TMPL_INCLUDE NAME="navigation.inc" -->
<!-- TMPL_INCLUDE NAME="usermenu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->