Lines 1-44
Link Here
|
1 |
[% USE raw %] |
1 |
[%- USE raw %] |
2 |
[% USE Asset %] |
2 |
[%- USE Asset %] |
3 |
[% USE Koha %] |
3 |
[%- USE Koha %] |
4 |
[% USE KohaDates %] |
4 |
[%- USE KohaDates %] |
5 |
[% USE Branches %] |
5 |
[%- USE Branches %] |
6 |
[% USE Categories %] |
6 |
[%- USE Categories %] |
7 |
[% USE ItemTypes %] |
7 |
[%- USE ItemTypes %] |
8 |
[% USE CirculationRules %] |
8 |
[%- USE CirculationRules %] |
9 |
[% USE Price %] |
9 |
[%- USE Price %] |
10 |
[% PROCESS 'i18n.inc' %] |
10 |
[% PROCESS 'i18n.inc' %] |
11 |
[% SET footerjs = 1 %] |
11 |
[%- SET footerjs = 1 %] |
12 |
|
12 |
|
13 |
[% SET branchcode = humanbranch || undef %] |
13 |
[%- SET branchcode = humanbranch || undef %] |
14 |
|
14 |
|
15 |
[% SET categorycodes = used_categorycodes %] |
15 |
[%- SET categorycodes = used_categorycodes %] |
16 |
[% SET itemtypes = used_itemtypes %] |
16 |
[%- SET itemtypes = used_itemtypes %] |
17 |
|
17 |
|
18 |
[% INCLUDE 'doc-head-open.inc' %] |
18 |
[% INCLUDE 'doc-head-open.inc' %] |
19 |
<title>[% FILTER collapse %] |
19 |
<title>[% FILTER collapse %] |
20 |
[% t("Circulation and fine rules") | html %] › |
20 |
[% t("Circulation and fine rules") | html %] › |
21 |
[% t("Administration") | html %] › |
21 |
[% t("Administration") | html %] › |
22 |
[% t("Koha") | html %] |
22 |
[% t("Koha") | html %] |
23 |
[% END %]</title> |
23 |
[%- END %]</title> |
24 |
[% INCLUDE 'doc-head-close.inc' %] |
24 |
[% INCLUDE 'doc-head-close.inc' %] |
25 |
</head> |
25 |
</head> |
26 |
|
26 |
|
27 |
<body id="admin_smart-rules" class="admin"> |
27 |
<body id="admin_smart-rules" class="admin"> |
28 |
[% WRAPPER 'header.inc' %] |
28 |
[% WRAPPER 'header.inc' %] |
29 |
[% INCLUDE 'prefs-admin-search.inc' %] |
29 |
[% INCLUDE 'prefs-admin-search.inc' %] |
30 |
[% END %] |
30 |
[%- END %] |
31 |
|
31 |
|
32 |
[% WRAPPER 'sub-header.inc' %] |
32 |
[% WRAPPER 'sub-header.inc' %] |
33 |
[% WRAPPER breadcrumbs %] |
33 |
[% WRAPPER breadcrumbs %] |
34 |
[% WRAPPER breadcrumb_item %] |
34 |
[% WRAPPER breadcrumb_item %] |
35 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
35 |
<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> |
36 |
[% END %] |
36 |
[%- END %] |
37 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
37 |
[% WRAPPER breadcrumb_item bc_active= 1 %] |
38 |
<span>Circulation and fine rules</span> |
38 |
<span>Circulation and fine rules</span> |
39 |
[% END %] |
39 |
[%- END %] |
40 |
[% END #/ WRAPPER breadcrumbs %] |
40 |
[%- END #/ WRAPPER breadcrumbs %] |
41 |
[% END #/ WRAPPER sub-header.inc %] |
41 |
[%- END #/ WRAPPER sub-header.inc %] |
42 |
|
42 |
|
43 |
<div class="main container-fluid"> |
43 |
<div class="main container-fluid"> |
44 |
<div class="row"> |
44 |
<div class="row"> |
Lines 46-56
Link Here
|
46 |
<main> |
46 |
<main> |
47 |
[% INCLUDE 'messages.inc' %] |
47 |
[% INCLUDE 'messages.inc' %] |
48 |
<h1 class="parameters"> |
48 |
<h1 class="parameters"> |
49 |
[% IF humanbranch %] |
49 |
[%- IF humanbranch %] |
50 |
Defining circulation and fine rules for "[% Branches.GetName( humanbranch ) | html %]" |
50 |
Defining circulation and fine rules for "[% Branches.GetName( humanbranch ) | html %]" |
51 |
[% ELSE %] |
51 |
[%- ELSE %] |
52 |
Defining circulation and fine rules for all libraries |
52 |
Defining circulation and fine rules for all libraries |
53 |
[% END %] |
53 |
[%- END %] |
54 |
</h1> |
54 |
</h1> |
55 |
|
55 |
|
56 |
<div class="page-section bg-info"> |
56 |
<div class="page-section bg-info"> |
Lines 82-88
Link Here
|
82 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => current_branch, unfiltered => 1 ) %] |
82 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => current_branch, unfiltered => 1 ) %] |
83 |
</select> |
83 |
</select> |
84 |
</form> |
84 |
</form> |
85 |
[% IF ( definedbranch ) %] |
85 |
[%- IF ( definedbranch ) %] |
86 |
<form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"> |
86 |
<form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"> |
87 |
[% INCLUDE 'csrf-token.inc' %] |
87 |
[% INCLUDE 'csrf-token.inc' %] |
88 |
<label for="tobranch"><strong>Clone these rules to:</strong></label> |
88 |
<label for="tobranch"><strong>Clone these rules to:</strong></label> |
Lines 93-100
Link Here
|
93 |
<input type="hidden" name="op" value="cud-clone" /> |
93 |
<input type="hidden" name="op" value="cud-clone" /> |
94 |
<input type="submit" id="clone_rules" class="btn btn-primary" value="Clone" /> |
94 |
<input type="submit" id="clone_rules" class="btn btn-primary" value="Clone" /> |
95 |
</form> |
95 |
</form> |
96 |
[% END %] |
96 |
[%- END %] |
97 |
[% END %] |
97 |
[%- END %] |
98 |
</div> |
98 |
</div> |
99 |
|
99 |
|
100 |
<div class="page-section"> |
100 |
<div class="page-section"> |
Lines 128-136
Link Here
|
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>No automatic renewal before</th> |
136 |
<th>No automatic renewal before</th> |
Lines 143-260
Link Here
|
143 |
<th>On shelf holds allowed</th> |
143 |
<th>On shelf holds allowed</th> |
144 |
<th>OPAC item level holds</th> |
144 |
<th>OPAC item level holds</th> |
145 |
<th>Holds pickup period (day)</th> |
145 |
<th>Holds pickup period (day)</th> |
146 |
[% IF Koha.Preference('ArticleRequests') %] |
146 |
[%- IF Koha.Preference('ArticleRequests') %] |
147 |
<th>Article requests</th> |
147 |
<th>Article requests</th> |
148 |
[% END %] |
148 |
[%- END %] |
149 |
<th>Rental discount (%)</th> |
149 |
<th>Rental discount (%)</th> |
150 |
[% IF Koha.Preference('UseRecalls') %] |
150 |
[%- IF Koha.Preference('UseRecalls') %] |
151 |
<th>Recalls allowed (total)</th> |
151 |
<th>Recalls allowed (total)</th> |
152 |
<th>Recalls per record (count)</th> |
152 |
<th>Recalls per record (count)</th> |
153 |
<th>On shelf recalls allowed</th> |
153 |
<th>On shelf recalls allowed</th> |
154 |
<th>Recall due date interval (day)</th> |
154 |
<th>Recall due date interval (day)</th> |
155 |
<th>Recall overdue fine amount</th> |
155 |
<th>Recall overdue fine amount</th> |
156 |
<th>Recall pickup period (day)</th> |
156 |
<th>Recall pickup period (day)</th> |
157 |
[% END %] |
157 |
[%- END %] |
158 |
<th class="noExport">Actions</th> |
158 |
<th class="noExport">Actions</th> |
159 |
</tr> |
159 |
</tr> |
160 |
</thead> |
160 |
</thead> |
161 |
<tbody> |
161 |
<tbody> |
162 |
[% SET row_count = 0 %] |
162 |
[%- SET row_count = 0 %] |
163 |
[% FOREACH c IN categorycodes %] |
163 |
[% FOREACH c IN categorycodes %] |
164 |
[% SET c = '' UNLESS c.defined %] |
164 |
[%- SET c = '' UNLESS c.defined %] |
165 |
[% FOREACH i IN itemtypes %] |
165 |
[% FOREACH i IN itemtypes %] |
166 |
[% SET i = '' UNLESS i.defined %] |
166 |
[%- SET i = '' UNLESS i.defined %] |
167 |
[% SET note = all_rules.$c.$i.note %] |
167 |
[%- SET note = all_rules.$c.$i.note %] |
168 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
168 |
[%- SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
169 |
[% SET maxonsiteissueqty = all_rules.$c.$i.maxonsiteissueqty %] |
169 |
[%- SET maxonsiteissueqty = all_rules.$c.$i.maxonsiteissueqty %] |
170 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
170 |
[%- SET issuelength = all_rules.$c.$i.issuelength %] |
171 |
[% SET daysmode = all_rules.$c.$i.daysmode %] |
171 |
[%- SET daysmode = all_rules.$c.$i.daysmode %] |
172 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
172 |
[%- SET lengthunit = all_rules.$c.$i.lengthunit %] |
173 |
[% SET hardduedate = all_rules.$c.$i.hardduedate %] |
173 |
[%- SET hardduedate = all_rules.$c.$i.hardduedate %] |
174 |
[% SET hardduedatecompare = all_rules.$c.$i.hardduedatecompare %] |
174 |
[%- SET hardduedatecompare = all_rules.$c.$i.hardduedatecompare %] |
175 |
[% SET fine = all_rules.$c.$i.fine %] |
175 |
[%- SET fine = all_rules.$c.$i.fine %] |
176 |
[% SET chargeperiod = all_rules.$c.$i.chargeperiod %] |
176 |
[%- SET chargeperiod = all_rules.$c.$i.chargeperiod %] |
177 |
[% SET chargeperiod_charge_at = all_rules.$c.$i.chargeperiod_charge_at %] |
177 |
[%- SET chargeperiod_charge_at = all_rules.$c.$i.chargeperiod_charge_at %] |
178 |
[% SET firstremind = all_rules.$c.$i.firstremind %] |
178 |
[%- SET firstremind = all_rules.$c.$i.firstremind %] |
179 |
[% SET overduefinescap = all_rules.$c.$i.overduefinescap %] |
179 |
[%- SET overduefinescap = all_rules.$c.$i.overduefinescap %] |
180 |
[% SET cap_fine_to_replacement_price = all_rules.$c.$i.cap_fine_to_replacement_price %] |
180 |
[%- SET cap_fine_to_replacement_price = all_rules.$c.$i.cap_fine_to_replacement_price %] |
181 |
[% SET finedays = all_rules.$c.$i.finedays %] |
181 |
[%- SET finedays = all_rules.$c.$i.finedays %] |
182 |
[% SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %] |
182 |
[%- SET maxsuspensiondays = all_rules.$c.$i.maxsuspensiondays %] |
183 |
[% SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %] |
183 |
[%- SET suspension_chargeperiod = all_rules.$c.$i.suspension_chargeperiod %] |
184 |
[% SET renewalsallowed = all_rules.$c.$i.renewalsallowed %] |
184 |
[%- SET renewalsallowed = all_rules.$c.$i.renewalsallowed %] |
185 |
[% SET unseenrenewalsallowed = all_rules.$c.$i.unseen_renewals_allowed %] |
185 |
[%- SET unseenrenewalsallowed = all_rules.$c.$i.unseen_renewals_allowed %] |
186 |
[% SET renewalperiod = all_rules.$c.$i.renewalperiod %] |
186 |
[%- SET renewalperiod = all_rules.$c.$i.renewalperiod %] |
187 |
[% SET norenewalbefore = all_rules.$c.$i.norenewalbefore %] |
187 |
[%- SET norenewalbefore = all_rules.$c.$i.norenewalbefore %] |
188 |
[% SET noautorenewalbefore = all_rules.$c.$i.noautorenewalbefore %] |
188 |
[%- SET noautorenewalbefore = all_rules.$c.$i.noautorenewalbefore %] |
189 |
[% SET auto_renew = all_rules.$c.$i.auto_renew %] |
189 |
[%- SET auto_renew = all_rules.$c.$i.auto_renew %] |
190 |
[% SET no_auto_renewal_after = all_rules.$c.$i.no_auto_renewal_after %] |
190 |
[%- SET no_auto_renewal_after = all_rules.$c.$i.no_auto_renewal_after %] |
191 |
[% SET no_auto_renewal_after_hard_limit = all_rules.$c.$i.no_auto_renewal_after_hard_limit %] |
191 |
[%- SET no_auto_renewal_after_hard_limit = all_rules.$c.$i.no_auto_renewal_after_hard_limit %] |
192 |
[% SET reservesallowed = all_rules.$c.$i.reservesallowed %] |
192 |
[%- SET reservesallowed = all_rules.$c.$i.reservesallowed %] |
193 |
[% SET holds_per_day = all_rules.$c.$i.holds_per_day %] |
193 |
[%- SET holds_per_day = all_rules.$c.$i.holds_per_day %] |
194 |
[% SET holds_per_record = all_rules.$c.$i.holds_per_record %] |
194 |
[%- SET holds_per_record = all_rules.$c.$i.holds_per_record %] |
195 |
[% SET onshelfholds = all_rules.$c.$i.onshelfholds %] |
195 |
[%- SET onshelfholds = all_rules.$c.$i.onshelfholds %] |
196 |
[% SET opacitemholds = all_rules.$c.$i.opacitemholds %] |
196 |
[%- SET opacitemholds = all_rules.$c.$i.opacitemholds %] |
197 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
197 |
[%- SET article_requests = all_rules.$c.$i.article_requests %] |
198 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
198 |
[%- SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
199 |
[% SET decreaseloanholds = all_rules.$c.$i.decreaseloanholds %] |
199 |
[%- SET decreaseloanholds = all_rules.$c.$i.decreaseloanholds %] |
200 |
[% SET recalls_allowed = all_rules.$c.$i.recalls_allowed %] |
200 |
[%- SET recalls_allowed = all_rules.$c.$i.recalls_allowed %] |
201 |
[% SET recalls_per_record = all_rules.$c.$i.recalls_per_record %] |
201 |
[%- SET recalls_per_record = all_rules.$c.$i.recalls_per_record %] |
202 |
[% SET on_shelf_recalls = all_rules.$c.$i.on_shelf_recalls %] |
202 |
[%- SET on_shelf_recalls = all_rules.$c.$i.on_shelf_recalls %] |
203 |
[% SET recall_due_date_interval = all_rules.$c.$i.recall_due_date_interval %] |
203 |
[%- SET recall_due_date_interval = all_rules.$c.$i.recall_due_date_interval %] |
204 |
[% SET recall_overdue_fine = all_rules.$c.$i.recall_overdue_fine %] |
204 |
[%- SET recall_overdue_fine = all_rules.$c.$i.recall_overdue_fine %] |
205 |
[% SET recall_shelf_time = all_rules.$c.$i.recall_shelf_time %] |
205 |
[%- SET recall_shelf_time = all_rules.$c.$i.recall_shelf_time %] |
206 |
[% SET holds_pickup_period = all_rules.$c.$i.holds_pickup_period %] |
206 |
[%- SET holds_pickup_period = all_rules.$c.$i.holds_pickup_period %] |
207 |
|
207 |
|
208 |
[% 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 || noautorenewalbefore || 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 || holds_pickup_period %] |
208 |
[%- 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 || noautorenewalbefore || 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 || holds_pickup_period %] |
209 |
[% IF show_rule %] |
209 |
[%- IF show_rule %] |
210 |
[% SET row_count = row_count + 1 %] |
210 |
[%- SET row_count = row_count + 1 %] |
211 |
<tr row_countd="row_[% row_count | html %]"> |
211 |
<tr row_countd="row_[% row_count | html %]"> |
212 |
<td>[% IF ( c == undef ) %] |
212 |
<td>[%- IF ( c == undef ) %] |
213 |
1 |
213 |
1 |
214 |
[% ELSE %] |
214 |
[%- ELSE %] |
215 |
0 |
215 |
0 |
216 |
[% END %]</td> |
216 |
[%- END %]</td> |
217 |
<td data-code="[% c | html %]"> |
217 |
<td data-code="[% c | html %]"> |
218 |
[% IF c == undef %] |
218 |
[%- IF c == undef %] |
219 |
<em>All</em> |
219 |
<em>All</em> |
220 |
[% ELSE %] |
220 |
[%- ELSE %] |
221 |
[% Categories.GetName(c) | html %] |
221 |
[% Categories.GetName(c) | html %] |
222 |
[% END %] |
222 |
[%- END %] |
223 |
</td> |
223 |
</td> |
224 |
<td>[% IF ( i == undef ) %] |
224 |
<td>[%- IF ( i == undef ) %] |
225 |
1 |
225 |
1 |
226 |
[% ELSE %] |
226 |
[%- ELSE %] |
227 |
0 |
227 |
0 |
228 |
[% END %]</td> |
228 |
[%- END %]</td> |
229 |
<td data-code="[% i | html %]"> |
229 |
<td data-code="[% i | html %]"> |
230 |
[% IF i == undef %] |
230 |
[%- IF i == undef %] |
231 |
<em>All</em> |
231 |
<em>All</em> |
232 |
[% ELSE %] |
232 |
[%- ELSE %] |
233 |
[% ItemTypes.GetDescription(i,1) | html %] |
233 |
[% ItemTypes.GetDescription(i,1) | html %] |
234 |
[% END %] |
234 |
[%- END %] |
235 |
</td> |
235 |
</td> |
236 |
<td class="actions"> |
236 |
<td class="actions"> |
237 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
237 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
238 |
<a href="#" class="delete btn btn-default btn-xs" data-itemtype="[% i || '*' | html %]" data-categorycode="[% c || '*' | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
238 |
<a href="#" class="delete btn btn-default btn-xs" data-itemtype="[% i || '*' | html %]" data-categorycode="[% c || '*' | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
239 |
</td> |
239 |
</td> |
240 |
<td> |
240 |
<td> |
241 |
[% IF note.defined && note != '' %] |
241 |
[%- IF note.defined && note != '' %] |
242 |
<a id="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
242 |
<a id="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
243 |
[% ELSE %]<span> </span>[% END %] |
243 |
[%- ELSE %]<span> </span>[%- END %] |
244 |
</td> |
244 |
</td> |
245 |
<td> |
245 |
<td> |
246 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
246 |
[%- IF maxissueqty.defined && maxissueqty != '' %] |
247 |
[% maxissueqty | html %] |
247 |
[% maxissueqty | html %] |
248 |
[% ELSE %] |
248 |
[%- ELSE %] |
249 |
<span>Unlimited</span> |
249 |
<span>Unlimited</span> |
250 |
[% END %] |
250 |
[%- END %] |
251 |
</td> |
251 |
</td> |
252 |
<td> |
252 |
<td> |
253 |
[% IF maxonsiteissueqty.defined && maxonsiteissueqty != '' %] |
253 |
[%- IF maxonsiteissueqty.defined && maxonsiteissueqty != '' %] |
254 |
[% maxonsiteissueqty | html %] |
254 |
[% maxonsiteissueqty | html %] |
255 |
[% ELSE %] |
255 |
[%- ELSE %] |
256 |
<span>Unlimited</span> |
256 |
<span>Unlimited</span> |
257 |
[% END %] |
257 |
[%- END %] |
258 |
</td> |
258 |
</td> |
259 |
<td>[% issuelength | html %]</td> |
259 |
<td>[% issuelength | html %]</td> |
260 |
<td data-code="[% daysmode | html %]"> |
260 |
<td data-code="[% daysmode | html %]"> |
Lines 264-413
Link Here
|
264 |
[% CASE 'Days' %]<span title="Ignore the calendar">Ignore the calendar</span> |
264 |
[% CASE 'Days' %]<span title="Ignore the calendar">Ignore the calendar</span> |
265 |
[% CASE 'Dayweek' %]<span title="Use the calendar to push the due date to the next open matching weekday for weekly loan periods, or the next open day otherwise">Same week day</span> |
265 |
[% CASE 'Dayweek' %]<span title="Use the calendar to push the due date to the next open matching weekday for weekly loan periods, or the next open day otherwise">Same week day</span> |
266 |
[% CASE %]<span title="Use the system preference 'useDaysMode' as a default value">Default</span> |
266 |
[% CASE %]<span title="Use the system preference 'useDaysMode' as a default value">Default</span> |
267 |
[% END %] |
267 |
[%- END %] |
268 |
</td> |
268 |
</td> |
269 |
<td data-code="[% lengthunit | html %]"> |
269 |
<td data-code="[% lengthunit | html %]"> |
270 |
[% IF ( lengthunit == 'days' ) %] |
270 |
[%- IF ( lengthunit == 'days' ) %] |
271 |
<span>Days</span> |
271 |
<span>Days</span> |
272 |
[% ELSIF ( lengthunit == 'hours') %] |
272 |
[%- ELSIF ( lengthunit == 'hours') %] |
273 |
<span>Hours</span> |
273 |
<span>Hours</span> |
274 |
[% ELSE %] |
274 |
[%- ELSE %] |
275 |
<span>Undefined</span> |
275 |
<span>Undefined</span> |
276 |
[% END %] |
276 |
[%- END %] |
277 |
</td> |
277 |
</td> |
278 |
<td data-code="[% hardduedatecompare | html %]" data-duedate="[% hardduedate | $KohaDates %]"> |
278 |
<td data-code="[% hardduedatecompare | html %]" data-duedate="[% hardduedate | $KohaDates %]"> |
279 |
[% IF ( hardduedate ) %] |
279 |
[%- IF ( hardduedate ) %] |
280 |
[% IF ( hardduedatecompare == '-1' ) %] |
280 |
[%- IF ( hardduedatecompare == '-1' ) %] |
281 |
before [% hardduedate | $KohaDates %] |
281 |
before [% hardduedate | $KohaDates %] |
282 |
[% ELSIF ( hardduedatecompare == '0' ) %] |
282 |
[%- ELSIF ( hardduedatecompare == '0' ) %] |
283 |
on [% hardduedate | $KohaDates %] |
283 |
on [% hardduedate | $KohaDates %] |
284 |
[% ELSIF ( hardduedatecompare == '1' ) %] |
284 |
[%- ELSIF ( hardduedatecompare == '1' ) %] |
285 |
after [% hardduedate | $KohaDates %] |
285 |
after [% hardduedate | $KohaDates %] |
286 |
[% END %] |
286 |
[%- END %] |
287 |
[% ELSE %] |
287 |
[%- ELSE %] |
288 |
<span>None defined</span> |
288 |
<span>None defined</span> |
289 |
[% END %] |
289 |
[%- END %] |
290 |
</td> |
290 |
</td> |
291 |
<td>[% decreaseloanholds | html %]</td> |
291 |
<td>[% decreaseloanholds | html %]</td> |
292 |
<td>[% fine | $Price %]</td> |
292 |
<td>[% fine | $Price %]</td> |
293 |
<td>[% chargeperiod | html %]</td> |
293 |
<td>[% chargeperiod | html %]</td> |
294 |
<td>[% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td> |
294 |
<td>[%- IF chargeperiod_charge_at %]Start of interval[%- ELSE %]End of interval[%- END %]</td> |
295 |
<td>[% firstremind | html %]</td> |
295 |
<td>[% firstremind | html %]</td> |
296 |
<td>[% IF overduefinescap %][% overduefinescap | $Price %][% ELSE %][% END %]</td> |
296 |
<td>[%- IF overduefinescap %][% overduefinescap | $Price %][%- ELSE %][%- END %]</td> |
297 |
<td> |
297 |
<td> |
298 |
[% IF cap_fine_to_replacement_price %] |
298 |
[%- IF cap_fine_to_replacement_price %] |
299 |
<input type="checkbox" checked="checked" disabled="disabled" /> |
299 |
<input type="checkbox" checked="checked" disabled="disabled" /> |
300 |
[% ELSE %] |
300 |
[%- ELSE %] |
301 |
<input type="checkbox" disabled="disabled" /> |
301 |
<input type="checkbox" disabled="disabled" /> |
302 |
[% END %] |
302 |
[%- END %] |
303 |
</td> |
303 |
</td> |
304 |
<td>[% finedays | html %]</td> |
304 |
<td>[% finedays | html %]</td> |
305 |
<td>[% maxsuspensiondays | html %]</td> |
305 |
<td>[% maxsuspensiondays | html %]</td> |
306 |
<td>[% suspension_chargeperiod | html %]</td> |
306 |
<td>[% suspension_chargeperiod | html %]</td> |
307 |
<td>[% renewalsallowed | html %]</td> |
307 |
<td>[% renewalsallowed | html %]</td> |
308 |
[% IF Koha.Preference('UnseenRenewals') %] |
308 |
[%- IF Koha.Preference('UnseenRenewals') %] |
309 |
<td> |
309 |
<td> |
310 |
[% IF unseenrenewalsallowed.defined && unseenrenewalsallowed != '' %] |
310 |
[%- IF unseenrenewalsallowed.defined && unseenrenewalsallowed != '' %] |
311 |
[% unseenrenewalsallowed | html %] |
311 |
[% unseenrenewalsallowed | html %] |
312 |
[% ELSE %] |
312 |
[%- ELSE %] |
313 |
<span>Unlimited</span> |
313 |
<span>Unlimited</span> |
314 |
[% END %] |
314 |
[%- END %] |
315 |
</td> |
315 |
</td> |
316 |
[% END %] |
316 |
[%- END %] |
317 |
<td>[% renewalperiod | html %]</td> |
317 |
<td>[% renewalperiod | html %]</td> |
318 |
<td>[% norenewalbefore | html %]</td> |
318 |
<td>[% norenewalbefore | html %]</td> |
319 |
<td>[% noautorenewalbefore | html %]</td> |
319 |
<td>[% noautorenewalbefore | html %]</td> |
320 |
<td data-code="[%- IF auto_renew -%]yes[%- ELSE -%]no[%- END -%]"> |
320 |
<td data-code="[%- IF auto_renew -%]yes[%- ELSE -%]no[%- END -%]"> |
321 |
[% IF auto_renew %] |
321 |
[%- IF auto_renew %] |
322 |
<span>Yes</span> |
322 |
<span>Yes</span> |
323 |
[% ELSE %] |
323 |
[%- ELSE %] |
324 |
<span>No</span> |
324 |
<span>No</span> |
325 |
[% END %] |
325 |
[%- END %] |
326 |
</td> |
326 |
</td> |
327 |
<td>[% no_auto_renewal_after | html %]</td> |
327 |
<td>[% no_auto_renewal_after | html %]</td> |
328 |
<td>[% no_auto_renewal_after_hard_limit | $KohaDates %]</td> |
328 |
<td>[% no_auto_renewal_after_hard_limit | $KohaDates %]</td> |
329 |
<td> |
329 |
<td> |
330 |
[% IF reservesallowed.defined && reservesallowed != '' %] |
330 |
[%- IF reservesallowed.defined && reservesallowed != '' %] |
331 |
[% reservesallowed | html %] |
331 |
[% reservesallowed | html %] |
332 |
[% ELSE %] |
332 |
[%- ELSE %] |
333 |
<span>Unlimited</span> |
333 |
<span>Unlimited</span> |
334 |
[% END %] |
334 |
[%- END %] |
335 |
</td> |
335 |
</td> |
336 |
<td> |
336 |
<td> |
337 |
[% IF holds_per_day.defined && holds_per_day != '' %] |
337 |
[%- IF holds_per_day.defined && holds_per_day != '' %] |
338 |
[% holds_per_day | html %] |
338 |
[% holds_per_day | html %] |
339 |
[% ELSE %] |
339 |
[%- ELSE %] |
340 |
<span>Unlimited</span> |
340 |
<span>Unlimited</span> |
341 |
[% END %] |
341 |
[%- END %] |
342 |
</td> |
342 |
</td> |
343 |
<td> |
343 |
<td> |
344 |
[% IF holds_per_record.defined && holds_per_record != '' %] |
344 |
[%- IF holds_per_record.defined && holds_per_record != '' %] |
345 |
[% holds_per_record | html %] |
345 |
[% holds_per_record | html %] |
346 |
[% ELSE %] |
346 |
[%- ELSE %] |
347 |
<span>Unlimited</span> |
347 |
<span>Unlimited</span> |
348 |
[% END %] |
348 |
[%- END %] |
349 |
</td> |
349 |
</td> |
350 |
<td data-code="[% onshelfholds | html %]"> |
350 |
<td data-code="[% onshelfholds | html %]"> |
351 |
[% IF onshelfholds == 1 %] |
351 |
[%- IF onshelfholds == 1 %] |
352 |
<span>Yes</span> |
352 |
<span>Yes</span> |
353 |
[% ELSIF onshelfholds == 2 %] |
353 |
[%- ELSIF onshelfholds == 2 %] |
354 |
<span>If all unavailable</span> |
354 |
<span>If all unavailable</span> |
355 |
[% ELSE %] |
355 |
[%- ELSE %] |
356 |
<span>If any unavailable</span> |
356 |
<span>If any unavailable</span> |
357 |
[% END %] |
357 |
[%- END %] |
358 |
</td> |
358 |
</td> |
359 |
<td data-code="[% opacitemholds | html %]"> |
359 |
<td data-code="[% opacitemholds | html %]"> |
360 |
[% IF opacitemholds == 'F'%] |
360 |
[%- IF opacitemholds == 'F'%] |
361 |
<span>Force</span> |
361 |
<span>Force</span> |
362 |
[% ELSIF opacitemholds == 'Y'%] |
362 |
[%- ELSIF opacitemholds == 'Y'%] |
363 |
<span>Allow</span> |
363 |
<span>Allow</span> |
364 |
[% ELSE %] |
364 |
[%- ELSE %] |
365 |
<span>Don't allow</span> |
365 |
<span>Don't allow</span> |
366 |
[% END %] |
366 |
[%- END %] |
367 |
</td> |
367 |
</td> |
368 |
<td> |
368 |
<td> |
369 |
[% IF holds_pickup_period == '' %] |
369 |
[%- IF holds_pickup_period == '' %] |
370 |
<span title="Will use ReservesMaxPickupDelay system preference value ([% Koha.Preference('ReservesMaxPickupDelay') | html %])">Default</span> |
370 |
<span title="Will use ReservesMaxPickupDelay system preference value ([% Koha.Preference('ReservesMaxPickupDelay') | html %])">Default</span> |
371 |
[% ELSE %] |
371 |
[%- ELSE %] |
372 |
[% holds_pickup_period | html %] |
372 |
[% holds_pickup_period | html %] |
373 |
[% END %] |
373 |
[%- END %] |
374 |
</td> |
374 |
</td> |
375 |
[% IF Koha.Preference('ArticleRequests') %] |
375 |
[%- IF Koha.Preference('ArticleRequests') %] |
376 |
<td data-code="[% article_requests | html %]"> |
376 |
<td data-code="[% article_requests | html %]"> |
377 |
[% IF article_requests == 'no' %] |
377 |
[%- IF article_requests == 'no' %] |
378 |
<span>No</span> |
378 |
<span>No</span> |
379 |
[% ELSIF article_requests == 'yes' %] |
379 |
[%- ELSIF article_requests == 'yes' %] |
380 |
<span>Yes</span> |
380 |
<span>Yes</span> |
381 |
[% ELSIF article_requests == 'bib_only' %] |
381 |
[%- ELSIF article_requests == 'bib_only' %] |
382 |
<span>Record only</span> |
382 |
<span>Record only</span> |
383 |
[% ELSIF article_requests == 'item_only' %] |
383 |
[%- ELSIF article_requests == 'item_only' %] |
384 |
<span>Item only</span> |
384 |
<span>Item only</span> |
385 |
[% END %] |
385 |
[%- END %] |
386 |
</td> |
386 |
</td> |
387 |
[% END %] |
387 |
[%- END %] |
388 |
<td>[% rentaldiscount | html %]</td> |
388 |
<td>[% rentaldiscount | html %]</td> |
389 |
[% IF Koha.Preference('UseRecalls') %] |
389 |
[%- IF Koha.Preference('UseRecalls') %] |
390 |
<td>[% recalls_allowed | html %]</td> |
390 |
<td>[% recalls_allowed | html %]</td> |
391 |
<td>[% recalls_per_record | html %]</td> |
391 |
<td>[% recalls_per_record | html %]</td> |
392 |
<td data-code="[% on_shelf_recalls | html %]"> |
392 |
<td data-code="[% on_shelf_recalls | html %]"> |
393 |
[% IF on_shelf_recalls == 'all' %] |
393 |
[%- IF on_shelf_recalls == 'all' %] |
394 |
<span>If all unavailable</span> |
394 |
<span>If all unavailable</span> |
395 |
[% ELSE %] |
395 |
[%- ELSE %] |
396 |
<span>If any unavailable</span> |
396 |
<span>If any unavailable</span> |
397 |
[% END %] |
397 |
[%- END %] |
398 |
</td> |
398 |
</td> |
399 |
<td>[% recall_due_date_interval | html %]</td> |
399 |
<td>[% recall_due_date_interval | html %]</td> |
400 |
<td>[% recall_overdue_fine | $Price %]</td> |
400 |
<td>[% recall_overdue_fine | $Price %]</td> |
401 |
<td>[% recall_shelf_time | html %]</td> |
401 |
<td>[% recall_shelf_time | html %]</td> |
402 |
[% END %] |
402 |
[%- END %] |
403 |
<td class="actions"> |
403 |
<td class="actions"> |
404 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
404 |
<a href="#" class="editrule btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> |
405 |
<a href="#" class="delete btn btn-default btn-xs" data-itemtype="[% i || '*' | html %]" data-categorycode="[% c || '*' | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
405 |
<a href="#" class="delete btn btn-default btn-xs" data-itemtype="[% i || '*' | html %]" data-categorycode="[% c || '*' | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
406 |
</td> |
406 |
</td> |
407 |
</tr> |
407 |
</tr> |
408 |
[% END %] |
408 |
[%- END %] |
409 |
[% END %] |
409 |
[%- END %] |
410 |
[% END %] |
410 |
[%- END %] |
411 |
<tr class="noExport" id="edit_row"> |
411 |
<tr class="noExport" id="edit_row"> |
412 |
<td>2</td> |
412 |
<td>2</td> |
413 |
<td> |
413 |
<td> |
Lines 415-421
Link Here
|
415 |
<option value="*">All</option> |
415 |
<option value="*">All</option> |
416 |
[% FOREACH patron_category IN patron_categories%] |
416 |
[% FOREACH patron_category IN patron_categories%] |
417 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
417 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
418 |
[% END %] |
418 |
[%- END %] |
419 |
</select> |
419 |
</select> |
420 |
</td> |
420 |
</td> |
421 |
<td>0</td> |
421 |
<td>0</td> |
Lines 424-441
Link Here
|
424 |
<option value="*">All</option> |
424 |
<option value="*">All</option> |
425 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
425 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
426 |
[% NEXT IF itemtypeloo.parent_type %] |
426 |
[% NEXT IF itemtypeloo.parent_type %] |
427 |
[% SET children = itemtypeloo.children_with_localization %] |
427 |
[%- SET children = itemtypeloo.children_with_localization %] |
428 |
[% IF children.count %] |
428 |
[%- IF children.count %] |
429 |
<optgroup label="[% itemtypeloo.translated_description | html %]"> |
429 |
<optgroup label="[% itemtypeloo.translated_description | html %]"> |
430 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %] (All)</option> |
430 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %] (All)</option> |
431 |
[% FOREACH child IN children %] |
431 |
[% FOREACH child IN children %] |
432 |
<option value="[% child.itemtype | html %]">[% child.translated_description | html %]</option> |
432 |
<option value="[% child.itemtype | html %]">[% child.translated_description | html %]</option> |
433 |
[% END %] |
433 |
[%- END %] |
434 |
</optgroup> |
434 |
</optgroup> |
435 |
[% ELSE %] |
435 |
[%- ELSE %] |
436 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %]</option> |
436 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %]</option> |
437 |
[% END %] |
437 |
[%- END %] |
438 |
[% END %] |
438 |
[%- END %] |
439 |
</select> |
439 |
</select> |
440 |
</td> |
440 |
</td> |
441 |
<td class="actions"> |
441 |
<td class="actions"> |
Lines 487-495
Link Here
|
487 |
<td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td> |
487 |
<td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td> |
488 |
<td><input type="text" name="suspension_chargeperiod" id="suspension_chargeperiod" size="3" /> </td> |
488 |
<td><input type="text" name="suspension_chargeperiod" id="suspension_chargeperiod" size="3" /> </td> |
489 |
<td><input type="text" name="renewalsallowed" id="renewalsallowed" size="2" /></td> |
489 |
<td><input type="text" name="renewalsallowed" id="renewalsallowed" size="2" /></td> |
490 |
[% IF Koha.Preference('UnseenRenewals') %] |
490 |
[%- IF Koha.Preference('UnseenRenewals') %] |
491 |
<td><input type="text" name="unseen_renewals_allowed" id="unseen_renewals_allowed" size="2" /></td> |
491 |
<td><input type="text" name="unseen_renewals_allowed" id="unseen_renewals_allowed" size="2" /></td> |
492 |
[% END %] |
492 |
[%- END %] |
493 |
<td><input type="text" name="renewalperiod" id="renewalperiod" size="3" /></td> |
493 |
<td><input type="text" name="renewalperiod" id="renewalperiod" size="3" /></td> |
494 |
<td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td> |
494 |
<td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td> |
495 |
<td><input type="text" name="noautorenewalbefore" id="noautorenewalbefore" size="3" /></td> |
495 |
<td><input type="text" name="noautorenewalbefore" id="noautorenewalbefore" size="3" /></td> |
Lines 522-528
Link Here
|
522 |
</select> |
522 |
</select> |
523 |
</td> |
523 |
</td> |
524 |
<td><input type="text" name="holds_pickup_period" id="holds_pickup_period" size="2" /></td> |
524 |
<td><input type="text" name="holds_pickup_period" id="holds_pickup_period" size="2" /></td> |
525 |
[% IF Koha.Preference('ArticleRequests') %] |
525 |
[%- IF Koha.Preference('ArticleRequests') %] |
526 |
<td> |
526 |
<td> |
527 |
<select id="article_requests" name="article_requests"> |
527 |
<select id="article_requests" name="article_requests"> |
528 |
<option value="no">No</option> |
528 |
<option value="no">No</option> |
Lines 531-539
Link Here
|
531 |
<option value="item_only">Item only</option> |
531 |
<option value="item_only">Item only</option> |
532 |
</select> |
532 |
</select> |
533 |
</td> |
533 |
</td> |
534 |
[% END %] |
534 |
[%- END %] |
535 |
<td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> |
535 |
<td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td> |
536 |
[% IF Koha.Preference('UseRecalls') %] |
536 |
[%- IF Koha.Preference('UseRecalls') %] |
537 |
<td><input type="text" name="recalls_allowed" id="recalls_allowed" size="3"></td> |
537 |
<td><input type="text" name="recalls_allowed" id="recalls_allowed" size="3"></td> |
538 |
<td><input type="text" name="recalls_per_record" id="recalls_per_record" size="3"></td> |
538 |
<td><input type="text" name="recalls_per_record" id="recalls_per_record" size="3"></td> |
539 |
<td> |
539 |
<td> |
Lines 545-551
Link Here
|
545 |
<td><input type="text" name="recall_due_date_interval" id="recall_due_date_interval" size="3"></td> |
545 |
<td><input type="text" name="recall_due_date_interval" id="recall_due_date_interval" size="3"></td> |
546 |
<td><input type="text" name="recall_overdue_fine" id="recall_overdue_fine" size="6" inputmode="decimal" pattern="^\d+(\.\d{2})?$"></td> |
546 |
<td><input type="text" name="recall_overdue_fine" id="recall_overdue_fine" size="6" inputmode="decimal" pattern="^\d+(\.\d{2})?$"></td> |
547 |
<td><input type="text" name="recall_shelf_time" id="recall_shelf_time" size="3"></td> |
547 |
<td><input type="text" name="recall_shelf_time" id="recall_shelf_time" size="3"></td> |
548 |
[% END %] |
548 |
[%- END %] |
549 |
<td class="actions"> |
549 |
<td class="actions"> |
550 |
<input type="hidden" name="branch" value="[% current_branch | html %]"/> |
550 |
<input type="hidden" name="branch" value="[% current_branch | html %]"/> |
551 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
551 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
Lines 578-586
Link Here
|
578 |
<th>Max. suspension duration (day)</th> |
578 |
<th>Max. suspension duration (day)</th> |
579 |
<th>Suspension charging interval</th> |
579 |
<th>Suspension charging interval</th> |
580 |
<th>Renewals allowed (count)</th> |
580 |
<th>Renewals allowed (count)</th> |
581 |
[% IF Koha.Preference('UnseenRenewals') %] |
581 |
[%- IF Koha.Preference('UnseenRenewals') %] |
582 |
<th>Unseen renewals allowed (count)</th> |
582 |
<th>Unseen renewals allowed (count)</th> |
583 |
[% END %] |
583 |
[%- END %] |
584 |
<th>Renewal period</th> |
584 |
<th>Renewal period</th> |
585 |
<th>No renewal before</th> |
585 |
<th>No renewal before</th> |
586 |
<th>No automatic renewal before</th> |
586 |
<th>No automatic renewal before</th> |
Lines 593-610
Link Here
|
593 |
<th>On shelf holds allowed</th> |
593 |
<th>On shelf holds allowed</th> |
594 |
<th>OPAC item level holds</th> |
594 |
<th>OPAC item level holds</th> |
595 |
<th>Holds pickup period (day)</th> |
595 |
<th>Holds pickup period (day)</th> |
596 |
[% IF Koha.Preference('ArticleRequests') %] |
596 |
[%- IF Koha.Preference('ArticleRequests') %] |
597 |
<th>Article requests</th> |
597 |
<th>Article requests</th> |
598 |
[% END %] |
598 |
[%- END %] |
599 |
<th>Rental discount (%)</th> |
599 |
<th>Rental discount (%)</th> |
600 |
[% IF Koha.Preference('UseRecalls') %] |
600 |
[%- IF Koha.Preference('UseRecalls') %] |
601 |
<th>Recalls allowed (total)</th> |
601 |
<th>Recalls allowed (total)</th> |
602 |
<th>Recalls per record (count)</th> |
602 |
<th>Recalls per record (count)</th> |
603 |
<th>On shelf recalls allowed</th> |
603 |
<th>On shelf recalls allowed</th> |
604 |
<th>Recall due date interval (day)</th> |
604 |
<th>Recall due date interval (day)</th> |
605 |
<th>Recall overdue fine amount</th> |
605 |
<th>Recall overdue fine amount</th> |
606 |
<th>Recall pickup period (day)</th> |
606 |
<th>Recall pickup period (day)</th> |
607 |
[% END %] |
607 |
[%- END %] |
608 |
<th> </th> |
608 |
<th> </th> |
609 |
</tr> |
609 |
</tr> |
610 |
</tfoot> |
610 |
</tfoot> |
Lines 613-619
Link Here
|
613 |
</div><!-- ./page-section --> |
613 |
</div><!-- ./page-section --> |
614 |
|
614 |
|
615 |
<div id="defaults-for-this-library" class="page-section"> |
615 |
<div id="defaults-for-this-library" class="page-section"> |
616 |
<h2>Default checkout, hold and return policy[% IF humanbranch %] for [% Branches.GetName( humanbranch ) | html %][% END %]</h2> |
616 |
<h2>Default checkout, hold and return policy[%- IF humanbranch %] for [% Branches.GetName( humanbranch ) | html %][%- END %]</h2> |
617 |
<p>You can set a default maximum number of checkouts, hold policy and return policy that will be used if none is defined below for a particular item type or category.</p> |
617 |
<p>You can set a default maximum number of checkouts, hold policy and return policy that will be used if none is defined below for a particular item type or category.</p> |
618 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
618 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
619 |
[% INCLUDE 'csrf-token.inc' %] |
619 |
[% INCLUDE 'csrf-token.inc' %] |
Lines 630-651
Link Here
|
630 |
<th>Return policy</th> |
630 |
<th>Return policy</th> |
631 |
<th class="noExport">Actions</th> |
631 |
<th class="noExport">Actions</th> |
632 |
</tr> |
632 |
</tr> |
633 |
[% SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty', { want_rule => 1 } ) %] |
633 |
[%- SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty', { want_rule => 1 } ) %] |
634 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxonsiteissueqty', { want_rule => 1 } ) %] |
634 |
[%- SET patron_maxonsiteissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxonsiteissueqty', { want_rule => 1 } ) %] |
635 |
[% SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds', { want_rule => 1 } ) %] |
635 |
[%- SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds', { want_rule => 1 } ) %] |
636 |
[% SET holdallowed = CirculationRules.Search( current_branch, undef, undef, 'holdallowed', { want_rule => 1 } ) %] |
636 |
[%- SET holdallowed = CirculationRules.Search( current_branch, undef, undef, 'holdallowed', { want_rule => 1 } ) %] |
637 |
[% SET hold_fulfillment_policy = CirculationRules.Search( current_branch, undef, undef, 'hold_fulfillment_policy', { want_rule => 1 }) %] |
637 |
[%- SET hold_fulfillment_policy = CirculationRules.Search( current_branch, undef, undef, 'hold_fulfillment_policy', { want_rule => 1 }) %] |
638 |
[% SET returnbranch = CirculationRules.Search( current_branch, undef, undef, 'returnbranch', { want_rule => 1 }) %] |
638 |
[%- SET returnbranch = CirculationRules.Search( current_branch, undef, undef, 'returnbranch', { want_rule => 1 }) %] |
639 |
[% SET default_checkout_hold_and_return_policy = ( patron_maxissueqty || patron_maxonsiteissueqty || rule_value || holdallowed || hold_fulfillment_policy || returnbranch ) %] |
639 |
[%- SET default_checkout_hold_and_return_policy = ( patron_maxissueqty || patron_maxonsiteissueqty || rule_value || holdallowed || hold_fulfillment_policy || returnbranch ) %] |
640 |
<tr> |
640 |
<tr> |
641 |
<td> |
641 |
<td> |
642 |
[% IF ( default_checkout_hold_and_return_policy ) %] |
642 |
[%- IF ( default_checkout_hold_and_return_policy ) %] |
643 |
<em> |
643 |
<em> |
644 |
Defaults |
644 |
Defaults |
645 |
</em> |
645 |
</em> |
646 |
[% ELSE %] |
646 |
[%- ELSE %] |
647 |
Not set |
647 |
Not set |
648 |
[% END %] |
648 |
[%- END %] |
649 |
</td> |
649 |
</td> |
650 |
<td> |
650 |
<td> |
651 |
<input type="text" name="patron_maxissueqty" size="9" value="[% patron_maxissueqty.rule_value | html %]" placeholder="Unlimited"/> |
651 |
<input type="text" name="patron_maxissueqty" size="9" value="[% patron_maxissueqty.rule_value | html %]" placeholder="Unlimited"/> |
Lines 662-696
Link Here
|
662 |
Not set |
662 |
Not set |
663 |
</option> |
663 |
</option> |
664 |
|
664 |
|
665 |
[% IF holdallowed.rule_value == 'from_any_library' %] |
665 |
[%- IF holdallowed.rule_value == 'from_any_library' %] |
666 |
<option value="from_any_library" selected="selected"> |
666 |
<option value="from_any_library" selected="selected"> |
667 |
[% ELSE %] |
667 |
[%- ELSE %] |
668 |
<option value="from_any_library"> |
668 |
<option value="from_any_library"> |
669 |
[% END %] |
669 |
[%- END %] |
670 |
From any library |
670 |
From any library |
671 |
</option> |
671 |
</option> |
672 |
|
672 |
|
673 |
[% IF holdallowed.rule_value == 'from_local_hold_group' %] |
673 |
[%- IF holdallowed.rule_value == 'from_local_hold_group' %] |
674 |
<option value="from_local_hold_group" selected="selected"> |
674 |
<option value="from_local_hold_group" selected="selected"> |
675 |
[% ELSE %] |
675 |
[%- ELSE %] |
676 |
<option value="from_local_hold_group"> |
676 |
<option value="from_local_hold_group"> |
677 |
[% END %] |
677 |
[%- END %] |
678 |
From local hold group |
678 |
From local hold group |
679 |
</option> |
679 |
</option> |
680 |
|
680 |
|
681 |
[% IF holdallowed.rule_value == 'from_home_library' %] |
681 |
[%- IF holdallowed.rule_value == 'from_home_library' %] |
682 |
<option value="from_home_library" selected="selected"> |
682 |
<option value="from_home_library" selected="selected"> |
683 |
[% ELSE %] |
683 |
[%- ELSE %] |
684 |
<option value="from_home_library"> |
684 |
<option value="from_home_library"> |
685 |
[% END %] |
685 |
[%- END %] |
686 |
From home library |
686 |
From home library |
687 |
</option> |
687 |
</option> |
688 |
|
688 |
|
689 |
[% IF holdallowed.rule_value == 'not_allowed' %] |
689 |
[%- IF holdallowed.rule_value == 'not_allowed' %] |
690 |
<option value="not_allowed" selected="selected"> |
690 |
<option value="not_allowed" selected="selected"> |
691 |
[% ELSE %] |
691 |
[%- ELSE %] |
692 |
<option value="not_allowed"> |
692 |
<option value="not_allowed"> |
693 |
[% END %] |
693 |
[%- END %] |
694 |
No holds allowed |
694 |
No holds allowed |
695 |
</option> |
695 |
</option> |
696 |
</select> |
696 |
</select> |
Lines 702-756
Link Here
|
702 |
Not set |
702 |
Not set |
703 |
</option> |
703 |
</option> |
704 |
|
704 |
|
705 |
[% IF hold_fulfillment_policy.rule_value == 'any' %] |
705 |
[%- IF hold_fulfillment_policy.rule_value == 'any' %] |
706 |
<option value="any" selected="selected"> |
706 |
<option value="any" selected="selected"> |
707 |
any library |
707 |
any library |
708 |
</option> |
708 |
</option> |
709 |
[% ELSE %] |
709 |
[%- ELSE %] |
710 |
<option value="any"> |
710 |
<option value="any"> |
711 |
any library |
711 |
any library |
712 |
</option> |
712 |
</option> |
713 |
[% END %] |
713 |
[%- END %] |
714 |
|
714 |
|
715 |
[% IF hold_fulfillment_policy.rule_value == 'holdgroup' %] |
715 |
[%- IF hold_fulfillment_policy.rule_value == 'holdgroup' %] |
716 |
<option value="holdgroup" selected="selected"> |
716 |
<option value="holdgroup" selected="selected"> |
717 |
item's hold group |
717 |
item's hold group |
718 |
</option> |
718 |
</option> |
719 |
[% ELSE %] |
719 |
[%- ELSE %] |
720 |
<option value="holdgroup"> |
720 |
<option value="holdgroup"> |
721 |
item's hold group |
721 |
item's hold group |
722 |
</option> |
722 |
</option> |
723 |
[% END %] |
723 |
[%- END %] |
724 |
|
724 |
|
725 |
[% IF hold_fulfillment_policy.rule_value == 'patrongroup' %] |
725 |
[%- IF hold_fulfillment_policy.rule_value == 'patrongroup' %] |
726 |
<option value="patrongroup" selected="selected"> |
726 |
<option value="patrongroup" selected="selected"> |
727 |
patron's hold group |
727 |
patron's hold group |
728 |
</option> |
728 |
</option> |
729 |
[% ELSE %] |
729 |
[%- ELSE %] |
730 |
<option value="patrongroup"> |
730 |
<option value="patrongroup"> |
731 |
patron's hold group |
731 |
patron's hold group |
732 |
</option> |
732 |
</option> |
733 |
[% END %] |
733 |
[%- END %] |
734 |
|
734 |
|
735 |
[% IF hold_fulfillment_policy.rule_value == 'homebranch' %] |
735 |
[%- IF hold_fulfillment_policy.rule_value == 'homebranch' %] |
736 |
<option value="homebranch" selected="selected"> |
736 |
<option value="homebranch" selected="selected"> |
737 |
item's home library |
737 |
item's home library |
738 |
</option> |
738 |
</option> |
739 |
[% ELSE %] |
739 |
[%- ELSE %] |
740 |
<option value="homebranch"> |
740 |
<option value="homebranch"> |
741 |
item's home library |
741 |
item's home library |
742 |
</option> |
742 |
</option> |
743 |
[% END %] |
743 |
[%- END %] |
744 |
|
744 |
|
745 |
[% IF hold_fulfillment_policy.rule_value == 'holdingbranch' %] |
745 |
[%- IF hold_fulfillment_policy.rule_value == 'holdingbranch' %] |
746 |
<option value="holdingbranch" selected="selected"> |
746 |
<option value="holdingbranch" selected="selected"> |
747 |
item's holding library |
747 |
item's holding library |
748 |
</option> |
748 |
</option> |
749 |
[% ELSE %] |
749 |
[%- ELSE %] |
750 |
<option value="holdingbranch"> |
750 |
<option value="holdingbranch"> |
751 |
item's holding library |
751 |
item's holding library |
752 |
</option> |
752 |
</option> |
753 |
[% END %] |
753 |
[%- END %] |
754 |
</select> |
754 |
</select> |
755 |
</td> |
755 |
</td> |
756 |
<td> |
756 |
<td> |
Lines 760-809
Link Here
|
760 |
Not set |
760 |
Not set |
761 |
</option> |
761 |
</option> |
762 |
|
762 |
|
763 |
[% IF returnbranch.rule_value == 'homebranch' %] |
763 |
[%- IF returnbranch.rule_value == 'homebranch' %] |
764 |
<option value="homebranch" selected="selected"> |
764 |
<option value="homebranch" selected="selected"> |
765 |
[% ELSE %] |
765 |
[%- ELSE %] |
766 |
<option value="homebranch"> |
766 |
<option value="homebranch"> |
767 |
[% END %] |
767 |
[%- END %] |
768 |
Item returns home |
768 |
Item returns home |
769 |
</option> |
769 |
</option> |
770 |
[% IF returnbranch.rule_value == 'holdingbranch' %] |
770 |
[%- IF returnbranch.rule_value == 'holdingbranch' %] |
771 |
<option value="holdingbranch" selected="selected"> |
771 |
<option value="holdingbranch" selected="selected"> |
772 |
[% ELSE %] |
772 |
[%- ELSE %] |
773 |
<option value="holdingbranch"> |
773 |
<option value="holdingbranch"> |
774 |
[% END %] |
774 |
[%- END %] |
775 |
Item returns to issuing library |
775 |
Item returns to issuing library |
776 |
</option> |
776 |
</option> |
777 |
[% IF returnbranch.rule_value == 'noreturn' %] |
777 |
[%- IF returnbranch.rule_value == 'noreturn' %] |
778 |
<option value="noreturn" selected="selected"> |
778 |
<option value="noreturn" selected="selected"> |
779 |
[% ELSE %] |
779 |
[%- ELSE %] |
780 |
<option value="noreturn"> |
780 |
<option value="noreturn"> |
781 |
[% END %] |
781 |
[%- END %] |
782 |
Item floats |
782 |
Item floats |
783 |
</option> |
783 |
</option> |
784 |
[% IF returnbranch.rule_value == 'returnbylibrarygroup' %] |
784 |
[%- IF returnbranch.rule_value == 'returnbylibrarygroup' %] |
785 |
<option value="returnbylibrarygroup" selected="selected"> |
785 |
<option value="returnbylibrarygroup" selected="selected"> |
786 |
[% ELSE %] |
786 |
[%- ELSE %] |
787 |
<option value="returnbylibrarygroup"> |
787 |
<option value="returnbylibrarygroup"> |
788 |
[% END %] |
788 |
[%- END %] |
789 |
Item floats by library group |
789 |
Item floats by library group |
790 |
</option> |
790 |
</option> |
791 |
</select> |
791 |
</select> |
792 |
</td> |
792 |
</td> |
793 |
<td class="actions"> |
793 |
<td class="actions"> |
794 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
794 |
<button type="submit" class="btn btn-default btn-xs"><i class="fa fa-save"></i> Save</button> |
795 |
[% IF ( default_checkout_hold_and_return_policy ) %] |
795 |
[%- IF ( default_checkout_hold_and_return_policy ) %] |
796 |
<a href="#" class="delete-branch-cat btn btn-default btn-xs" data-categorycode="[% c || '*' | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-undo"></i> Unset</a> |
796 |
<a href="#" class="delete-branch-cat btn btn-default btn-xs" data-categorycode="[% c || '*' | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-undo"></i> Unset</a> |
797 |
[% END %] |
797 |
[%- END %] |
798 |
</td> |
798 |
</td> |
799 |
</tr> |
799 |
</tr> |
800 |
</table> |
800 |
</table> |
801 |
</form> |
801 |
</form> |
802 |
</div> |
802 |
</div> |
803 |
|
803 |
|
804 |
[% IF ( show_branch_cat_rule_form ) %] |
804 |
[%- IF ( show_branch_cat_rule_form ) %] |
805 |
<div id="holds-policy-by-patron-category" class="page-section"> |
805 |
<div id="holds-policy-by-patron-category" class="page-section"> |
806 |
<h2>[% IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default checkout, hold policy by patron category[% END %]</h2> |
806 |
<h2>[%- IF humanbranch %]Checkout, hold policy by patron category for [% Branches.GetName( humanbranch ) | html %][%- ELSE %]Default checkout, hold policy by patron category[%- END %]</h2> |
807 |
<p>For this library, you can specify the maximum number of loans that |
807 |
<p>For this library, you can specify the maximum number of loans that |
808 |
a patron of a given category can make, regardless of the item type. |
808 |
a patron of a given category can make, regardless of the item type. |
809 |
</p> |
809 |
</p> |
Lines 824-876
Link Here
|
824 |
</tr> |
824 |
</tr> |
825 |
[% FOREACH c IN categorycodes %] |
825 |
[% FOREACH c IN categorycodes %] |
826 |
[% NEXT UNLESS c %] |
826 |
[% NEXT UNLESS c %] |
827 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
827 |
[%- SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
828 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] |
828 |
[%- SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] |
829 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
829 |
[%- SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
830 |
|
830 |
|
831 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
831 |
[%- IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
832 |
<tr> |
832 |
<tr> |
833 |
<td> |
833 |
<td> |
834 |
[% IF c == undef %] |
834 |
[%- IF c == undef %] |
835 |
<em>Default</em> |
835 |
<em>Default</em> |
836 |
[% ELSE %] |
836 |
[%- ELSE %] |
837 |
[% Categories.GetName(c) | html %] |
837 |
[% Categories.GetName(c) | html %] |
838 |
[% END %] |
838 |
[%- END %] |
839 |
</td> |
839 |
</td> |
840 |
<td> |
840 |
<td> |
841 |
[% IF patron_maxissueqty.defined && patron_maxissueqty != '' %] |
841 |
[%- IF patron_maxissueqty.defined && patron_maxissueqty != '' %] |
842 |
[% patron_maxissueqty | html %] |
842 |
[% patron_maxissueqty | html %] |
843 |
[% ELSE %] |
843 |
[%- ELSE %] |
844 |
<span>Unlimited</span> |
844 |
<span>Unlimited</span> |
845 |
[% END %] |
845 |
[%- END %] |
846 |
</td> |
846 |
</td> |
847 |
<td> |
847 |
<td> |
848 |
[% IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %] |
848 |
[%- IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %] |
849 |
[% patron_maxonsiteissueqty | html %] |
849 |
[% patron_maxonsiteissueqty | html %] |
850 |
[% ELSE %] |
850 |
[%- ELSE %] |
851 |
<span>Unlimited</span> |
851 |
<span>Unlimited</span> |
852 |
[% END %] |
852 |
[%- END %] |
853 |
</td> |
853 |
</td> |
854 |
<td> |
854 |
<td> |
855 |
[% IF max_holds.defined && max_holds != '' %] |
855 |
[%- IF max_holds.defined && max_holds != '' %] |
856 |
[% max_holds | html %] |
856 |
[% max_holds | html %] |
857 |
[% ELSE %] |
857 |
[%- ELSE %] |
858 |
<span>Unlimited</span> |
858 |
<span>Unlimited</span> |
859 |
[% END %] |
859 |
[%- END %] |
860 |
</td> |
860 |
</td> |
861 |
|
861 |
|
862 |
<td class="actions"> |
862 |
<td class="actions"> |
863 |
<a href="#" class="delete-branch-cat btn btn-default btn-xs" data-categorycode="[% c | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
863 |
<a href="#" class="delete-branch-cat btn btn-default btn-xs" data-categorycode="[% c | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
864 |
</td> |
864 |
</td> |
865 |
</tr> |
865 |
</tr> |
866 |
[% END %] |
866 |
[%- END %] |
867 |
[% END %] |
867 |
[%- END %] |
868 |
<tr> |
868 |
<tr> |
869 |
<td> |
869 |
<td> |
870 |
<select name="categorycode"> |
870 |
<select name="categorycode"> |
871 |
[% FOREACH patron_category IN patron_categories%] |
871 |
[% FOREACH patron_category IN patron_categories%] |
872 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
872 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
873 |
[% END %] |
873 |
[%- END %] |
874 |
</select> |
874 |
</select> |
875 |
</td> |
875 |
</td> |
876 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
876 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
Lines 881-894
Link Here
|
881 |
</table> |
881 |
</table> |
882 |
</form> |
882 |
</form> |
883 |
</div> |
883 |
</div> |
884 |
[% END %] |
884 |
[%- END %] |
885 |
|
885 |
|
886 |
<div id="waiting-hold-cancel-category" class="page-section"> |
886 |
<div id="waiting-hold-cancel-category" class="page-section"> |
887 |
[% IF humanbranch %] |
887 |
[%- IF humanbranch %] |
888 |
<h2>Waiting hold cancellation policy for [% Branches.GetName( humanbranch ) | html %]</h2> |
888 |
<h2>Waiting hold cancellation policy for [% Branches.GetName( humanbranch ) | html %]</h2> |
889 |
[% ELSE %] |
889 |
[%- ELSE %] |
890 |
<h2>Default waiting hold cancellation policy</h2> |
890 |
<h2>Default waiting hold cancellation policy</h2> |
891 |
[% END %] |
891 |
[%- END %] |
892 |
<p>Specify if waiting holds can be cancelled for a given patron category.</p> |
892 |
<p>Specify if waiting holds can be cancelled for a given patron category.</p> |
893 |
<form id="set-waiting-hold-cancellation" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
893 |
<form id="set-waiting-hold-cancellation" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
894 |
[% INCLUDE 'csrf-token.inc' %] |
894 |
[% INCLUDE 'csrf-token.inc' %] |
Lines 902-950
Link Here
|
902 |
<th> </th> |
902 |
<th> </th> |
903 |
</tr> |
903 |
</tr> |
904 |
[% FOREACH c IN categorycodes %] |
904 |
[% FOREACH c IN categorycodes %] |
905 |
[% SET c = '*' UNLESS c.defined AND c != '' %] |
905 |
[%- SET c = '*' UNLESS c.defined AND c != '' %] |
906 |
[% FOREACH i IN itemtypes %] |
906 |
[% FOREACH i IN itemtypes %] |
907 |
[% SET i = '*' UNLESS i.defined AND i != '' %] |
907 |
[%- SET i = '*' UNLESS i.defined AND i != '' %] |
908 |
|
908 |
|
909 |
[% SET waiting_hold_cancellation = CirculationRules.Search( current_branch, c, i, 'waiting_hold_cancellation' ) %] |
909 |
[%- SET waiting_hold_cancellation = CirculationRules.Search( current_branch, c, i, 'waiting_hold_cancellation' ) %] |
910 |
|
910 |
|
911 |
[% IF ( waiting_hold_cancellation.defined && waiting_hold_cancellation != '' ) %] |
911 |
[%- IF ( waiting_hold_cancellation.defined && waiting_hold_cancellation != '' ) %] |
912 |
<tr> |
912 |
<tr> |
913 |
<td> |
913 |
<td> |
914 |
[% IF c == '*' %] |
914 |
[%- IF c == '*' %] |
915 |
<em>All</em> |
915 |
<em>All</em> |
916 |
[% ELSE %] |
916 |
[%- ELSE %] |
917 |
[% Categories.GetName(c) | html %] |
917 |
[% Categories.GetName(c) | html %] |
918 |
[% END %] |
918 |
[%- END %] |
919 |
</td> |
919 |
</td> |
920 |
<td> |
920 |
<td> |
921 |
[% IF i == '*' %] |
921 |
[%- IF i == '*' %] |
922 |
<em>All</em> |
922 |
<em>All</em> |
923 |
[% ELSE %] |
923 |
[%- ELSE %] |
924 |
[% ItemTypes.GetDescription(i,1) | html %] |
924 |
[% ItemTypes.GetDescription(i,1) | html %] |
925 |
[% END %] |
925 |
[%- END %] |
926 |
</td> |
926 |
</td> |
927 |
<td> |
927 |
<td> |
928 |
[% IF waiting_hold_cancellation %] |
928 |
[%- IF waiting_hold_cancellation %] |
929 |
<span>Yes</span> |
929 |
<span>Yes</span> |
930 |
[% ELSE %] |
930 |
[%- ELSE %] |
931 |
<span>No</span> |
931 |
<span>No</span> |
932 |
[% END %] |
932 |
[%- END %] |
933 |
</td> |
933 |
</td> |
934 |
<td class="actions"> |
934 |
<td class="actions"> |
935 |
<a href="#" class="del-waiting-hold-cancellation btn btn-default btn-xs" data-categorycode="[% c | html %]" data-itemtype="[% i | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
935 |
<a href="#" class="del-waiting-hold-cancellation btn btn-default btn-xs" data-categorycode="[% c | html %]" data-itemtype="[% i | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
936 |
</td> |
936 |
</td> |
937 |
</tr> |
937 |
</tr> |
938 |
[% END %] |
938 |
[%- END %] |
939 |
[% END %] |
939 |
[%- END %] |
940 |
[% END %] |
940 |
[%- END %] |
941 |
<tr> |
941 |
<tr> |
942 |
<td> |
942 |
<td> |
943 |
<select name="waiting_hold_cancellation_category" id="waiting_hold_cancellation_category"> |
943 |
<select name="waiting_hold_cancellation_category" id="waiting_hold_cancellation_category"> |
944 |
<option value="*">All</option> |
944 |
<option value="*">All</option> |
945 |
[% FOREACH patron_category IN patron_categories %] |
945 |
[% FOREACH patron_category IN patron_categories %] |
946 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
946 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
947 |
[% END %] |
947 |
[%- END %] |
948 |
</select> |
948 |
</select> |
949 |
</td> |
949 |
</td> |
950 |
<td> |
950 |
<td> |
Lines 952-958
Link Here
|
952 |
<option value="*">All</option> |
952 |
<option value="*">All</option> |
953 |
[% FOREACH itemtype IN itemtypeloop %] |
953 |
[% FOREACH itemtype IN itemtypeloop %] |
954 |
<option value="[% itemtype.itemtype | html %]">[% ItemTypes.GetDescription(itemtype.itemtype) | html %]</option> |
954 |
<option value="[% itemtype.itemtype | html %]">[% ItemTypes.GetDescription(itemtype.itemtype) | html %]</option> |
955 |
[% END %] |
955 |
[%- END %] |
956 |
</select> |
956 |
</select> |
957 |
</td> |
957 |
</td> |
958 |
<td> |
958 |
<td> |
Lines 967-979
Link Here
|
967 |
</form> |
967 |
</form> |
968 |
</div> |
968 |
</div> |
969 |
|
969 |
|
970 |
[% IF Koha.Preference('ArticleRequests') %] |
970 |
[%- IF Koha.Preference('ArticleRequests') %] |
971 |
<div id="open-article-requests-limit-patron-category" class="page-section"> |
971 |
<div id="open-article-requests-limit-patron-category" class="page-section"> |
972 |
[% IF humanbranch %] |
972 |
[%- IF humanbranch %] |
973 |
<h2>Daily open article requests limit for [% Branches.GetName( humanbranch ) | html %]</h2> |
973 |
<h2>Daily open article requests limit for [% Branches.GetName( humanbranch ) | html %]</h2> |
974 |
[% ELSE %] |
974 |
[%- ELSE %] |
975 |
<h2>Default open article requests limit</h2> |
975 |
<h2>Default open article requests limit</h2> |
976 |
[% END %] |
976 |
[%- END %] |
977 |
<p>Specify the maximum number simultaneous current article requests a patron of a given category can have.</p> |
977 |
<p>Specify the maximum number simultaneous current article requests a patron of a given category can have.</p> |
978 |
<form id="set-article-requests-daily-limit" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
978 |
<form id="set-article-requests-daily-limit" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
979 |
[% INCLUDE 'csrf-token.inc' %] |
979 |
[% INCLUDE 'csrf-token.inc' %] |
Lines 987-1019
Link Here
|
987 |
</tr> |
987 |
</tr> |
988 |
[% FOREACH c IN categorycodes %] |
988 |
[% FOREACH c IN categorycodes %] |
989 |
[% NEXT UNLESS c %] |
989 |
[% NEXT UNLESS c %] |
990 |
[% SET open_article_requests_limit = CirculationRules.Search( branchcode, c, undef, 'open_article_requests_limit' ) %] |
990 |
[%- SET open_article_requests_limit = CirculationRules.Search( branchcode, c, undef, 'open_article_requests_limit' ) %] |
991 |
|
991 |
|
992 |
[% IF ( open_article_requests_limit.defined && open_article_requests_limit != '' ) %] |
992 |
[%- IF ( open_article_requests_limit.defined && open_article_requests_limit != '' ) %] |
993 |
<tr> |
993 |
<tr> |
994 |
<td> |
994 |
<td> |
995 |
[% Categories.GetName(c) | html %] |
995 |
[% Categories.GetName(c) | html %] |
996 |
</td> |
996 |
</td> |
997 |
<td> |
997 |
<td> |
998 |
[% IF open_article_requests_limit.defined && open_article_requests_limit != '' %] |
998 |
[%- IF open_article_requests_limit.defined && open_article_requests_limit != '' %] |
999 |
[% open_article_requests_limit | html %] |
999 |
[% open_article_requests_limit | html %] |
1000 |
[% ELSE %] |
1000 |
[%- ELSE %] |
1001 |
<span>Unlimited</span> |
1001 |
<span>Unlimited</span> |
1002 |
[% END %] |
1002 |
[%- END %] |
1003 |
</td> |
1003 |
</td> |
1004 |
|
1004 |
|
1005 |
<td class="actions"> |
1005 |
<td class="actions"> |
1006 |
<a href="#" class="del-open-article-requests-limit btn btn-default btn-xs" data-categorycode="[% c | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
1006 |
<a href="#" class="del-open-article-requests-limit btn btn-default btn-xs" data-categorycode="[% c | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
1007 |
</td> |
1007 |
</td> |
1008 |
</tr> |
1008 |
</tr> |
1009 |
[% END %] |
1009 |
[%- END %] |
1010 |
[% END %] |
1010 |
[%- END %] |
1011 |
<tr> |
1011 |
<tr> |
1012 |
<td> |
1012 |
<td> |
1013 |
<select name="categorycode"> |
1013 |
<select name="categorycode"> |
1014 |
[% FOREACH patron_category IN patron_categories %] |
1014 |
[% FOREACH patron_category IN patron_categories %] |
1015 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
1015 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
1016 |
[% END %] |
1016 |
[%- END %] |
1017 |
</select> |
1017 |
</select> |
1018 |
</td> |
1018 |
</td> |
1019 |
<td><input name="open_article_requests_limit" size="3" type="text" /></td> |
1019 |
<td><input name="open_article_requests_limit" size="3" type="text" /></td> |
Lines 1024-1034
Link Here
|
1024 |
</div> |
1024 |
</div> |
1025 |
|
1025 |
|
1026 |
<div id="article-request-fee-category" class="page-section"> |
1026 |
<div id="article-request-fee-category" class="page-section"> |
1027 |
[% IF humanbranch %] |
1027 |
[%- IF humanbranch %] |
1028 |
<h2>Article request fees for [% Branches.GetName( humanbranch ) | html %]</h2> |
1028 |
<h2>Article request fees for [% Branches.GetName( humanbranch ) | html %]</h2> |
1029 |
[% ELSE %] |
1029 |
[%- ELSE %] |
1030 |
<h2>Default article request fees</h2> |
1030 |
<h2>Default article request fees</h2> |
1031 |
[% END %] |
1031 |
[%- END %] |
1032 |
<p>Specify the article request fee for a given patron category.</p> |
1032 |
<p>Specify the article request fee for a given patron category.</p> |
1033 |
<form id="set-article-request-fee" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
1033 |
<form id="set-article-request-fee" method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
1034 |
[% INCLUDE 'csrf-token.inc' %] |
1034 |
[% INCLUDE 'csrf-token.inc' %] |
Lines 1041-1079
Link Here
|
1041 |
<th> </th> |
1041 |
<th> </th> |
1042 |
</tr> |
1042 |
</tr> |
1043 |
[% FOREACH c IN categorycodes %] |
1043 |
[% FOREACH c IN categorycodes %] |
1044 |
[% SET c = '*' UNLESS c.defined AND c != '' %] |
1044 |
[%- SET c = '*' UNLESS c.defined AND c != '' %] |
1045 |
|
1045 |
|
1046 |
[% SET article_request_fee = CirculationRules.Search( current_branch, c, undef, 'article_request_fee' ) %] |
1046 |
[%- SET article_request_fee = CirculationRules.Search( current_branch, c, undef, 'article_request_fee' ) %] |
1047 |
|
1047 |
|
1048 |
[% IF ( article_request_fee.defined && article_request_fee != '' ) %] |
1048 |
[%- IF ( article_request_fee.defined && article_request_fee != '' ) %] |
1049 |
<tr> |
1049 |
<tr> |
1050 |
<td> |
1050 |
<td> |
1051 |
[% IF c == '*' %] |
1051 |
[%- IF c == '*' %] |
1052 |
<em>All</em> |
1052 |
<em>All</em> |
1053 |
[% ELSE %] |
1053 |
[%- ELSE %] |
1054 |
[% Categories.GetName(c) | html %] |
1054 |
[% Categories.GetName(c) | html %] |
1055 |
[% END %] |
1055 |
[%- END %] |
1056 |
</td> |
1056 |
</td> |
1057 |
<td> |
1057 |
<td> |
1058 |
[% IF article_request_fee.defined && article_request_fee != '' %] |
1058 |
[%- IF article_request_fee.defined && article_request_fee != '' %] |
1059 |
[% article_request_fee | $Price %] |
1059 |
[% article_request_fee | $Price %] |
1060 |
[% ELSE %] |
1060 |
[%- ELSE %] |
1061 |
<span>0</span> |
1061 |
<span>0</span> |
1062 |
[% END %] |
1062 |
[%- END %] |
1063 |
</td> |
1063 |
</td> |
1064 |
<td class="actions"> |
1064 |
<td class="actions"> |
1065 |
<a href="#" class="del-article-request-fee btn btn-default btn-xs" data-categorycode="[% c | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
1065 |
<a href="#" class="del-article-request-fee btn btn-default btn-xs" data-categorycode="[% c | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
1066 |
</td> |
1066 |
</td> |
1067 |
</tr> |
1067 |
</tr> |
1068 |
[% END %] |
1068 |
[%- END %] |
1069 |
[% END %] |
1069 |
[%- END %] |
1070 |
<tr> |
1070 |
<tr> |
1071 |
<td> |
1071 |
<td> |
1072 |
<select name="article_request_fee_category" id="article_request_fee_category"> |
1072 |
<select name="article_request_fee_category" id="article_request_fee_category"> |
1073 |
<option value="*">All</option> |
1073 |
<option value="*">All</option> |
1074 |
[% FOREACH patron_category IN patron_categories%] |
1074 |
[% FOREACH patron_category IN patron_categories%] |
1075 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
1075 |
<option value="[% patron_category.categorycode | html %]">[% patron_category.description | html %]</option> |
1076 |
[% END %] |
1076 |
[%- END %] |
1077 |
</select> |
1077 |
</select> |
1078 |
</td> |
1078 |
</td> |
1079 |
<td><input name="article_request_fee" size="5" type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /></td> |
1079 |
<td><input name="article_request_fee" size="5" type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" /></td> |
Lines 1082-1095
Link Here
|
1082 |
</table> |
1082 |
</table> |
1083 |
</form> |
1083 |
</form> |
1084 |
</div> |
1084 |
</div> |
1085 |
[% END %] |
1085 |
[%- END %] |
1086 |
|
1086 |
|
1087 |
<div id="refund-lost-item-fee-on-return" class="page-section"> |
1087 |
<div id="refund-lost-item-fee-on-return" class="page-section"> |
1088 |
[% IF current_branch == '*' %] |
1088 |
[%- IF current_branch == '*' %] |
1089 |
<h2>Default lost item fee refund on return policy</h2> |
1089 |
<h2>Default lost item fee refund on return policy</h2> |
1090 |
[% ELSE %] |
1090 |
[%- ELSE %] |
1091 |
<h2>Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]</h2> |
1091 |
<h2>Lost item fee refund on return policy for [% Branches.GetName(current_branch) | html %]</h2> |
1092 |
[% END %] |
1092 |
[%- END %] |
1093 |
<p>Specify the default policy for lost item fees on return.</p> |
1093 |
<p>Specify the default policy for lost item fees on return.</p> |
1094 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
1094 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
1095 |
[% INCLUDE 'csrf-token.inc' %] |
1095 |
[% INCLUDE 'csrf-token.inc' %] |
Lines 1105-1265
Link Here
|
1105 |
<td> |
1105 |
<td> |
1106 |
<select name="lostreturn"> |
1106 |
<select name="lostreturn"> |
1107 |
[%# Default branch %] |
1107 |
[%# Default branch %] |
1108 |
[% IF ( current_branch == '*' ) %] |
1108 |
[%- IF ( current_branch == '*' ) %] |
1109 |
[% IF ( defaultRefundRule == 'refund' ) %] |
1109 |
[%- IF ( defaultRefundRule == 'refund' ) %] |
1110 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1110 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1111 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1111 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1112 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1112 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1113 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1113 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1114 |
<option value="0">Leave lost item charge</option> |
1114 |
<option value="0">Leave lost item charge</option> |
1115 |
[% ELSIF ( defaultRefundRule == 'refund_unpaid' ) %] |
1115 |
[%- ELSIF ( defaultRefundRule == 'refund_unpaid' ) %] |
1116 |
<option value="refund">Refund lost item charge</option> |
1116 |
<option value="refund">Refund lost item charge</option> |
1117 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
1117 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
1118 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1118 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1119 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1119 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1120 |
<option value="0">Leave lost item charge</option> |
1120 |
<option value="0">Leave lost item charge</option> |
1121 |
[% ELSIF ( defaultRefundRule == 'charge' ) %] |
1121 |
[%- ELSIF ( defaultRefundRule == 'charge' ) %] |
1122 |
<option value="refund">Refund lost item charge</option> |
1122 |
<option value="refund">Refund lost item charge</option> |
1123 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1123 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1124 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
1124 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
1125 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1125 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1126 |
<option value="0">Leave lost item charge</option> |
1126 |
<option value="0">Leave lost item charge</option> |
1127 |
[% ELSIF ( defaultRefundRule == 'restore' ) %] |
1127 |
[%- ELSIF ( defaultRefundRule == 'restore' ) %] |
1128 |
<option value="refund">Refund lost item charge</option> |
1128 |
<option value="refund">Refund lost item charge</option> |
1129 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1129 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1130 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1130 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1131 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
1131 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
1132 |
<option value="0">Leave lost item charge</option> |
1132 |
<option value="0">Leave lost item charge</option> |
1133 |
[% ELSIF ( defaultRefundRule == 0 ) %] |
1133 |
[%- ELSIF ( defaultRefundRule == 0 ) %] |
1134 |
<option value="refund">Refund lost item charge</option> |
1134 |
<option value="refund">Refund lost item charge</option> |
1135 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1135 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1136 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1136 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1137 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1137 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1138 |
<option value="0" selected="selected">Leave lost item charge</option> |
1138 |
<option value="0" selected="selected">Leave lost item charge</option> |
1139 |
[% ELSE %] |
1139 |
[%- ELSE %] |
1140 |
<option value="refund">Refund lost item charge</option> |
1140 |
<option value="refund">Refund lost item charge</option> |
1141 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1141 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1142 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1142 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1143 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1143 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1144 |
<option value="0">Leave lost item charge</option> |
1144 |
<option value="0">Leave lost item charge</option> |
1145 |
[% END %] |
1145 |
[%- END %] |
1146 |
[% ELSE %] |
1146 |
[%- ELSE %] |
1147 |
[%# Branch-specific %] |
1147 |
[%# Branch-specific %] |
1148 |
[% IF ( not refundLostItemFeeRule ) %] |
1148 |
[%- IF ( not refundLostItemFeeRule ) %] |
1149 |
<option value="*" selected="selected"> |
1149 |
<option value="*" selected="selected"> |
1150 |
[% ELSE %] |
1150 |
[%- ELSE %] |
1151 |
<option value="*"> |
1151 |
<option value="*"> |
1152 |
[% END %] |
1152 |
[%- END %] |
1153 |
[% IF defaultRefundRule == 'refund' %] |
1153 |
[%- IF defaultRefundRule == 'refund' %] |
1154 |
<span>Use default (Refund lost item charge)</span> |
1154 |
<span>Use default (Refund lost item charge)</span> |
1155 |
[% ELSIF defaultRefundRule == 'refund_unpaid' %] |
1155 |
[%- ELSIF defaultRefundRule == 'refund_unpaid' %] |
1156 |
Use default (Refund lost item charge (only if unpaid)) |
1156 |
Use default (Refund lost item charge (only if unpaid)) |
1157 |
[% ELSIF defaultRefundRule == 'charge' %] |
1157 |
[%- ELSIF defaultRefundRule == 'charge' %] |
1158 |
<span>Use default (Refund lost item charge and charge new overdue fine)</span> |
1158 |
<span>Use default (Refund lost item charge and charge new overdue fine)</span> |
1159 |
[% ELSIF defaultRefundRule == 'restore' %] |
1159 |
[%- ELSIF defaultRefundRule == 'restore' %] |
1160 |
<span>Use default (Refund lost item charge and restore overdue fine)</span> |
1160 |
<span>Use default (Refund lost item charge and restore overdue fine)</span> |
1161 |
[% ELSE %] |
1161 |
[%- ELSE %] |
1162 |
<span>Use default (Leave lost item charge)</span> |
1162 |
<span>Use default (Leave lost item charge)</span> |
1163 |
[% END %] |
1163 |
[%- END %] |
1164 |
</option> |
1164 |
</option> |
1165 |
[% IF ( not refundLostItemFeeRule ) %] |
1165 |
[%- IF ( not refundLostItemFeeRule ) %] |
1166 |
<option value="refund">Refund lost item charge</option> |
1166 |
<option value="refund">Refund lost item charge</option> |
1167 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1167 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1168 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1168 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1169 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1169 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1170 |
<option value="0">Leave lost item charge</option> |
1170 |
<option value="0">Leave lost item charge</option> |
1171 |
[% ELSE %] |
1171 |
[%- ELSE %] |
1172 |
[% IF ( refundLostItemFeeRule.rule_value == 'refund' ) %] |
1172 |
[%- IF ( refundLostItemFeeRule.rule_value == 'refund' ) %] |
1173 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1173 |
<option value="refund" selected="selected">Refund lost item charge</option> |
1174 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1174 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1175 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1175 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1176 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1176 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1177 |
<option value="0">Leave lost item charge</option> |
1177 |
<option value="0">Leave lost item charge</option> |
1178 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %] |
1178 |
[%- ELSIF ( refundLostItemFeeRule.rule_value == 'refund_unpaid' ) %] |
1179 |
<option value="refund">Refund lost item charge</option> |
1179 |
<option value="refund">Refund lost item charge</option> |
1180 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
1180 |
<option value="refund_unpaid" selected="selected">Refund lost item charge (only if unpaid)</option> |
1181 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1181 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1182 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1182 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1183 |
<option value="0">Leave lost item charge</option> |
1183 |
<option value="0">Leave lost item charge</option> |
1184 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %] |
1184 |
[%- ELSIF ( refundLostItemFeeRule.rule_value == 'charge' ) %] |
1185 |
<option value="refund">Refund lost item charge</option> |
1185 |
<option value="refund">Refund lost item charge</option> |
1186 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1186 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1187 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
1187 |
<option value="charge" selected="selected">Refund lost item charge and charge new overdue fine</option> |
1188 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1188 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1189 |
<option value="0">Leave lost item charge</option> |
1189 |
<option value="0">Leave lost item charge</option> |
1190 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 'restore' ) %] |
1190 |
[%- ELSIF ( refundLostItemFeeRule.rule_value == 'restore' ) %] |
1191 |
<option value="refund">Refund lost item charge</option> |
1191 |
<option value="refund">Refund lost item charge</option> |
1192 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1192 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1193 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1193 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1194 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
1194 |
<option value="restore" selected="selected">Refund lost item charge and restore overdue fine</option> |
1195 |
<option value="0">Leave lost item charge</option> |
1195 |
<option value="0">Leave lost item charge</option> |
1196 |
[% ELSIF ( refundLostItemFeeRule.rule_value == 0 ) %] |
1196 |
[%- ELSIF ( refundLostItemFeeRule.rule_value == 0 ) %] |
1197 |
<option value="refund">Refund lost item charge</option> |
1197 |
<option value="refund">Refund lost item charge</option> |
1198 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1198 |
<option value="refund_unpaid">Refund lost item charge (only if unpaid)</option> |
1199 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1199 |
<option value="charge">Refund lost item charge and charge new overdue fine</option> |
1200 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1200 |
<option value="restore">Refund lost item charge and restore overdue fine</option> |
1201 |
<option value="0" selected="selected">Leave lost item charge</option> |
1201 |
<option value="0" selected="selected">Leave lost item charge</option> |
1202 |
[% END %] |
1202 |
[%- END %] |
1203 |
[% END %] |
1203 |
[%- END %] |
1204 |
[% END %] |
1204 |
[%- END %] |
1205 |
</select> |
1205 |
</select> |
1206 |
</td> |
1206 |
</td> |
1207 |
<td> |
1207 |
<td> |
1208 |
<select name="processingreturn"> |
1208 |
<select name="processingreturn"> |
1209 |
[%# Default branch %] |
1209 |
[%# Default branch %] |
1210 |
[% IF ( current_branch == '*' ) %] |
1210 |
[%- IF ( current_branch == '*' ) %] |
1211 |
[% IF ( defaultProcessingRefundRule == 'refund' ) %] |
1211 |
[%- IF ( defaultProcessingRefundRule == 'refund' ) %] |
1212 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
1212 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
1213 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1213 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1214 |
<option value="0">Leave lost item processing charge</option> |
1214 |
<option value="0">Leave lost item processing charge</option> |
1215 |
[% ELSIF ( defaultProcessingRefundRule == 'refund_unpaid' ) %] |
1215 |
[%- ELSIF ( defaultProcessingRefundRule == 'refund_unpaid' ) %] |
1216 |
<option value="refund">Refund lost item charge</option> |
1216 |
<option value="refund">Refund lost item charge</option> |
1217 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
1217 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
1218 |
<option value="0">Leave lost item processing charge</option> |
1218 |
<option value="0">Leave lost item processing charge</option> |
1219 |
[% ELSIF ( defaultProcessingRefundRule == 0 ) %] |
1219 |
[%- ELSIF ( defaultProcessingRefundRule == 0 ) %] |
1220 |
<option value="refund">Refund lost item processing charge</option> |
1220 |
<option value="refund">Refund lost item processing charge</option> |
1221 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1221 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1222 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
1222 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
1223 |
[% ELSE %] |
1223 |
[%- ELSE %] |
1224 |
<option value="refund">Refund lost item processing charge</option> |
1224 |
<option value="refund">Refund lost item processing charge</option> |
1225 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1225 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1226 |
<option value="0">Leave lost item processing charge</option> |
1226 |
<option value="0">Leave lost item processing charge</option> |
1227 |
[% END %] |
1227 |
[%- END %] |
1228 |
[% ELSE %] |
1228 |
[%- ELSE %] |
1229 |
[%# Branch-specific %] |
1229 |
[%# Branch-specific %] |
1230 |
[% IF ( not refundProcessingFeeRule ) %] |
1230 |
[%- IF ( not refundProcessingFeeRule ) %] |
1231 |
<option value="*" selected="selected"> |
1231 |
<option value="*" selected="selected"> |
1232 |
[% ELSE %] |
1232 |
[%- ELSE %] |
1233 |
<option value="*"> |
1233 |
<option value="*"> |
1234 |
[% END %] |
1234 |
[%- END %] |
1235 |
[% IF defaultProcessingRefundRule == 'refund' %] |
1235 |
[%- IF defaultProcessingRefundRule == 'refund' %] |
1236 |
<span>Use default (Refund lost item processing charge)</span> |
1236 |
<span>Use default (Refund lost item processing charge)</span> |
1237 |
[% ELSIF defaultProcessingRefundRule == 'refund_unpaid' %] |
1237 |
[%- ELSIF defaultProcessingRefundRule == 'refund_unpaid' %] |
1238 |
Use default (Refund lost item processing charge (only if unpaid)) |
1238 |
Use default (Refund lost item processing charge (only if unpaid)) |
1239 |
[% ELSE %] |
1239 |
[%- ELSE %] |
1240 |
<span>Use default (Leave lost item processing charge)</span> |
1240 |
<span>Use default (Leave lost item processing charge)</span> |
1241 |
[% END %] |
1241 |
[%- END %] |
1242 |
</option> |
1242 |
</option> |
1243 |
[% IF ( not refundProcessingFeeRule ) %] |
1243 |
[%- IF ( not refundProcessingFeeRule ) %] |
1244 |
<option value="refund">Refund lost item processing charge</option> |
1244 |
<option value="refund">Refund lost item processing charge</option> |
1245 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1245 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1246 |
<option value="0">Leave lost item processing charge</option> |
1246 |
<option value="0">Leave lost item processing charge</option> |
1247 |
[% ELSE %] |
1247 |
[%- ELSE %] |
1248 |
[% IF ( refundProcessingFeeRule.rule_value == 'refund' ) %] |
1248 |
[%- IF ( refundProcessingFeeRule.rule_value == 'refund' ) %] |
1249 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
1249 |
<option value="refund" selected="selected">Refund lost item processing charge</option> |
1250 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1250 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1251 |
<option value="0">Leave lost item processing charge</option> |
1251 |
<option value="0">Leave lost item processing charge</option> |
1252 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 'refund_unpaid' ) %] |
1252 |
[%- ELSIF ( refundProcessingFeeRule.rule_value == 'refund_unpaid' ) %] |
1253 |
<option value="refund">Refund lost item processing charge</option> |
1253 |
<option value="refund">Refund lost item processing charge</option> |
1254 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
1254 |
<option value="refund_unpaid" selected="selected">Refund lost item processing charge (only if unpaid)</option> |
1255 |
<option value="0">Leave lost item processing charge</option> |
1255 |
<option value="0">Leave lost item processing charge</option> |
1256 |
[% ELSIF ( refundProcessingFeeRule.rule_value == 0 ) %] |
1256 |
[%- ELSIF ( refundProcessingFeeRule.rule_value == 0 ) %] |
1257 |
<option value="refund">Refund lost item processing charge</option> |
1257 |
<option value="refund">Refund lost item processing charge</option> |
1258 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1258 |
<option value="refund_unpaid">Refund lost item processing charge (only if unpaid)</option> |
1259 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
1259 |
<option value="0" selected="selected">Leave lost item processing charge</option> |
1260 |
[% END %] |
1260 |
[%- END %] |
1261 |
[% END %] |
1261 |
[%- END %] |
1262 |
[% END %] |
1262 |
[%- END %] |
1263 |
</select> |
1263 |
</select> |
1264 |
</td> |
1264 |
</td> |
1265 |
<td class="actions"> |
1265 |
<td class="actions"> |
Lines 1271-1277
Link Here
|
1271 |
</div> |
1271 |
</div> |
1272 |
|
1272 |
|
1273 |
<div id="holds-policy-by-item-type" class="page-section"> |
1273 |
<div id="holds-policy-by-item-type" class="page-section"> |
1274 |
<h2>[% IF humanbranch %]Holds policy by item type for [% Branches.GetName( humanbranch ) | html %][% ELSE %]Default holds policy by item type[% END %]</h2> |
1274 |
<h2>[%- IF humanbranch %]Holds policy by item type for [% Branches.GetName( humanbranch ) | html %][%- ELSE %]Default holds policy by item type[%- END %]</h2> |
1275 |
<p> |
1275 |
<p> |
1276 |
For this library, you can edit rules for given itemtypes, regardless of the patron's category. |
1276 |
For this library, you can edit rules for given itemtypes, regardless of the patron's category. |
1277 |
</p> |
1277 |
</p> |
Lines 1307-1368
Link Here
|
1307 |
<th> </th> |
1307 |
<th> </th> |
1308 |
</tr> |
1308 |
</tr> |
1309 |
[% FOREACH i IN itemtypeloop %] |
1309 |
[% FOREACH i IN itemtypeloop %] |
1310 |
[% SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %] |
1310 |
[%- SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %] |
1311 |
[% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %] |
1311 |
[%- SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %] |
1312 |
[% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %] |
1312 |
[%- SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %] |
1313 |
|
1313 |
|
1314 |
[% IF holdallowed || hold_fulfillment_policy || returnbranch %] |
1314 |
[%- IF holdallowed || hold_fulfillment_policy || returnbranch %] |
1315 |
<tr> |
1315 |
<tr> |
1316 |
<td> |
1316 |
<td> |
1317 |
[% i.translated_description | html %] |
1317 |
[% i.translated_description | html %] |
1318 |
</td> |
1318 |
</td> |
1319 |
<td> |
1319 |
<td> |
1320 |
[% IF holdallowed == 'from_any_library' %] |
1320 |
[%- IF holdallowed == 'from_any_library' %] |
1321 |
<span>From any library</span> |
1321 |
<span>From any library</span> |
1322 |
[% ELSIF holdallowed == 'from_local_hold_group' %] |
1322 |
[%- ELSIF holdallowed == 'from_local_hold_group' %] |
1323 |
<span>From local hold group</span> |
1323 |
<span>From local hold group</span> |
1324 |
[% ELSIF holdallowed == 'from_home_library' %] |
1324 |
[%- ELSIF holdallowed == 'from_home_library' %] |
1325 |
<span>From home library</span> |
1325 |
<span>From home library</span> |
1326 |
[% ELSE %] |
1326 |
[%- ELSE %] |
1327 |
<span>No holds allowed</span> |
1327 |
<span>No holds allowed</span> |
1328 |
[% END %] |
1328 |
[%- END %] |
1329 |
</td> |
1329 |
</td> |
1330 |
<td> |
1330 |
<td> |
1331 |
[% IF hold_fulfillment_policy == 'any' %] |
1331 |
[%- IF hold_fulfillment_policy == 'any' %] |
1332 |
<span>any library</span> |
1332 |
<span>any library</span> |
1333 |
[% ELSIF hold_fulfillment_policy == 'homebranch' %] |
1333 |
[%- ELSIF hold_fulfillment_policy == 'homebranch' %] |
1334 |
<span>item's home library</span> |
1334 |
<span>item's home library</span> |
1335 |
[% ELSIF hold_fulfillment_policy == 'holdgroup' %] |
1335 |
[%- ELSIF hold_fulfillment_policy == 'holdgroup' %] |
1336 |
<span>item's hold group</span> |
1336 |
<span>item's hold group</span> |
1337 |
[% ELSIF hold_fulfillment_policy == 'patrongroup' %] |
1337 |
[%- ELSIF hold_fulfillment_policy == 'patrongroup' %] |
1338 |
<span>patron's hold group</span> |
1338 |
<span>patron's hold group</span> |
1339 |
[% ELSIF hold_fulfillment_policy == 'holdingbranch' %] |
1339 |
[%- ELSIF hold_fulfillment_policy == 'holdingbranch' %] |
1340 |
<span>item's holding library</span> |
1340 |
<span>item's holding library</span> |
1341 |
[% END %] |
1341 |
[%- END %] |
1342 |
</td> |
1342 |
</td> |
1343 |
<td> |
1343 |
<td> |
1344 |
[% IF returnbranch == 'homebranch' %] |
1344 |
[%- IF returnbranch == 'homebranch' %] |
1345 |
<span>Item returns home</span> |
1345 |
<span>Item returns home</span> |
1346 |
[% ELSIF returnbranch == 'holdingbranch' %] |
1346 |
[%- ELSIF returnbranch == 'holdingbranch' %] |
1347 |
<span>Item returns to issuing branch</span> |
1347 |
<span>Item returns to issuing branch</span> |
1348 |
[% ELSIF returnbranch == 'noreturn' %] |
1348 |
[%- ELSIF returnbranch == 'noreturn' %] |
1349 |
<span>Item floats</span> |
1349 |
<span>Item floats</span> |
1350 |
[% ELSIF returnbranch == 'returnbylibrarygroup'%] |
1350 |
[%- ELSIF returnbranch == 'returnbylibrarygroup'%] |
1351 |
<span>Item floats by library group</span> |
1351 |
<span>Item floats by library group</span> |
1352 |
[% END %] |
1352 |
[%- END %] |
1353 |
</td> |
1353 |
</td> |
1354 |
<td class="actions"> |
1354 |
<td class="actions"> |
1355 |
<a href="#" class="delete-branch-item btn btn-default btn-xs" data-itemtype="[% i.itemtype | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
1355 |
<a href="#" class="delete-branch-item btn btn-default btn-xs" data-itemtype="[% i.itemtype | html %]" data-branch"[% current_branch | html %]"><i class="fa fa-trash-can"></i> Delete</a> |
1356 |
</td> |
1356 |
</td> |
1357 |
</tr> |
1357 |
</tr> |
1358 |
[% END %] |
1358 |
[%- END %] |
1359 |
[% END %] |
1359 |
[%- END %] |
1360 |
<tr> |
1360 |
<tr> |
1361 |
<td> |
1361 |
<td> |
1362 |
<select name="itemtype"> |
1362 |
<select name="itemtype"> |
1363 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
1363 |
[% FOREACH itemtypeloo IN itemtypeloop %] |
1364 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %]</option> |
1364 |
<option value="[% itemtypeloo.itemtype | html %]">[% itemtypeloo.translated_description | html %]</option> |
1365 |
[% END %] |
1365 |
[%- END %] |
1366 |
</select> |
1366 |
</select> |
1367 |
</td> |
1367 |
</td> |
1368 |
<td> |
1368 |
<td> |
Lines 1671-1675
Link Here
|
1671 |
|
1671 |
|
1672 |
}); |
1672 |
}); |
1673 |
</script> |
1673 |
</script> |
1674 |
[% END %] |
1674 |
[%- END %] |
1675 |
[% INCLUDE 'intranet-bottom.inc' %] |
1675 |
[% INCLUDE 'intranet-bottom.inc' %] |
1676 |
- |
|
|