[Koha-bugs] [Bug 27507] Search host record using control number identifier / organization code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 19 11:08:52 CEST 2021


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

--- Comment #10 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
hmm, also $w appears to be repeatable.. should we be iterating here?

My thoughts so far.. we need a new function that.

1. Iterates through $w subfields and looks for one of the following:
1a. (RCI)Controlnumber where the RCI matches the OrgCode syspref
1b. Controlnumber
2. Once we've found the form we're expecting from above (1a in preference to 1b
if both exist).
3. Produce the search string 'control-number=Controlnumber' for 1b. or
`control-number=Controlnumber AND rci=RCI` if 1a is found.  It may also be
helpful to add the `OR control-number=Controlnumber` search to 1a to account
for cases where OrgCode was added to new children but was is missing from the
host?

Does this sound viable?

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


More information about the Koha-bugs mailing list