[Koha-bugs] [Bug 29012] Some rules are not saved when left blank while editing a 'rule' line in smart-rules.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 20 13:46:48 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29012

--- Comment #5 from Kevin Carnes <kevin.carnes at ub.lu.se> ---
It's possible to search the circulation rules for the branch code, category
code, and item type with either the specified values or null. The results can
be sorted to get the most relevant value for each of the 3 parameters. These 3
values can be used to search for the rule. If there is no rule, the default
value of the rule can be used.

This should give the same result as the patch, but it makes looking up a rule a
little more complicated.

If it's better to keep the ability to inherit or fall back to a less specific
set of rules, it would be necessary to specify if a value should be default or
inherited when defining the rules (e.g. using a special value or checking a
box). Rules that should be inherited wouldn't be saved and the current method
of finding rules should fall back to the most relevant value of the rule.

There is a problem since some rules depend on other rules (e.g. lengthunit). It
would be necessary to either make sure that these rules are retrieved from the
same set of rules or make these values self-contained (e.g. length and unit in
the same value).

As it is now, it's possible to retrieve the lengthunit from a set of rules
without an issuelength and the issuelength from a less specific set of rules
with a different lengthunit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list