[Koha-bugs] [Bug 24807] Add "year" type to improve sorting by publication date

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 16 15:59:24 CEST 2020


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

--- Comment #15 from David Gustafsson <glasklas at gmail.com> ---
At first did not realize that one case is split up one subfield value into
multiple ones. The way filter_callbacks works (it might be a bit overkill to
allow multiple callbacks, but that is the way it is right now), is that the
value returned is passed on to the next callback. So if you return an array the
next callback (if one would exist) would expect a scalar and crash. I found a
way around this by creating a new kind of callback, "tokenize_callbacks", so
that the rest of the callback can keep their current function signature. Will
be back with patch to demonstrate this in a while.

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


More information about the Koha-bugs mailing list