Lines 209-214
sub rule_kinds {
Link Here
|
209 |
|
209 |
|
210 |
=head3 get_effective_rule |
210 |
=head3 get_effective_rule |
211 |
|
211 |
|
|
|
212 |
my $effective_rule = Koha::CirculationRules->get_effective_rule( |
213 |
{ |
214 |
rule_name => $name, |
215 |
categorycode => $categorycode, |
216 |
itemtype => $itemtype, |
217 |
branchcode => $branchcode |
218 |
} |
219 |
); |
220 |
|
221 |
Return the effective rule object for the rule associated with the criteria passed. |
222 |
|
223 |
|
212 |
=cut |
224 |
=cut |
213 |
|
225 |
|
214 |
sub get_effective_rule { |
226 |
sub get_effective_rule { |
Lines 252-257
sub get_effective_rule {
Link Here
|
252 |
return $rule; |
264 |
return $rule; |
253 |
} |
265 |
} |
254 |
|
266 |
|
|
|
267 |
=head3 get_effective_rule_value |
268 |
|
269 |
my $effective_rule_value = Koha::CirculationRules->get_effective_rule_value( |
270 |
{ |
271 |
rule_name => $name, |
272 |
categorycode => $categorycode, |
273 |
itemtype => $itemtype, |
274 |
branchcode => $branchcode |
275 |
} |
276 |
); |
277 |
|
278 |
Return the effective value for the rule associated with the criteria passed. |
279 |
|
280 |
This is a cached method so should be used in preference to get_effective_rule where possible |
281 |
to aid performance. |
282 |
|
283 |
=cut |
284 |
|
255 |
sub get_effective_rule_value { |
285 |
sub get_effective_rule_value { |
256 |
my ( $self, $params ) = @_; |
286 |
my ( $self, $params ) = @_; |
257 |
|
287 |
|
Lines 600-606
sub guess_article_requestable_itemtypes {
Link Here
|
600 |
return $res; |
630 |
return $res; |
601 |
} |
631 |
} |
602 |
|
632 |
|
603 |
=head3 get_daysmode_effective_value |
633 |
=head3 get_effective_daysmode |
604 |
|
634 |
|
605 |
Return the value for daysmode defined in the circulation rules. |
635 |
Return the value for daysmode defined in the circulation rules. |
606 |
If not defined (or empty string), the value of the system preference useDaysMode is returned |
636 |
If not defined (or empty string), the value of the system preference useDaysMode is returned |
607 |
- |
|
|