[Koha-bugs] [Bug 10662] Build OAI-PMH Harvesting Client

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 9 07:34:34 CET 2022


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

--- Comment #317 from David Cook <dcook at prosentient.com.au> ---
Occasionally I think about how I could do an OAI-PMH harvester plugin, but the
tough part is that the harvester would need extra database tables, and I think
having a plugin changing the database schema is not a great idea (or even
possible depending on your database permissions).

I suppose a person could take the OAI-PMH repository URL and the OAI-PMH record
identifier, then hash them together, and then store that on a file system as a
file. The content of that file could then contain additional data (like the
Koha biblionumber).

Of course, writing a lot of files to the same directory can be problematic, but
Fedora Commons has already done some math on that and has recommended pair-tree
patterns for creating an optimized sub-folder structure. 

--

I think that would just leave the need for a "koha-plugin" command that can
invoke a particular plugin from the command line. A sysadmin could then
schedule that whenever.

Alternatively, one could use the "cronjob_nightly" Koha plugin hook. 

--

It wouldn't be all things to all people, but it would be a minimum viable
OAI-PMH harvester...

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


More information about the Koha-bugs mailing list