From de1b3a8f9f728d13df97326635987271e629e530 Mon Sep 17 00:00:00 2001 From: David Maus Date: Tue, 2 Jan 2024 10:44:18 +0100 Subject: [PATCH] Map electronic article to OpenURL article --- module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php b/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php index 9ed22b06959..5cdf2966f41 100644 --- a/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php +++ b/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php @@ -734,9 +734,9 @@ protected function getOpenUrlFormat() $formats = $this->getFormats(); if (in_array('Book', $formats) || in_array('eBook', $formats)) { return 'Book'; - } elseif (in_array('Article', $formats)) { + } elseif (in_array('Article', $formats) || in_array('electronic Article', $formats)) { return 'Article'; - } elseif (in_array('Journal', $formats)) { + } elseif (in_array('Journal', $formats) || in_array('eJournal', $formats)) { return 'Journal'; } elseif (strlen($this->getCleanISSN()) > 0) { // If the record has an ISSN and we have not already