[Koha-bugs] [Bug 33268] Overlay rules don't work correctly when source is set to *

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 14 16:41:27 CET 2023


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

--- Comment #8 from David Gustafsson <glasklas at gmail.com> ---
To summarize how the rules would be applied in a less convoluted way, for a
specific tag and context:

First all the rules for the matching module filter combination (context) are
evaluated, if there is a match, that rule applies.

If no rule was matched then rules for the wildcard filter are evaluated.

There is another issue to address, and that is module priority. Say we have two
or more matching context with different modules, which one applies? I think
this is an oversight in the current implementation, and we have to make sure we
loop through modules in a specific predefined order. Right now we just loop
though the hash keys of "context" provided to the function merge_record in
effect resulting in random order. I will have a go at patch addressing both the
merging issue, and priority of modules.

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


More information about the Koha-bugs mailing list