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