|
Lines 59-65
Link Here
|
| 59 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
59 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 60 |
[% INCLUDE 'csrf-token.inc' %] |
60 |
[% INCLUDE 'csrf-token.inc' %] |
| 61 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
61 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 62 |
<input type="hidden" name="override_limit" value="1" /> |
62 |
<input type="hidden" name="override_limit" value="RENEWAL_LIMIT" /> |
| 63 |
<input type="hidden" name="op" value="cud-renew" /> |
63 |
<input type="hidden" name="op" value="cud-renew" /> |
| 64 |
<input type="hidden" name="hard_due_date" value="[% hard_due_date | html %]" /> |
64 |
<input type="hidden" name="hard_due_date" value="[% hard_due_date | html %]" /> |
| 65 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override limit and renew</button> |
65 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override limit and renew</button> |
|
Lines 72-78
Link Here
|
| 72 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
72 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 73 |
[% INCLUDE 'csrf-token.inc' %] |
73 |
[% INCLUDE 'csrf-token.inc' %] |
| 74 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
74 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 75 |
<input type="hidden" name="override_limit" value="1" /> |
75 |
<input type="hidden" name="override_limit" value="UNSEEN_LIMIT" /> |
| 76 |
<input type="hidden" name="op" value="cud-renew" /> |
76 |
<input type="hidden" name="op" value="cud-renew" /> |
| 77 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override limit and renew</button> |
77 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override limit and renew</button> |
| 78 |
</form> |
78 |
</form> |
|
Lines 84-90
Link Here
|
| 84 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
84 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 85 |
[% INCLUDE 'csrf-token.inc' %] |
85 |
[% INCLUDE 'csrf-token.inc' %] |
| 86 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
86 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 87 |
<input type="hidden" name="override_limit" value="1" /> |
87 |
<input type="hidden" name="override_limit" value="TOO_SOON" /> |
| 88 |
<input type="hidden" name="op" value="cud-renew" /> |
88 |
<input type="hidden" name="op" value="cud-renew" /> |
| 89 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override and renew</button> |
89 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override and renew</button> |
| 90 |
</form> |
90 |
</form> |
|
Lines 96-102
Link Here
|
| 96 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
96 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 97 |
[% INCLUDE 'csrf-token.inc' %] |
97 |
[% INCLUDE 'csrf-token.inc' %] |
| 98 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
98 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 99 |
<input type="hidden" name="override_limit" value="1" /> |
99 |
<input type="hidden" name="override_limit" value="AUTO_TOO_SOON" /> |
| 100 |
<input type="hidden" name="op" value="cud-renew" /> |
100 |
<input type="hidden" name="op" value="cud-renew" /> |
| 101 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override and renew</button> |
101 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override and renew</button> |
| 102 |
</form> |
102 |
</form> |
|
Lines 108-114
Link Here
|
| 108 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
108 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 109 |
[% INCLUDE 'csrf-token.inc' %] |
109 |
[% INCLUDE 'csrf-token.inc' %] |
| 110 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
110 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 111 |
<input type="hidden" name="override_limit" value="1" /> |
111 |
<input type="hidden" name="override_limit" value="AUTO_TOO_LATE" /> |
| 112 |
<input type="hidden" name="op" value="cud-renew" /> |
112 |
<input type="hidden" name="op" value="cud-renew" /> |
| 113 |
<input type="submit" class="btn btn-default approve" value="Override and renew" /> |
113 |
<input type="submit" class="btn btn-default approve" value="Override and renew" /> |
| 114 |
</form> |
114 |
</form> |
|
Lines 120-138
Link Here
|
| 120 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
120 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 121 |
[% INCLUDE 'csrf-token.inc' %] |
121 |
[% INCLUDE 'csrf-token.inc' %] |
| 122 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
122 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 123 |
<input type="hidden" name="override_limit" value="1" /> |
123 |
<input type="hidden" name="override_limit" value="ACCOUNT_EXPIRED" /> |
| 124 |
<input type="hidden" name="op" value="cud-renew" /> |
124 |
<input type="hidden" name="op" value="cud-renew" /> |
| 125 |
<input type="submit" class="btn btn-default approve" value="Override and renew" /> |
125 |
<input type="submit" class="btn btn-default approve" value="Override and renew" /> |
| 126 |
</form> |
126 |
</form> |
| 127 |
[% END %] |
127 |
[% END %] |
| 128 |
[% ELSIF error == "auto_renew" or error == "auto_too_much_oweing" %] |
128 |
[% ELSIF error == "auto_renew" or error == "auto_too_much_oweing" %] |
| 129 |
<p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal. </p> |
129 |
<p>[% INCLUDE 'biblio-title.inc' biblio=item.biblio link = 1 %] ( [% item.barcode | html %] ) has been scheduled for automatic renewal. </p> |
|
|
130 |
[% SET override_limit = error == "auto_renew" ? "AUTO_RENEW" : "TOO_MUCH" %] |
| 130 |
|
131 |
|
| 131 |
[% IF Koha.Preference('AllowRenewalLimitOverride') %] |
132 |
[% IF Koha.Preference('AllowRenewalLimitOverride') %] |
| 132 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
133 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 133 |
[% INCLUDE 'csrf-token.inc' %] |
134 |
[% INCLUDE 'csrf-token.inc' %] |
| 134 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
135 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 135 |
<input type="hidden" name="override_limit" value="1" /> |
136 |
<input type="hidden" name="override_limit" value="[% override_limit | html %]" /> |
| 136 |
<input type="hidden" name="op" value="cud-renew" /> |
137 |
<input type="hidden" name="op" value="cud-renew" /> |
| 137 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override limit and renew</button> |
138 |
<button type="submit" class="btn btn-default approve"><i class="fa fa-check"></i> Override limit and renew</button> |
| 138 |
</form> |
139 |
</form> |
|
Lines 143-149
Link Here
|
| 143 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
144 |
<form method="post" action="/cgi-bin/koha/circ/renew.pl"> |
| 144 |
[% INCLUDE 'csrf-token.inc' %] |
145 |
[% INCLUDE 'csrf-token.inc' %] |
| 145 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
146 |
<input type="hidden" name="barcode" value="[% item.barcode | html %]" /> |
| 146 |
<input type="hidden" name="override_limit" value="1" /> |
147 |
<input type="hidden" name="override_limit" value="ON_RESERVE" /> |
| 147 |
<input type="hidden" name="override_holds" value="1" /> |
148 |
<input type="hidden" name="override_holds" value="1" /> |
| 148 |
<div> |
149 |
<div> |
| 149 |
<label for="renewonholdduedate">Renewal due date:</label> |
150 |
<label for="renewonholdduedate">Renewal due date:</label> |
| 150 |
- |
|
|