19declare(strict_types=1);
37 protected CopyrightRepository $repository,
38 protected Settings $settings,
39 protected OERHarvesterSettings $harvester_settings,
40 protected CopyrightIDHandler $copyright_id_handler
52 return !empty($this->entries);
66 if (!isset($this->entries)) {
67 $this->entries = iterator_to_array($this->
repository->getAllEntries());
73 return $this->copyright_id_handler->parseEntryIDFromIdentifier($description);
78 return $this->copyright_id_handler->buildIdentifierFromEntryID($entry_id);
83 return $this->harvester_settings->isObjectTypeSelectedForPublishing($type);
88 return $this->harvester_settings->isCopyrightEntryIDSelectedForPublishing($entry->
id());