Lines 112-205
Link Here
|
112 |
<th>Note</th> |
112 |
<th>Note</th> |
113 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
113 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
114 |
<th>Current checkouts allowed</th> |
114 |
<th>Current checkouts allowed</th> |
115 |
<th>Current on-site checkouts allowed</th> |
115 |
<th>Current on-site checkouts allowed</th> |
116 |
<th>Loan period</th> |
116 |
<th>Loan period</th> |
117 |
<th>Days mode</th> |
117 |
<th>Days mode</th> |
118 |
<th>Unit</th> |
118 |
<th>Unit</th> |
119 |
<th>Hard due date</th> |
119 |
<th>Hard due date</th> |
120 |
<th>Decreased loan period for high holds (day)</th> |
120 |
<th>Decreased loan period for high holds (day)</th> |
121 |
<th>Fine amount</th> |
121 |
<th>Fine amount</th> |
122 |
<th>Fine charging interval</th> |
122 |
<th>Fine charging interval</th> |
123 |
<th>When to charge</th> |
123 |
<th>When to charge</th> |
124 |
<th>Fine/suspension grace period</th> |
124 |
<th>Fine grace period</th> |
125 |
<th>Overdue fines cap (amount)</th> |
125 |
<th>Overdue fines cap (amount)</th> |
126 |
<th>Cap fine at replacement price</th> |
126 |
<th>Cap fine at replacement price</th> |
127 |
<th>Suspension in days (day)</th> |
127 |
<th>Suspension in days (day)</th> |
128 |
<th>Max. suspension duration (day)</th> |
128 |
<th>Max. suspension duration (day)</th> |
129 |
<th>Suspension charging interval</th> |
129 |
<th>Suspension charging interval</th> |
130 |
<th>Renewals allowed (count)</th> |
130 |
<th>Renewals allowed (count)</th> |
131 |
[% IF Koha.Preference('UnseenRenewals') %] |
131 |
[% IF Koha.Preference('UnseenRenewals') %] |
132 |
<th>Unseen renewals allowed (count)</th> |
132 |
<th>Unseen renewals allowed (count)</th> |
133 |
[% END %] |
133 |
[% END %] |
134 |
<th>Renewal period</th> |
134 |
<th>Renewal period</th> |
135 |
<th>No renewal before</th> |
135 |
<th>No renewal before</th> |
136 |
<th>Automatic renewal</th> |
136 |
<th>Automatic renewal</th> |
137 |
<th>No automatic renewal after</th> |
137 |
<th>No automatic renewal after</th> |
138 |
<th>No automatic renewal after (hard limit)</th> |
138 |
<th>No automatic renewal after (hard limit)</th> |
139 |
<th>Holds allowed (total)</th> |
139 |
<th>Holds allowed (total)</th> |
140 |
<th>Holds allowed (daily)</th> |
140 |
<th>Holds allowed (daily)</th> |
141 |
<th>Holds per record (count)</th> |
141 |
<th>Holds per record (count)</th> |
142 |
<th>On shelf holds allowed</th> |
142 |
<th>On shelf holds allowed</th> |
143 |
<th>OPAC item level holds</th> |
143 |
<th>OPAC item level holds</th> |
144 |
[% IF Koha.Preference('ArticleRequests') %] |
144 |
<th>Article requests</th> |
145 |
<th>Article requests</th> |
145 |
<th>Rental discount (%)</th> |
146 |
[% END %] |
146 |
<th class="noExport">Actions</th> |
147 |
<th>Rental discount (%)</th> |
147 |
</tr> |
148 |
[% IF Koha.Preference('UseRecalls') %] |
148 |
</thead> |
149 |
<th>Recalls allowed (total)</th> |
149 |
<tbody> |
150 |
<th>Recalls per record (count)</th> |
150 |
[% SET row_count = 0 %] |
151 |
<th>On shelf recalls allowed</th> |
151 |
[% FOREACH c IN categorycodes %] |
152 |
<th>Recall due date interval (day)</th> |
152 |
[% SET c = '' UNLESS c.defined %] |
153 |
<th>Recall overdue fine amount</th> |
153 |
[% FOREACH i IN itemtypes %] |
154 |
<th>Recall pickup period (day)</th> |
154 |
[% SET i = '' UNLESS i.defined %] |
155 |
[% END %] |
155 |
[% SET note = all_rules.$c.$i.note %] |
156 |
<th class="noExport">Actions</th> |
156 |
[% SET has_priority = all_rules.$c.$i.has_priority %] |
157 |
</tr> |
157 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
158 |
</thead> |
158 |
[% SET maxonsiteissueqty = all_rules.$c.$i.maxonsiteissueqty %] |
159 |
<tbody> |
159 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
160 |
[% SET row_count = 0 %] |
160 |
[% SET daysmode = all_rules.$c.$i.daysmode %] |
161 |
[% FOREACH c IN categorycodes %] |
161 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
162 |
[% SET c = '' UNLESS c.defined %] |
162 |
[% SET hardduedate = all_rules.$c.$i.hardduedate %] |
163 |
[% FOREACH i IN itemtypes %] |
163 |
[% SET hardduedatecompare = all_rules.$c.$i.hardduedatecompare %] |
164 |
[% SET i = '' UNLESS i.defined %] |
164 |
[% SET fine = all_rules.$c.$i.fine %] |
165 |
[% SET note = all_rules.$c.$i.note %] |
165 |
[% SET chargeperiod = all_rules.$c.$i.chargeperiod %] |
166 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
166 |
[% SET chargeperiod_charge_at = all_rules.$c.$i.chargeperiod_charge_at %] |
167 |
[% SET maxonsiteissueqty = all_rules.$c.$i.maxonsiteissueqty %] |
167 |
[% SET firstremind = all_rules.$c.$i.firstremind %] |
168 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
168 |
[% SET overduefinescap = all_rules.$c.$i.overduefinescap %] |
169 |
[% SET daysmode = all_rules.$c.$i.daysmode %] |
169 |
[% SET cap_fine_to_replacement_price = all_rules.$c.$i.cap_fine_to_replacement_price %] |
170 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
170 |
[% SET finedays = all_rules.$c.$i.finedays %] |
171 |
[% SET hardduedate = all_rules.$c.$i.hardduedate %] |
171 |
[% SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %] |
172 |
[% SET hardduedatecompare = all_rules.$c.$i.hardduedatecompare %] |
172 |
[% SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %] |
173 |
[% SET fine = all_rules.$c.$i.fine %] |
173 |
[% SET renewalsallowed = all_rules.$c.$i.renewalsallowed %] |
174 |
[% SET chargeperiod = all_rules.$c.$i.chargeperiod %] |
174 |
[% SET unseenrenewalsallowed = all_rules.$c.$i.unseen_renewals_allowed %] |
175 |
[% SET chargeperiod_charge_at = all_rules.$c.$i.chargeperiod_charge_at %] |
175 |
[% SET renewalperiod = all_rules.$c.$i.renewalperiod %] |
176 |
[% SET firstremind = all_rules.$c.$i.firstremind %] |
176 |
[% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %] |
177 |
[% SET overduefinescap = all_rules.$c.$i.overduefinescap %] |
177 |
[% SET auto_renew = all_rules.$c.$i.auto_renew %] |
178 |
[% SET cap_fine_to_replacement_price = all_rules.$c.$i.cap_fine_to_replacement_price %] |
178 |
[% SET no_auto_renewal_after = all_rules.$c.$i.no_auto_renewal_after %] |
179 |
[% SET finedays = all_rules.$c.$i.finedays %] |
179 |
[% SET no_auto_renewal_after_hard_limit = all_rules.$c.$i.no_auto_renewal_after_hard_limit %] |
180 |
[% SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %] |
180 |
[% SET reservesallowed = all_rules.$c.$i.reservesallowed %] |
181 |
[% SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %] |
181 |
[% SET holds_per_day = all_rules.$c.$i.holds_per_day %] |
182 |
[% SET renewalsallowed = all_rules.$c.$i.renewalsallowed %] |
182 |
[% SET holds_per_record = all_rules.$c.$i.holds_per_record %] |
183 |
[% SET unseenrenewalsallowed = all_rules.$c.$i.unseen_renewals_allowed %] |
183 |
[% SET onshelfholds = all_rules.$c.$i.onshelfholds %] |
184 |
[% SET renewalperiod = all_rules.$c.$i.renewalperiod %] |
184 |
[% SET opacitemholds = all_rules.$c.$i.opacitemholds %] |
185 |
[% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %] |
185 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
186 |
[% SET auto_renew = all_rules.$c.$i.auto_renew %] |
186 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
187 |
[% SET no_auto_renewal_after = all_rules.$c.$i.no_auto_renewal_after %] |
187 |
[% SET decreaseloanholds = all_rules.$c.$i.decreaseloanholds %] |
188 |
[% SET no_auto_renewal_after_hard_limit = all_rules.$c.$i.no_auto_renewal_after_hard_limit %] |
|
|
189 |
[% SET reservesallowed = all_rules.$c.$i.reservesallowed %] |
190 |
[% SET holds_per_day = all_rules.$c.$i.holds_per_day %] |
191 |
[% SET holds_per_record = all_rules.$c.$i.holds_per_record %] |
192 |
[% SET onshelfholds = all_rules.$c.$i.onshelfholds %] |
193 |
[% SET opacitemholds = all_rules.$c.$i.opacitemholds %] |
194 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
195 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
196 |
[% SET decreaseloanholds = all_rules.$c.$i.decreaseloanholds %] |
197 |
[% SET recalls_allowed = all_rules.$c.$i.recalls_allowed %] |
198 |
[% SET recalls_per_record = all_rules.$c.$i.recalls_per_record %] |
199 |
[% SET on_shelf_recalls = all_rules.$c.$i.on_shelf_recalls %] |
200 |
[% SET recall_due_date_interval = all_rules.$c.$i.recall_due_date_interval %] |
201 |
[% SET recall_overdue_fine = all_rules.$c.$i.recall_overdue_fine %] |
202 |
[% SET recall_shelf_time = all_rules.$c.$i.recall_shelf_time %] |
203 |
|
188 |
|
204 |
[% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || unseenrenewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount || decreaseloanholds || recalls_allowed || recalls_per_record || on_shelf_recalls || recall_due_date_interval || recall_overdue_fine || recall_shelf_time %] |
189 |
[% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || unseenrenewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount || decreaseloanholds || recalls_allowed || recalls_per_record || on_shelf_recalls || recall_due_date_interval || recall_overdue_fine || recall_shelf_time %] |
205 |
[% IF show_rule %] |
190 |
[% IF show_rule %] |
Lines 240-246
Link Here
|
240 |
</td> |
225 |
</td> |
241 |
[% UNLESS humanbranch %] |
226 |
[% UNLESS humanbranch %] |
242 |
<td> |
227 |
<td> |
243 |
[% IF rule.has_priority %] |
228 |
[% IF has_priority.defined && has_priority %] |
244 |
<input type="checkbox" checked="checked" disabled="disabled"/> |
229 |
<input type="checkbox" checked="checked" disabled="disabled"/> |
245 |
[% ELSE %] |
230 |
[% ELSE %] |
246 |
<input type="checkbox" disabled="disabled"/> |
231 |
<input type="checkbox" disabled="disabled"/> |
Lines 761-826
Link Here
|
761 |
Not set |
746 |
Not set |
762 |
</option> |
747 |
</option> |
763 |
|
748 |
|
764 |
[% IF returnbranch.rule_value == 'homebranch' %] |
749 |
[% IF returnbranch == 'homebranch' %] |
765 |
<option value="homebranch" selected="selected"> |
750 |
<option value="homebranch" selected="selected"> |
766 |
[% ELSE %] |
751 |
[% ELSE %] |
767 |
<option value="homebranch"> |
752 |
<option value="homebranch"> |
768 |
[% END %] |
753 |
[% END %] |
769 |
Item returns home |
754 |
Item returns home |
770 |
</option> |
755 |
</option> |
771 |
[% IF returnbranch.rule_value == 'holdingbranch' %] |
756 |
[% IF returnbranch == 'holdingbranch' %] |
772 |
<option value="holdingbranch" selected="selected"> |
757 |
<option value="holdingbranch" selected="selected"> |
773 |
[% ELSE %] |
758 |
[% ELSE %] |
774 |
<option value="holdingbranch"> |
759 |
<option value="holdingbranch"> |
775 |
[% END %] |
760 |
[% END %] |
776 |
Item returns to issuing library |
761 |
Item returns to issuing library |
777 |
</option> |
762 |
</option> |
778 |
[% IF returnbranch.rule_value == 'noreturn' %] |
763 |
[% IF returnbranch == 'noreturn' %] |
779 |
<option value="noreturn" selected="selected"> |
764 |
<option value="noreturn" selected="selected"> |
780 |
[% ELSE %] |
765 |
[% ELSE %] |
781 |
<option value="noreturn"> |
766 |
<option value="noreturn"> |
782 |
[% END %] |
767 |
[% END %] |
783 |
Item floats |
768 |
Item floats |
784 |
</option> |
769 |
</option> |
785 |
</select> |
770 |
</select> |
786 |
</td> |
771 |
</td> |
787 |
<td class="actions"> |
772 |
<td class="actions"> |
788 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
773 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
789 |
[% IF ( default_checkout_hold_and_return_policy ) %] |
774 |
<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> |
790 |
<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> |
775 |
</td> |
791 |
[% END %] |
776 |
</tr> |
792 |
</td> |
777 |
</table> |
793 |
</tr> |
778 |
</form> |
794 |
</table> |
779 |
</div> |
795 |
</form> |
780 |
[% IF ( show_branch_cat_rule_form ) %] |
796 |
</div> |
781 |
<div id="holds-policy-by-patron-category" class="container"> |
797 |
|
782 |
<h3>[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]</h3> |
798 |
[% IF ( show_branch_cat_rule_form ) %] |
783 |
<p>For this library, you can specify the maximum number of loans that |
799 |
<div id="holds-policy-by-patron-category" class="page-section"> |
784 |
a patron of a given category can make, regardless of the item type. |
800 |
<h2>[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]</h2> |
785 |
</p> |
801 |
<p>For this library, you can specify the maximum number of loans that |
786 |
<p>If the total amount loanable for a given patron category is left blank, |
802 |
a patron of a given category can make, regardless of the item type. |
787 |
no limit applies, except possibly for a limit you define for a specific item type. |
803 |
</p> |
788 |
</p> |
804 |
<p>If the total amount loanable for a given patron category is left blank, |
789 |
<p> |
805 |
no limit applies, except possibly for a limit you define for a specific item type. |
790 |
<b>Has priority: </b>If checked, the rule will override those for all branches. Else |
806 |
</p> |
791 |
it behaves like a default one: used if no rule exists for the coresponding branch. |
807 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
792 |
</p> |
808 |
<input type="hidden" name="op" value="add-branch-cat" /> |
793 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
809 |
<input type="hidden" name="branch" value="[% current_branch | html %]"/> |
794 |
<input type="hidden" name="op" value="add-branch-cat" /> |
810 |
<table> |
795 |
<input type="hidden" name="branch" value="[% current_branch | html %]"/> |
811 |
<tr> |
796 |
<table> |
812 |
<th>Patron category</th> |
797 |
<tr> |
813 |
<th>Total current checkouts allowed</th> |
798 |
<th>Patron category</th> |
814 |
<th>Total current on-site checkouts allowed</th> |
799 |
<th>Total current checkouts allowed</th> |
815 |
<th>Total holds allowed</th> |
800 |
<th>Total current on-site checkouts allowed</th> |
816 |
<th> </th> |
801 |
<th>Total holds allowed</th> |
817 |
</tr> |
802 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
818 |
[% FOREACH c IN categorycodes %] |
803 |
<th> </th> |
819 |
[% NEXT UNLESS c %] |
804 |
</tr> |
820 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
805 |
[% SET i = '' %] |
821 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] |
806 |
[% FOREACH c IN categorycodes %] |
822 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
807 |
[% NEXT UNLESS c %] |
823 |
|
808 |
[% SET patron_maxissueqty = all_rules.$c.$i.patron_maxissueqty %] |
|
|
809 |
[% SET patron_maxonsiteissueqty = all_rules.$c.$i.patron_maxonsiteissueqty %] |
810 |
[% SET max_holds = all_rules.$c.$i.max_holds %] |
811 |
[% SET has_priority = all_rules.$c.$i.has_priority %] |
824 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
812 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
825 |
<tr> |
813 |
<tr> |
826 |
<td> |
814 |
<td> |
Lines 853-859
Link Here
|
853 |
</td> |
841 |
</td> |
854 |
[% UNLESS humanbranch %] |
842 |
[% UNLESS humanbranch %] |
855 |
<td> |
843 |
<td> |
856 |
[% IF branch_cat_rule_loo.has_priority %] |
844 |
[% IF has_priority.defined && has_priority %] |
857 |
<input type="checkbox" checked="checked" disabled/> |
845 |
<input type="checkbox" checked="checked" disabled/> |
858 |
[% ELSE %] |
846 |
[% ELSE %] |
859 |
<input type="checkbox" disabled/> |
847 |
<input type="checkbox" disabled/> |