|
Lines 117-123
Link Here
|
| 117 |
<th class="fixed_sort">Item type</th> |
117 |
<th class="fixed_sort">Item type</th> |
| 118 |
<th class="noExport">Actions</th> |
118 |
<th class="noExport">Actions</th> |
| 119 |
<th>Note</th> |
119 |
<th>Note</th> |
| 120 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
120 |
[% UNLESS humanbranch %]<th> Has priority</th>[% END %] |
| 121 |
<th>Current checkouts allowed</th> |
121 |
<th>Current checkouts allowed</th> |
| 122 |
<th>Current on-site checkouts allowed</th> |
122 |
<th>Current on-site checkouts allowed</th> |
| 123 |
<th>Loan period</th> |
123 |
<th>Loan period</th> |
|
Lines 786-792
Link Here
|
| 786 |
</div> |
786 |
</div> |
| 787 |
[% IF ( show_branch_cat_rule_form ) %] |
787 |
[% IF ( show_branch_cat_rule_form ) %] |
| 788 |
<div id="holds-policy-by-patron-category" class="container"> |
788 |
<div id="holds-policy-by-patron-category" class="container"> |
| 789 |
<h3>[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]</h3> |
789 |
<h3>[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]</h3> |
| 790 |
<p>For this library, you can specify the maximum number of loans that |
790 |
<p>For this library, you can specify the maximum number of loans that |
| 791 |
a patron of a given category can make, regardless of the item type. |
791 |
a patron of a given category can make, regardless of the item type. |
| 792 |
</p> |
792 |
</p> |
|
Lines 855-867
Link Here
|
| 855 |
[% END %] |
855 |
[% END %] |
| 856 |
</td> |
856 |
</td> |
| 857 |
[% END %] |
857 |
[% END %] |
| 858 |
|
858 |
<td class="actions"> |
| 859 |
<td class="actions"> |
859 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=[% c | html %]&branch=[% current_branch | html %]"><i class="fa fa-trash"></i> Delete</a> |
| 860 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=[% c | html %]&branch=[% current_branch | html %]"><i class="fa fa-trash"></i> Delete</a> |
860 |
</td> |
| 861 |
</td> |
861 |
</tr> |
| 862 |
</tr> |
862 |
[% END %] |
| 863 |
[% END %] |
863 |
[% END %] |
| 864 |
[% END %] |
|
|
| 865 |
<tr> |
864 |
<tr> |
| 866 |
<td> |
865 |
<td> |
| 867 |
<select name="categorycode"> |
866 |
<select name="categorycode"> |
|
Lines 873-878
Link Here
|
| 873 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
872 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
| 874 |
<td><input name="patron_maxonsiteissueqty" size="3" type="text" /></td> |
873 |
<td><input name="patron_maxonsiteissueqty" size="3" type="text" /></td> |
| 875 |
<td><input name="max_holds" size="3" type="text" /></td> |
874 |
<td><input name="max_holds" size="3" type="text" /></td> |
|
|
875 |
<td> </td> |
| 876 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td> |
876 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</button></td> |
| 877 |
</tr> |
877 |
</tr> |
| 878 |
</table> |
878 |
</table> |
|
Lines 1301-1436
Link Here
|
| 1301 |
[% SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %] |
1301 |
[% SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %] |
| 1302 |
[% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %] |
1302 |
[% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %] |
| 1303 |
[% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %] |
1303 |
[% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %] |
| 1304 |
<tr> |
1304 |
|
| 1305 |
<td> |
|
|
| 1306 |
<select> |
| 1307 |
[% IF returnbranch == 'homebranch' %] |
| 1308 |
<option value="homebranch" selected="selected"> |
| 1309 |
[% ELSE %] |
| 1310 |
<option value="homebranch"> |
| 1311 |
[% END %] |
| 1312 |
Item returns home |
| 1313 |
</option> |
| 1314 |
[% IF returnbranch == 'holdingbranch' %] |
| 1315 |
<option value="holdingbranch" selected="selected"> |
| 1316 |
[% ELSE %] |
| 1317 |
<option value="holdingbranch"> |
| 1318 |
[% END %] |
| 1319 |
Item returns to issuing library |
| 1320 |
</option> |
| 1321 |
[% IF returnbranch == 'noreturn' %] |
| 1322 |
<option value="noreturn" selected="selected"> |
| 1323 |
[% ELSE %] |
| 1324 |
<option value="noreturn"> |
| 1325 |
[% END %] |
| 1326 |
Item floats |
| 1327 |
</option> |
| 1328 |
</select> |
| 1329 |
</td> |
| 1330 |
<td class="actions"> |
| 1331 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
| 1332 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=*&branch=[% current_branch | html %]" id="unset"><i class="fa fa-undo"></i> Unset</a> |
| 1333 |
</td> |
| 1334 |
</tr> |
| 1335 |
</table> |
| 1336 |
</form> |
| 1337 |
</div> |
| 1338 |
[% IF ( show_branch_cat_rule_form ) %] |
| 1339 |
<div id="holds-policy-by-patron-category" class="container"> |
| 1340 |
<h3>[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]</h3> |
| 1341 |
<p>For this library, you can specify the maximum number of loans that |
| 1342 |
a patron of a given category can make, regardless of the item type. |
| 1343 |
</p> |
| 1344 |
<p>If the total amount loanable for a given patron category is left blank, |
| 1345 |
no limit applies, except possibly for a limit you define for a specific item type. |
| 1346 |
</p> |
| 1347 |
<p> |
| 1348 |
<b>Has priority: </b>If checked, the rule will override those for all branches. Else |
| 1349 |
it behaves like a default one: used if no rule existe for the coresponding branch. |
| 1350 |
</p> |
| 1351 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
| 1352 |
<input type="hidden" name="op" value="add-branch-cat" /> |
| 1353 |
<input type="hidden" name="branch" value="[% current_branch | html %]"/> |
| 1354 |
<table> |
| 1355 |
<tr> |
| 1356 |
<th>Patron category</th> |
| 1357 |
<th>Total current checkouts allowed</th> |
| 1358 |
<th>Total current on-site checkouts allowed</th> |
| 1359 |
<th>Total holds allowed</th> |
| 1360 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
| 1361 |
<th> </th> |
| 1362 |
</tr> |
| 1363 |
[% FOREACH c IN categorycodes %] |
| 1364 |
[% NEXT UNLESS c %] |
| 1365 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
| 1366 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] |
| 1367 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
| 1368 |
|
| 1369 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
| 1370 |
<tr> |
| 1371 |
<td> |
| 1372 |
[% IF c == undef %] |
| 1373 |
<em>Default</em> |
| 1374 |
[% ELSE %] |
| 1375 |
[% Categories.GetName(c) | html %] |
| 1376 |
[% END %] |
| 1377 |
</td> |
| 1378 |
<td> |
| 1379 |
[% IF patron_maxissueqty.defined && patron_maxissueqty != '' %] |
| 1380 |
[% patron_maxissueqty | html %] |
| 1381 |
[% ELSE %] |
| 1382 |
<span>Unlimited</span> |
| 1383 |
[% END %] |
| 1384 |
</td> |
| 1385 |
<td> |
| 1386 |
[% IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %] |
| 1387 |
[% patron_maxonsiteissueqty | html %] |
| 1388 |
[% ELSE %] |
| 1389 |
<span>Unlimited</span> |
| 1390 |
[% END %] |
| 1391 |
</td> |
| 1392 |
<td> |
| 1393 |
[% IF max_holds.defined && max_holds != '' %] |
| 1394 |
[% max_holds | html %] |
| 1395 |
[% ELSE %] |
| 1396 |
<span>Unlimited</span> |
| 1397 |
[% END %] |
| 1398 |
</td> |
| 1399 |
[% UNLESS humanbranch %] |
| 1400 |
<td> |
| 1401 |
<input type="checkbox" [% IF branch_cat_rule_loo.has_priority %]checked[% END %] disabled/> |
| 1402 |
</td> |
| 1403 |
[% END %] |
| 1404 |
|
| 1405 |
<td class="actions"> |
| 1406 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=[% c | html %]&branch=[% current_branch | html %]"><i class="fa fa-trash"></i> Delete</a> |
| 1407 |
</td> |
| 1408 |
</tr> |
| 1409 |
[% END %] |
| 1410 |
[% END %] |
| 1411 |
<tr> |
| 1412 |
<td> |
| 1413 |
<select name="categorycode"> |
| 1414 |
[% FOREACH patron_category IN patron_categories%] |
| 1415 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
| 1416 |
[% END %] |
| 1417 |
</select> |
| 1418 |
</td> |
| 1419 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
| 1420 |
<td><input name="patron_maxonsiteissueqty" size="3" type="text" /></td> |
| 1421 |
<td><input name="max_holds" size="3" type="text" /></td> |
| 1422 |
[% UNLESS humanbranch %] |
| 1423 |
<td> |
| 1424 |
<input type="checkbox" name="has_priority"/> |
| 1425 |
</td> |
| 1426 |
[% END %] |
| 1427 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td> |
| 1428 |
</tr> |
| 1429 |
</table> |
| 1430 |
</form> |
| 1431 |
</div> |
| 1432 |
[% END %] |
| 1433 |
|
| 1434 |
[% IF holdallowed || hold_fulfillment_policy || returnbranch %] |
1305 |
[% IF holdallowed || hold_fulfillment_policy || returnbranch %] |
| 1435 |
<tr> |
1306 |
<tr> |
| 1436 |
<td> |
1307 |
<td> |
| 1437 |
- |
|
|