How heroesoebekti/slims-oai-pmh-harvester works
This is a SLiMS plugin for harvesting OAI-PMH repository records into the library catalog. An administrator opens its bibliography menu, manages repository-node settings, and starts an append or fresh harvest; the process streams progress while fetching OAI-DC records, parsing metadata, saving catalog and harvest-link data, and indexing bibliographies. The sampled code supports the main control flow and parsing; node management, catalog persistence and integrations are only partly visible in excerpts.
Main entry points: harvesting_process.php Harvest process · harvesting.php Repository management · plugin.php Plugin menu · oai_parser_helper.php Metadata parser
Components 15
Administration
- Plugin menu
plugin.php - Repository management
harvesting.php - Harvest node settings
harvesting.php
Harvesting
- Harvest process
harvesting_process.php - OAI-PMH client
harvesting_process.php - Progress stream
harvesting_process.php
Catalog ingestion
- Metadata parser
oai_parser_helper.php - Bibliography records
harvesting_process.php - Harvest relationships
harvesting_process.php - Authors and topics
harvesting_process.php - External links
harvesting_process.php - Bibliography indexer
harvesting_process.php
Other components
- SLiMS administrator
- OAI-PMH repository
- SLiMS services
Connections 17
- SLiMS administrator → Plugin menu: opens menu
plugin.php - Plugin menu → Repository management: registers page
plugin.php - SLiMS administrator → Repository management: manages nodes
harvesting.php - Repository management → Harvest node settings: saves and deletes
harvesting.php - Repository management → Harvest process: starts harvest
harvesting.php - Harvest process → Harvest node settings: loads node
harvesting_process.php - Harvest process → OAI-PMH client: creates client
harvesting_process.php - OAI-PMH client → OAI-PMH repository: fetches records
- Harvest process → Metadata parser: parses metadata
harvesting_process.php - Harvest process → Bibliography records: writes records
harvesting_process.php - Harvest process → Harvest relationships: tracks harvested IDs
harvesting_process.php - Harvest process → Authors and topics: writes authors/topics
harvesting_process.php - Harvest process → External links: stores external URLs
harvesting_process.php - Harvest process → Bibliography indexer: constructs indexer
harvesting_process.php - Harvest process → Progress stream: emits progress
harvesting_process.php - Repository management → Progress stream: receives events
harvesting.php - Metadata parser → SLiMS services: looks up IDs
oai_parser_helper.php