Lines 97-225
Link Here
|
97 |
</tr> |
97 |
</tr> |
98 |
</thead> |
98 |
</thead> |
99 |
<tbody> |
99 |
<tbody> |
100 |
[% FOREACH rule IN rules %] |
100 |
[% FOREACH rule IN rules %] |
101 |
<tr id="row_[% loop.count %]"> |
101 |
<tr id="row_[% loop.count %]"> |
102 |
<td>[% IF ( rule.default_humancategorycode ) %] |
102 |
<td> |
103 |
<em>All</em> |
103 |
[% IF ( rule.default_humancategorycode ) %] |
104 |
[% ELSE %] |
104 |
<em>All</em> |
105 |
[% rule.humancategorycode %] |
105 |
[% ELSE %] |
106 |
[% END %] |
106 |
[% rule.humancategorycode %] |
107 |
</td> |
107 |
[% END %] |
108 |
<td>[% IF rule.default_translated_description %] |
108 |
</td> |
109 |
<em>All</em> |
109 |
<td> |
110 |
[% ELSE %] |
110 |
[% IF rule.default_translated_description %] |
111 |
[% rule.translated_description %] |
111 |
<em>All</em> |
112 |
[% END %] |
112 |
[% ELSE %] |
113 |
</td> |
113 |
[% rule.translated_description %] |
114 |
<td class="actions"> |
114 |
[% END %] |
115 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
115 |
</td> |
116 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
116 |
<td class="actions"> |
117 |
</td> |
117 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
118 |
|
118 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
119 |
<td>[% IF ( rule.unlimited_maxissueqty ) %] |
119 |
</td> |
120 |
<span>Unlimited</span> |
120 |
<td> |
121 |
[% ELSE %] |
121 |
[% IF ( rule.unlimited_maxissueqty ) %] |
122 |
[% rule.maxissueqty %] |
122 |
<span>Unlimited</span> |
123 |
[% END %] |
123 |
[% ELSE %] |
124 |
</td> |
124 |
[% rule.maxissueqty %] |
125 |
<td>[% IF rule.unlimited_maxonsiteissueqty %] |
125 |
[% END %] |
126 |
<span>Unlimited</span> |
126 |
</td> |
127 |
[% ELSE %] |
127 |
<td> |
128 |
[% rule.maxonsiteissueqty %] |
128 |
[% IF rule.unlimited_maxonsiteissueqty %] |
129 |
[% END %] |
129 |
<span>Unlimited</span> |
130 |
</td> |
130 |
[% ELSE %] |
131 |
<td>[% rule.issuelength %]</td> |
131 |
[% rule.maxonsiteissueqty %] |
132 |
<td> |
132 |
[% END %] |
133 |
[% rule.lengthunit %] |
133 |
</td> |
134 |
</td> |
134 |
<td>[% rule.issuelength %]</td> |
135 |
<td> |
135 |
<td>[% rule.lengthunit %]<td> |
136 |
[% IF ( rule.hardduedate ) %] |
136 |
<td> |
|
|
137 |
[% IF ( rule.hardduedate ) %] |
137 |
[% IF ( rule.hardduedatebefore ) %] |
138 |
[% IF ( rule.hardduedatebefore ) %] |
138 |
before [% rule.hardduedate %] |
139 |
before [% rule.hardduedate %] |
139 |
<input type="hidden" name="hardduedatecomparebackup" value="-1" /> |
140 |
<input type="hidden" name="hardduedatecomparebackup" value="-1" /> |
140 |
[% ELSIF ( rule.hardduedateexact ) %] |
141 |
[% ELSIF ( rule.hardduedateexact ) %] |
141 |
on [% rule.hardduedate %] |
142 |
on [% rule.hardduedate %] |
142 |
<input type="hidden" name="hardduedatecomparebackup" value="0" /> |
143 |
<input type="hidden" name="hardduedatecomparebackup" value="0" /> |
143 |
[% ELSIF ( rule.hardduedateafter ) %] |
144 |
[% ELSIF ( rule.hardduedateafter ) %] |
144 |
after [% rule.hardduedate %] |
145 |
after [% rule.hardduedate %] |
145 |
<input type="hidden" name="hardduedatecomparebackup" value="1" /> |
146 |
<input type="hidden" name="hardduedatecomparebackup" value="1" /> |
146 |
[% END %] |
147 |
[% END %] |
147 |
[% ELSE %] |
148 |
[% ELSE %] |
148 |
<span>None defined</span> |
149 |
<span>None defined</span> |
149 |
[% END %] |
150 |
[% END %] |
150 |
</td> |
151 |
</td> |
151 |
<td>[% rule.fine %]</td> |
152 |
<td>[% rule.fine %]</td> |
152 |
<td>[% rule.chargeperiod %]</td> |
153 |
<td>[% rule.chargeperiod %]</td> |
153 |
<td> |
154 |
<td> |
154 |
[% IF rule.chargeperiod_charge_at %] |
155 |
[% IF rule.chargeperiod_charge_at %] |
155 |
<span>Start of interval</span> |
156 |
<span>Start of interval</span> |
156 |
[% ELSE %] |
157 |
[% ELSE %] |
157 |
<span>End of interval</span> |
158 |
<span>End of interval</span> |
158 |
[% END %] |
159 |
[% END %] |
159 |
</td> |
160 |
</td> |
160 |
<td>[% rule.firstremind %]</td> |
161 |
<td>[% rule.firstremind %]</td> |
161 |
<td>[% rule.overduefinescap FILTER format("%.2f") %]</td> |
162 |
<td>[% rule.overduefinescap FILTER format("%.2f") %]</td> |
162 |
<td> |
163 |
<td> |
163 |
[% IF rule.cap_fine_to_replacement_price %] |
164 |
[% IF rule.cap_fine_to_replacement_price %] |
164 |
<input type="checkbox" checked="checked" disabled="disabled" /> |
165 |
<input type="checkbox" checked="checked" disabled="disabled" /> |
165 |
[% ELSE %] |
166 |
[% ELSE %] |
166 |
<input type="checkbox" disabled="disabled" /> |
167 |
<input type="checkbox" disabled="disabled" /> |
167 |
[% END %] |
168 |
[% END %] |
168 |
</td> |
169 |
</td> |
169 |
<td>[% rule.finedays %]</td> |
170 |
<td>[% rule.finedays %]</td> |
170 |
<td>[% rule.maxsuspensiondays %]</td> |
171 |
<td>[% rule.maxsuspensiondays %]</td> |
171 |
<td>[% rule.suspension_chargeperiod %]</td> |
172 |
<td>[% rule.suspension_chargeperiod %]</td> |
172 |
<td>[% rule.renewalsallowed %]</td> |
173 |
<td>[% rule.renewalsallowed %]</td> |
173 |
<td>[% rule.renewalperiod %]</td> |
174 |
<td>[% rule.renewalperiod %]</td> |
174 |
<td>[% rule.norenewalbefore %]</td> |
175 |
<td>[% rule.norenewalbefore %]</td> |
175 |
<td> |
176 |
<td> |
176 |
[% IF ( rule.auto_renew ) %] |
177 |
[% IF ( rule.auto_renew ) %] |
177 |
<span>Yes</span> |
178 |
<span>Yes</span> |
178 |
[% ELSE %] |
179 |
[% ELSE %] |
179 |
<span>No</span> |
180 |
<span>No</span> |
180 |
[% END %] |
181 |
[% END %] |
181 |
</td> |
182 |
</td> |
182 |
<td>[% rule.no_auto_renewal_after %]</td> |
183 |
<td>[% rule.no_auto_renewal_after %]</td> |
183 |
<td>[% rule.no_auto_renewal_after_hard_limit %]</td> |
184 |
<td>[% rule.no_auto_renewal_after_hard_limit %]</td> |
184 |
<td>[% rule.reservesallowed %]</td> |
185 |
<td>[% rule.reservesallowed %]</td> |
185 |
<td>[% rule.holds_per_record %]</td> |
186 |
<td>[% rule.holds_per_record %]</td> |
186 |
<td> |
187 |
<td> |
187 |
[% IF rule.onshelfholds == 1 %] |
188 |
[% IF rule.onshelfholds == 1 %] |
188 |
<span>Yes</span> |
189 |
<span>Yes</span> |
189 |
[% ELSIF rule.onshelfholds == 2 %] |
190 |
[% ELSIF rule.onshelfholds == 2 %] |
190 |
<span>If all unavailable</span> |
191 |
<span>If all unavailable</span> |
191 |
[% ELSE %] |
192 |
[% ELSE %] |
192 |
<span>If any unavailable</span> |
193 |
<span>If any unavailable</span> |
193 |
[% END %] |
194 |
[% END %] |
194 |
</td> |
195 |
</td> |
195 |
<td> |
196 |
<td> |
196 |
[% IF rule.opacitemholds == 'F'%] |
197 |
[% IF rule.opacitemholds == 'F'%] |
197 |
<span>Force</span> |
198 |
<span>Force</span> |
198 |
[% ELSIF rule.opacitemholds == 'Y'%] |
199 |
[% ELSIF rule.opacitemholds == 'Y'%] |
199 |
<span>Allow</span> |
200 |
<span>Allow</span> |
200 |
[% ELSE %] |
201 |
[% ELSE %] |
201 |
<span>Don't allow</span> |
202 |
<span>Don't allow</span> |
202 |
[% END %] |
203 |
[% END %] |
203 |
</td> |
204 |
</td> |
204 |
<td>[% rule.decreaseloanholds %]</td> |
205 |
<td>[% rule.decreaseloanholds %]</td> |
205 |
<td> |
206 |
<td> |
206 |
[% IF rule.article_requests == 'no' %] |
207 |
[% IF rule.article_requests == 'no' %] |
207 |
<span>No</span> |
208 |
<span>No</span> |
208 |
[% ELSIF rule.article_requests == 'yes' %] |
209 |
[% ELSIF rule.article_requests == 'yes' %] |
209 |
<span>Yes</span> |
210 |
<span>Yes</span> |
210 |
[% ELSIF rule.article_requests == 'bib_only' %] |
211 |
[% ELSIF rule.article_requests == 'bib_only' %] |
211 |
<span>Record only</span> |
212 |
<span>Record only</span> |
212 |
[% ELSIF rule.article_requests == 'item_only' %] |
213 |
[% ELSIF rule.article_requests == 'item_only' %] |
213 |
<span>Item only</span> |
214 |
<span>Item only</span> |
214 |
[% END %] |
215 |
[% END %] |
215 |
</td> |
216 |
</td> |
216 |
<td>[% rule.rentaldiscount %]</td> |
217 |
<td>[% rule.rentaldiscount %]</td> |
217 |
<td class="actions"> |
218 |
<td class="actions"> |
218 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
219 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a> |
219 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
220 |
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
220 |
</td> |
221 |
</td> |
221 |
</tr> |
222 |
</tr> |
222 |
[% END %] |
223 |
[% END %] |
223 |
<tr id="edit_row"> |
224 |
<tr id="edit_row"> |
224 |
<td> |
225 |
<td> |
225 |
<select name="categorycode" id="categorycode"> |
226 |
<select name="categorycode" id="categorycode"> |
Lines 344-350
Link Here
|
344 |
<th>No renewal before</th> |
345 |
<th>No renewal before</th> |
345 |
<th>Automatic renewal</th> |
346 |
<th>Automatic renewal</th> |
346 |
<th>No automatic renewal after</th> |
347 |
<th>No automatic renewal after</th> |
347 |
<th>No automatic renewal after (hard limit)</th> |
348 |
<th>No automatic renewal after (hard limit)</th> |
348 |
<th>Holds allowed (count)</th> |
349 |
<th>Holds allowed (count)</th> |
349 |
<th>Holds per record (count)</th> |
350 |
<th>Holds per record (count)</th> |
350 |
<th>On shelf holds allowed</th> |
351 |
<th>On shelf holds allowed</th> |
351 |
- |
|
|