|
Lines 845-850
Link Here
|
| 845 |
</div> |
845 |
</div> |
| 846 |
[% END %] |
846 |
[% END %] |
| 847 |
|
847 |
|
|
|
848 |
<div id="waiting-hold-cancel-category" class="container"> |
| 849 |
[% IF humanbranch %] |
| 850 |
<h3>Waiting hold cancellation policy for [% Branches.GetName( humanbranch ) | html %]</h3> |
| 851 |
[% ELSE %] |
| 852 |
<h3>Default waiting hold cancellation policy</h3> |
| 853 |
[% END %] |
| 854 |
<p>Specify if waiting holds can be cancelled for a given patron category.</p> |
| 855 |
<form id="set-waiting-hold-cancellation" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
| 856 |
<input type="hidden" name="op" value="set-waiting-hold-cancellation" /> |
| 857 |
<input type="hidden" name="branch" value="[% current_branch | html %]"/> |
| 858 |
<table> |
| 859 |
<tr> |
| 860 |
<th>Patron category</th> |
| 861 |
<th>Item type</th> |
| 862 |
<th>Cancellation allowed</th> |
| 863 |
<th> </th> |
| 864 |
</tr> |
| 865 |
[% FOREACH c IN categorycodes %] |
| 866 |
[% SET c = '*' UNLESS c.defined AND c != '' %] |
| 867 |
[% FOREACH i IN itemtypes %] |
| 868 |
[% SET i = '*' UNLESS i.defined AND i != '' %] |
| 869 |
|
| 870 |
[% SET waiting_hold_cancellation = CirculationRules.Search( current_branch, c, i, 'waiting_hold_cancellation' ) %] |
| 871 |
|
| 872 |
[% IF ( waiting_hold_cancellation.defined && waiting_hold_cancellation != '' ) %] |
| 873 |
<tr> |
| 874 |
<td> |
| 875 |
[% IF c == '*' %] |
| 876 |
<em>All</em> |
| 877 |
[% ELSE %] |
| 878 |
[% Categories.GetName(c) | html %] |
| 879 |
[% END %] |
| 880 |
</td> |
| 881 |
<td> |
| 882 |
[% IF i == '*' %] |
| 883 |
<em>All</em> |
| 884 |
[% ELSE %] |
| 885 |
[% ItemTypes.GetDescription(i,1) | html %] |
| 886 |
[% END %] |
| 887 |
</td> |
| 888 |
<td> |
| 889 |
[% IF waiting_hold_cancellation %] |
| 890 |
<span>Yes</span> |
| 891 |
[% ELSE %] |
| 892 |
<span>No</span> |
| 893 |
[% END %] |
| 894 |
</td> |
| 895 |
<td class="actions"> |
| 896 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=del-waiting-hold-cancellation&waiting_hold_cancellation_category=[% c | uri %]&waiting_hold_cancellation_itemtype=[% i | uri %]&branch=[% current_branch | uri %]"><i class="fa fa-trash"></i> Delete</a> |
| 897 |
</td> |
| 898 |
</tr> |
| 899 |
[% END %] |
| 900 |
[% END %] |
| 901 |
[% END %] |
| 902 |
<tr> |
| 903 |
<td> |
| 904 |
<select name="waiting_hold_cancellation_category" id="waiting_hold_cancellation_category"> |
| 905 |
<option value="*">All</option> |
| 906 |
[% FOREACH patron_category IN patron_categories %] |
| 907 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
| 908 |
[% END %] |
| 909 |
</select> |
| 910 |
</td> |
| 911 |
<td> |
| 912 |
<select name="waiting_hold_cancellation_itemtype" id="waiting_hold_cancellation_itemtype"> |
| 913 |
<option value="*">All</option> |
| 914 |
[% FOREACH itemtype IN itemtypeloop %] |
| 915 |
<option value="[% itemtype.itemtype | html %]">[% ItemTypes.GetDescription(itemtype.itemtype) | html %]</option> |
| 916 |
[% END %] |
| 917 |
</select> |
| 918 |
</td> |
| 919 |
<td> |
| 920 |
<select name="waiting_hold_cancellation_policy" id="waiting_hold_cancellation_policy"> |
| 921 |
<option value="0" selected>No</option> |
| 922 |
<option value="1">Yes</option> |
| 923 |
</select> |
| 924 |
</td> |
| 925 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td> |
| 926 |
</tr> |
| 927 |
</table> |
| 928 |
</form> |
| 929 |
</div> |
| 930 |
|
| 848 |
[% IF Koha.Preference('ArticleRequests') %] |
931 |
[% IF Koha.Preference('ArticleRequests') %] |
| 849 |
<div id="open-article-requests-limit-patron-category" class="container"> |
932 |
<div id="open-article-requests-limit-patron-category" class="container"> |
| 850 |
[% IF humanbranch %] |
933 |
[% IF humanbranch %] |
| 851 |
- |
|
|