Skip to content

Commit

Permalink
Use valid enumerable for file TYPE attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosenstrom committed Mar 24, 2021
1 parent 6bd5ee6 commit d47307c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fgsMetsMods/OAIMetadataFormat_FgsMetsMods.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down
4 changes: 2 additions & 2 deletions fgsMetsMods/templates/record.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@
<div TYPE="publication">
<fptr FILEID="{"FILE"|cat: $file.file->getId()|escape}"/>
</div>
{elseif $file.type == 'embedded'}
<div TYPE="embedded">
{elseif $file.type == 'supplement'}
<div TYPE="supplement">
<fptr FILEID="{"FILE"|cat: $file.file->getId()|escape}"/>
</div>
{/if}
Expand Down

0 comments on commit d47307c

Please sign in to comment.