[Koha-bugs] [Bug 29268] Query used in Koha::Biblio->get_marc_host is incorrect

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 12 17:53:40 CET 2021


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

--- Comment #4 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
It took some leaps to work through this one... the host_record.t tests is
failing for one case, but I'm not sure I understand the logic of what it's
testing.

In this change, we iterate through all 773 fields and their corresponding `w`
subfields.  We build an array of search options from this in order of most
specific to least specific (our cni followed by any cni followed by just cn)
searches.. we then execute these searches in order until we find one that has
just a singular search match at which point we jump out of the loop and
continue as we did before.

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


More information about the Koha-bugs mailing list