Lines 135-143
$(document).ready(function() {
Link Here
|
135 |
Select a library : |
135 |
Select a library : |
136 |
<select name="branch" id="branch" style="width:20em;"> |
136 |
<select name="branch" id="branch" style="width:20em;"> |
137 |
<option value="*">All libraries</option> |
137 |
<option value="*">All libraries</option> |
138 |
[% FOREACH branchloo IN branchloop %] |
138 |
[% FOREACH branchloo IN branchloop %] |
139 |
[% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %] |
139 |
[% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %] |
140 |
[% END %] |
140 |
[% END %] |
141 |
</select> |
141 |
</select> |
142 |
</form> |
142 |
</form> |
143 |
[% IF ( definedbranch ) %]<form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"><label |
143 |
[% IF ( definedbranch ) %]<form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"><label |
Lines 177-277
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
177 |
</tr> |
177 |
</tr> |
178 |
</thead> |
178 |
</thead> |
179 |
<tbody> |
179 |
<tbody> |
180 |
[% FOREACH rule IN rules %] |
180 |
[% FOREACH rule IN rules %] |
181 |
<tr id="row_[% loop.count %]"> |
181 |
<tr id="row_[% loop.count %]"> |
182 |
<td>[% IF ( rule.default_humancategorycode ) %] |
182 |
<td> |
183 |
<em>All</em> |
183 |
[% IF ( rule.default_humancategorycode ) %] |
184 |
[% ELSE %] |
184 |
<em>All</em> |
185 |
[% rule.humancategorycode %] |
185 |
[% ELSE %] |
186 |
[% END %] |
186 |
[% rule.humancategorycode %] |
187 |
</td> |
187 |
[% END %] |
188 |
<td>[% IF ( rule.default_humanitemtype ) %] |
188 |
</td> |
189 |
<em>All</em> |
189 |
<td> |
190 |
[% ELSE %] |
190 |
[% IF ( rule.default_humanitemtype ) %] |
191 |
[% rule.translated_description %] |
191 |
<em>All</em> |
192 |
[% END %] |
192 |
[% ELSE %] |
193 |
</td> |
193 |
[% rule.translated_description %] |
194 |
<td>[% IF ( rule.unlimited_maxissueqty ) %] |
194 |
[% END %] |
195 |
Unlimited |
195 |
</td> |
196 |
[% ELSE %] |
196 |
<td> |
197 |
[% rule.maxissueqty %] |
197 |
[% IF ( rule.unlimited_maxissueqty ) %] |
198 |
[% END %] |
198 |
Unlimited |
199 |
</td> |
199 |
[% ELSE %] |
200 |
<td>[% IF rule.unlimited_maxonsiteissueqty %] |
200 |
[% rule.maxissueqty %] |
201 |
Unlimited |
201 |
[% END %] |
202 |
[% ELSE %] |
202 |
</td> |
203 |
[% rule.maxonsiteissueqty %] |
203 |
<td> |
204 |
[% END %] |
204 |
[% IF rule.unlimited_maxonsiteissueqty %] |
205 |
</td> |
205 |
Unlimited |
206 |
<td>[% rule.issuelength %]</td> |
206 |
[% ELSE %] |
207 |
<td> |
207 |
[% rule.maxonsiteissueqty %] |
208 |
[% rule.lengthunit %] |
208 |
[% END %] |
209 |
</td> |
209 |
</td> |
210 |
<td> |
210 |
<td>[% rule.issuelength %]</td> |
211 |
[% IF ( rule.hardduedate ) %] |
211 |
<td>[% rule.lengthunit %]</td> |
|
|
212 |
<td> |
213 |
[% IF ( rule.hardduedate ) %] |
212 |
[% IF ( rule.hardduedatebefore ) %] |
214 |
[% IF ( rule.hardduedatebefore ) %] |
213 |
before [% rule.hardduedate %] |
215 |
before [% rule.hardduedate %] |
214 |
<input type="hidden" name="hardduedatecomparebackup" value="-1" /> |
216 |
<input type="hidden" name="hardduedatecomparebackup" value="-1" /> |
215 |
[% ELSIF ( rule.hardduedateexact ) %] |
217 |
[% ELSIF ( rule.hardduedateexact ) %] |
216 |
on [% rule.hardduedate %] |
218 |
on [% rule.hardduedate %] |
217 |
<input type="hidden" name="hardduedatecomparebackup" value="0" /> |
219 |
<input type="hidden" name="hardduedatecomparebackup" value="0" /> |
218 |
[% ELSIF ( rule.hardduedateafter ) %] |
220 |
[% ELSIF ( rule.hardduedateafter ) %] |
219 |
after [% rule.hardduedate %] |
221 |
after [% rule.hardduedate %] |
220 |
<input type="hidden" name="hardduedatecomparebackup" value="1" /> |
222 |
<input type="hidden" name="hardduedatecomparebackup" value="1" /> |
221 |
[% END %] |
223 |
[% END %] |
222 |
[% ELSE %] |
224 |
[% ELSE %] |
223 |
None defined |
225 |
None defined |
224 |
[% END %] |
226 |
[% END %] |
225 |
</td> |
227 |
</td> |
226 |
<td>[% rule.fine %]</td> |
228 |
<td>[% rule.fine %]</td> |
227 |
<td>[% rule.chargeperiod %]</td> |
229 |
<td>[% rule.chargeperiod %]</td> |
228 |
<td>[% IF rule.chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td> |
230 |
<td>[% IF rule.chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td> |
229 |
<td>[% rule.firstremind %]</td> |
231 |
<td>[% rule.firstremind %]</td> |
230 |
<td>[% rule.overduefinescap FILTER format("%.2f") %]</td> |
232 |
<td>[% rule.overduefinescap FILTER format("%.2f") %]</td> |
231 |
<td> |
233 |
<td> |
232 |
[% IF rule.cap_fine_to_replacement_price %] |
234 |
[% IF rule.cap_fine_to_replacement_price %] |
233 |
<input type="checkbox" checked="checked" disabled="disabled" /> |
235 |
<input type="checkbox" checked="checked" disabled="disabled" /> |
234 |
[% ELSE %] |
236 |
[% ELSE %] |
235 |
<input type="checkbox" disabled="disabled" /> |
237 |
<input type="checkbox" disabled="disabled" /> |
236 |
[% END %] |
238 |
[% END %] |
237 |
</td> |
239 |
</td> |
238 |
<td>[% rule.finedays %]</td> |
240 |
<td>[% rule.finedays %]</td> |
239 |
<td>[% rule.maxsuspensiondays %]</td> |
241 |
<td>[% rule.maxsuspensiondays %]</td> |
240 |
<td>[% rule.renewalsallowed %]</td> |
242 |
<td>[% rule.renewalsallowed %]</td> |
241 |
<td>[% rule.renewalperiod %]</td> |
243 |
<td>[% rule.renewalperiod %]</td> |
242 |
<td>[% rule.norenewalbefore %]</td> |
244 |
<td>[% rule.norenewalbefore %]</td> |
243 |
<td> |
245 |
<td>[% IF ( rule.auto_renew ) %]Yes[% ELSE %]No[% END %]</td> |
244 |
[% IF ( rule.auto_renew ) %] |
246 |
<td>[% rule.reservesallowed %]</td> |
245 |
Yes |
247 |
<td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td> |
246 |
[% ELSE %] |
248 |
<td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td> |
247 |
No |
249 |
<td>[% rule.rentaldiscount %]</td> |
248 |
[% END %] |
250 |
<td><a href="#" class="editrule">Edit</a></td> |
249 |
</td> |
251 |
<td> |
250 |
<td>[% rule.reservesallowed %]</td> |
252 |
<a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]">Delete</a> |
251 |
<td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td> |
253 |
</td> |
252 |
<td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td> |
254 |
</tr> |
253 |
<td>[% rule.rentaldiscount %]</td> |
255 |
[% END %] |
254 |
<td><a href="#" class="editrule">Edit</a></td> |
|
|
255 |
<td> |
256 |
<a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]">Delete</a> |
257 |
</td> |
258 |
</tr> |
259 |
[% END %] |
260 |
<tr id="edit_row"> |
256 |
<tr id="edit_row"> |
261 |
<td> |
257 |
<td> |
262 |
<select name="categorycode" id="categorycode"> |
258 |
<select name="categorycode" id="categorycode"> |
263 |
<option value="*">All</option> |
259 |
<option value="*">All</option> |
264 |
[% FOREACH categoryloo IN categoryloop %] |
260 |
[% FOREACH categoryloo IN categoryloop %] |
265 |
<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option> |
261 |
<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option> |
266 |
[% END %] |
262 |
[% END %] |
267 |
</select> |
263 |
</select> |
268 |
</td> |
264 |
</td> |
269 |
<td> |
265 |
<td> |
270 |
<select name="itemtype" id="matrixitemtype" style="width:13em;"> |
266 |
<select name="itemtype" id="matrixitemtype" style="width:13em;"> |
271 |
<option value="*">All</option> |
267 |
<option value="*">All</option> |
272 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
268 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
273 |
<option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.translated_description %]</option> |
269 |
<option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.translated_description %]</option> |
274 |
[% END %] |
270 |
[% END %] |
275 |
</select> |
271 |
</select> |
276 |
</td> |
272 |
</td> |
277 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
273 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
Lines 470-488
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
470 |
[% ELSE %] |
466 |
[% ELSE %] |
471 |
<tr> |
467 |
<tr> |
472 |
[% END %] |
468 |
[% END %] |
473 |
<td>[% IF ( branch_cat_rule_loo.default_humancategorycode ) %] |
469 |
<td> |
|
|
470 |
[% IF ( branch_cat_rule_loo.default_humancategorycode ) %] |
474 |
<em>Default</em> |
471 |
<em>Default</em> |
475 |
[% ELSE %] |
472 |
[% ELSE %] |
476 |
[% branch_cat_rule_loo.humancategorycode %] |
473 |
[% branch_cat_rule_loo.humancategorycode %] |
477 |
[% END %] |
474 |
[% END %] |
478 |
</td> |
475 |
</td> |
479 |
<td>[% IF ( branch_cat_rule_loo.unlimited_maxissueqty ) %] |
476 |
<td> |
|
|
477 |
[% IF ( branch_cat_rule_loo.unlimited_maxissueqty ) %] |
480 |
Unlimited |
478 |
Unlimited |
481 |
[% ELSE %] |
479 |
[% ELSE %] |
482 |
[% branch_cat_rule_loo.maxissueqty %] |
480 |
[% branch_cat_rule_loo.maxissueqty %] |
483 |
[% END %] |
481 |
[% END %] |
484 |
</td> |
482 |
</td> |
485 |
<td>[% IF ( branch_cat_rule_loo.unlimited_maxonsiteissueqty ) %] |
483 |
<td> |
|
|
484 |
[% IF ( branch_cat_rule_loo.unlimited_maxonsiteissueqty ) %] |
486 |
Unlimited |
485 |
Unlimited |
487 |
[% ELSE %] |
486 |
[% ELSE %] |
488 |
[% branch_cat_rule_loo.maxonsiteissueqty %] |
487 |
[% branch_cat_rule_loo.maxonsiteissueqty %] |
Lines 497-505
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
497 |
<tr> |
496 |
<tr> |
498 |
<td> |
497 |
<td> |
499 |
<select name="categorycode"> |
498 |
<select name="categorycode"> |
500 |
[% FOREACH categoryloo IN categoryloop %] |
499 |
[% FOREACH categoryloo IN categoryloop %] |
501 |
<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option> |
500 |
<option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option> |
502 |
[% END %] |
501 |
[% END %] |
503 |
</select> |
502 |
</select> |
504 |
</td> |
503 |
</td> |
505 |
<td><input name="maxissueqty" size="3" /></td> |
504 |
<td><input name="maxissueqty" size="3" /></td> |
Lines 545-557
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
545 |
[% ELSE %] |
544 |
[% ELSE %] |
546 |
<tr> |
545 |
<tr> |
547 |
[% END %] |
546 |
[% END %] |
548 |
<td>[% IF ( branch_item_rule_loo.default_humanitemtype ) %] |
547 |
<td> |
|
|
548 |
[% IF ( branch_item_rule_loo.default_humanitemtype ) %] |
549 |
<em>Default</em> |
549 |
<em>Default</em> |
550 |
[% ELSE %] |
550 |
[% ELSE %] |
551 |
[% branch_item_rule_loo.translated_description %] |
551 |
[% branch_item_rule_loo.translated_description %] |
552 |
[% END %] |
552 |
[% END %] |
553 |
</td> |
553 |
</td> |
554 |
<td>[% IF ( branch_item_rule_loo.holdallowed_any ) %] |
554 |
<td> |
|
|
555 |
[% IF ( branch_item_rule_loo.holdallowed_any ) %] |
555 |
From any library |
556 |
From any library |
556 |
[% ELSIF ( branch_item_rule_loo.holdallowed_same ) %] |
557 |
[% ELSIF ( branch_item_rule_loo.holdallowed_same ) %] |
557 |
From home library |
558 |
From home library |
Lines 559-565
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
559 |
No holds allowed |
560 |
No holds allowed |
560 |
[% END %] |
561 |
[% END %] |
561 |
</td> |
562 |
</td> |
562 |
<td>[% IF ( branch_item_rule_loo.returnbranch == 'homebranch' ) %] |
563 |
<td> |
|
|
564 |
[% IF ( branch_item_rule_loo.returnbranch == 'homebranch' ) %] |
563 |
Item returns home |
565 |
Item returns home |
564 |
[% ELSIF ( branch_item_rule_loo.returnbranch == 'holdingbranch' ) %] |
566 |
[% ELSIF ( branch_item_rule_loo.returnbranch == 'holdingbranch' ) %] |
565 |
Item returns to issuing branch |
567 |
Item returns to issuing branch |
566 |
- |
|
|