6 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha › Circulation › Renew [% title | html %]</title>
9 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="circ_renew" class="circ">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'circ-search.inc' %]
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> › Renew</div>
19 <div class="main container-fluid">
21 <div class="col-sm-12">
25 [% IF Koha.Preference('CircSidebar') %]
26 <div class="col-sm-10 col-sm-push-2">
28 <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
32 <div class="dialog alert">
33 <h3>Cannot renew:</h3>
35 [% IF error == "no_item" %]
37 <p>No item matches this barcode</p>
39 [% ELSIF error == "no_checkout" %]
41 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblio.biblionumber | uri %]&bi=[% item.biblioitemnumber.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a> ) is not checked out to a patron.</p>
43 [% ELSIF error == "too_many" %]
45 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been renewed the maximum number of times by [% borrower.firstname | html %] [% borrower.surname | html %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]"> [% borrower.cardnumber | html %] </a> )</p>
47 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
48 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
49 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
50 <input type="hidden" name="override_limit" value="1" />
51 <button type="submit" class="approve"><i class="fa fa-check"></i> Override limit and renew</button>
55 [% ELSIF error == "too_unseen" %]
57 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio %] ( [% item.barcode | html %] ) has been renewed the maximum number of consecutive times without being seen by the library )</p>
59 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
60 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
61 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
62 <input type="hidden" name="override_limit" value="1" />
63 <button type="submit" class="approve"><i class="fa fa-check"></i> Override limit and renew</button>
67 [% ELSIF error == "too_soon" %]
69 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) cannot be renewed before [% soonestrenewdate | $KohaDates %]. </p>
71 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
72 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
73 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
74 <input type="hidden" name="override_limit" value="1" />
75 <button type="submit" class="approve"><i class="fa fa-check"></i> Override and renew</button>
79 [% ELSIF error == "auto_too_soon" %]
81 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal and cannot be renewed before [% soonestrenewdate | $KohaDates %]. </p>
83 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
84 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
85 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
86 <input type="hidden" name="override_limit" value="1" />
87 <button type="submit" class="approve"><i class="fa fa-check"></i> Override and renew</button>
91 [% ELSIF error == "auto_too_late" %]
93 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal and cannot be renewed anymore since [% latestautorenewdate | $KohaDates %]. </p>
95 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
96 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
97 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
98 <input type="hidden" name="override_limit" value="1" />
99 <input type="submit" class="approve" value="Override and renew" />
103 [% ELSIF error == "auto_account_expired" %]
105 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal and cannot be renewed because the patron's account is expired</p>
107 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
108 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
109 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
110 <input type="hidden" name="override_limit" value="1" />
111 <input type="submit" class="approve" value="Override and renew" />
115 [% ELSIF error == "auto_renew" or error == "auto_too_much_oweing" %]
117 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal. </p>
119 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
120 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
121 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
122 <input type="hidden" name="override_limit" value="1" />
123 <button type="submit" class="approve"><i class="fa fa-check"></i> Override limit and renew</button>
127 [% ELSIF error == "on_reserve" %]
129 <p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ): This item is on hold for another patron.</p>
131 <form method="post" action="/cgi-bin/koha/circ/renew.pl">
132 <input type="hidden" name="barcode" value="[% item.barcode | html %]"/>
133 <input type="hidden" name="override_limit" value="1" />
134 <input type="hidden" name="override_holds" value="1" />
136 <label for="renewonholdduedate">Renewal due date:</label> <input type="text" size="12" id="renewonholdduedate" name="renewonholdduedate" value="" />
138 <button type="submit" class="approve"><i class="fa fa-check"></i> Override and renew</button>
141 [% ELSIF error == "patron_restricted" %]
143 <p>[% borrower.firstname | html %] [% borrower.surname | html %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]"> [% borrower.cardnumber | html %] </a> ) is currently restricted.</p>
145 [% ELSIF error == "item_denied_renewal" %]
147 <p>Item is not allowed renewal.</p>
149 [% ELSIF error == "onsite_checkout" %]
150 <p>Item cannot be renewed because it's an onsite checkout</p>
158 <form method="get" action="/cgi-bin/koha/circ/renew.pl">
159 <input type="hidden" name="hard_due_date" value="[% hard_due_date | html %]" />
160 <button type="submit" class="deny"><i class="fa fa-times"></i> Continue without renewing</button>
166 <div class="dialog message">
167 <h3>Item renewed:</h3>
169 [% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %]
170 ( <a href="/cgi-bin/koha/catalogue/moredetail.pl?itemnumber=[% item.itemnumber | uri %]&biblionumber=[% item.biblio.biblionumber | uri %]&bi=[% item.biblioitemnumber.biblioitemnumber | uri %]#item[% item.itemnumber | uri %]">[% item.barcode | html %]</a> )
172 [% borrower.firstname | html %] [% borrower.surname | html %] ( <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]"> [% borrower.cardnumber | html %] </a> )
173 now due on [% date_due | $KohaDates %]
179 <form method="post" action="/cgi-bin/koha/circ/renew.pl" autocomplete="off" >
184 [% IF Koha.Preference('UnseenRenewals') %]
185 <div class="renew_formfield">
187 <label for="barcode" class="hint">Enter item barcode: </label>
189 <input name="barcode" id="barcode" size="14" class="barcode focus" type="text" />
191 <div class="renew_formfield">
192 <label for="unseen" class="hint">Record renewal as unseen if appropriate: </label>
193 <input value="1" name="unseen" id="unseen" type="checkbox" />
197 <label for="barcode" class="hint">Enter item barcode: </label>
200 <input name="barcode" id="barcode" size="14" class="barcode focus" type="text" />
203 <button type="submit" class="btn btn-default">Submit</button>
205 <div class="circ-settings show">
206 <div class="date-select" id="renew_date_override_fields">
207 <div><label for="hard_due_date" class="hint">Renewal due date [% INCLUDE 'date-format.inc' %]:</label></div>
208 <input type="text" size="20" id="hard_due_date" name="hard_due_date" value="[% hard_due_date | $KohaDates with_hours => 1 %]" />
209 <button type="button" class="action btn btn-default btn-xs" id="cleardate" name="cleardate">Clear</button>
210 </div> <!-- /.date-select -->
218 [% IF Koha.Preference('CircSidebar') %]
219 </div> <!-- /.col-sm-10.col-sm-push-2 -->
220 <div class="col-sm-2 col-sm-pull-10">
222 [% INCLUDE 'circ-nav.inc' %]
224 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
225 </div> <!-- /.row -->
229 </div> <!-- /.col-sm-12 -->
230 </div> <!-- /.row -->
232 [% MACRO jsinclude BLOCK %]
233 [% INCLUDE 'calendar.inc' %]
234 [% Asset.js("lib/jquery/plugins/jquery-ui-timepicker-addon.min.js") | $raw %]
235 [% INCLUDE 'timepicker.inc' %]
238 $( document ).ready(function() {
244 $( document ).ready(function() {
245 $("#renewonholdduedate").datetimepicker({
246 onClose: function(dateText, inst) {
247 validate_date(dateText, inst);
249 minDate: 1, // require that renewal date is after today
252 }).on('change', function(e) {
253 if ( ! is_valid_date( $(this).val() ) ) {$(this).val('');}
256 [% IF Koha.Preference('SpecifyDueDate') %]
257 $("#hard_due_date").datetimepicker({
258 onClose: function(dateText, inst) {
259 validate_date(dateText, inst);
263 }).on("change", function(e, value) {
264 if ( ! is_valid_date( $(this).val() ) ) {$(this).val("");}
266 $("#cleardate").on("click",function(e){
268 this.form.hard_due_date.value = '';
269 this.form.barcode.focus();
277 [% INCLUDE 'intranet-bottom.inc' %]