Skip to content

Commit

Permalink
Update OaiService.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ipf authored Apr 3, 2023
1 parent 8e94c26 commit 5f54556
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Service/OaiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,10 @@ private function getRecords(array &$arr): array
$arrResult['metadata'][$i]['dc:language'] = $document->getLanguage();
$arrResult['metadata'][$i]['dc:publisher'] = $document->getPublisher();
$arrResult['metadata'][$i]['dc:date'][0] = $document->getPublishingYear();
$arrResult['metadata'][$i]['dc:type'][0] = $this->oaiConfiguration['metadata_format_options']['oai_dc']['identifier'][$document->getType()];
try {
$arrResult['metadata'][$i]['dc:type'][0] = $this->oaiConfiguration['metadata_format_options']['oai_dc']['identifier'][$document->getType()];
} catch (\ErrorException $errorException) {
}
$arrResult['metadata'][$i]['dc:type'][1] = $this->oaiConfiguration['metadata_format_options']['oai_dc']['default']['dc:type'];
$arrResult['metadata'][$i]['dc:format'][0] = 'image/jpeg';
$arrResult['metadata'][$i]['dc:format'][1] = 'application/pdf';
Expand Down

0 comments on commit 5f54556

Please sign in to comment.