From d47307c65af2acd18df0f46ed6b9873df1bc1b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Rosenstr=C3=B6m?= Date: Wed, 24 Mar 2021 21:20:03 +0100 Subject: [PATCH] Use valid enumerable for file TYPE attribute --- fgsMetsMods/OAIMetadataFormat_FgsMetsMods.inc.php | 2 +- fgsMetsMods/templates/record.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fgsMetsMods/OAIMetadataFormat_FgsMetsMods.inc.php b/fgsMetsMods/OAIMetadataFormat_FgsMetsMods.inc.php index 7e38e91..3350fcd 100644 --- a/fgsMetsMods/OAIMetadataFormat_FgsMetsMods.inc.php +++ b/fgsMetsMods/OAIMetadataFormat_FgsMetsMods.inc.php @@ -58,7 +58,7 @@ function toXml($record, $format = null) { $dependentFileUrl = $request->url(null, 'article', 'download', [$article->getBestArticleId(), $galley->getBestGalleyId(), $dependentFile->getId()]); $fileGroup[] = [ - 'type' => 'embedded', + 'type' => 'supplement', 'file' => $dependentFile, 'url' => $dependentFileUrl, 'fileSize' => filesize($basePath . "/" . $dependentFile->getData('path')) diff --git a/fgsMetsMods/templates/record.tpl b/fgsMetsMods/templates/record.tpl index 7297d3f..57b35ad 100644 --- a/fgsMetsMods/templates/record.tpl +++ b/fgsMetsMods/templates/record.tpl @@ -175,8 +175,8 @@
getId()|escape}"/>
- {elseif $file.type == 'embedded'} -
+ {elseif $file.type == 'supplement'} +
getId()|escape}"/>
{/if}