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