From 6bd5ee6f7122fbbcc3aabc22dd5f7b2146198211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Rosenstr=C3=B6m?= Date: Mon, 22 Mar 2021 16:06:56 +0100 Subject: [PATCH] Minor changes to satisfy Mimer validation --- fgsMetsMods/templates/record.tpl | 52 +++++++++++++++++--------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/fgsMetsMods/templates/record.tpl b/fgsMetsMods/templates/record.tpl index 8d22293..7297d3f 100644 --- a/fgsMetsMods/templates/record.tpl +++ b/fgsMetsMods/templates/record.tpl @@ -47,7 +47,7 @@ - gratis journal article - text + text {assign var=authors value=$article->getAuthors()} {foreach from=$authors item=author} @@ -144,42 +144,44 @@ + + + {foreach $fileGroups as $fileGroup} + + {foreach $fileGroup as $fileInfo} + {assign var=file value=$fileInfo.file} + getId()|escape}" MIMETYPE="{$file->getdata('mimetype')|escape}" + {if $file->getdata('mimetype') == "application/pdf"} + USE="Portable document format (PDF)" + {elseif $file->getdata('mimetype') == "text/xml" or $file->getdata('mimetype') == "application/xml"} + USE="Extensible markup language (XML)" + {else} + USE="{$file->getdata('mimetype')|regex_replace:"#.*/#":""|upper|escape}" + {/if} + SIZE="{$fileInfo.fileSize|escape}" + CREATED="{$file->getDateModified()|strftime|date_format:'c'|escape}"> + + + {/foreach} + + {/foreach} + +
{foreach $fileGroups as $fileGroup} {foreach $fileGroup as $file} {if $file.type == 'main'}
- + getId()|escape}"/>
{elseif $file.type == 'embedded'}
- + getId()|escape}"/>
{/if} {/foreach} {/foreach}
- - - {foreach $fileGroups as $fileGroup} - - {foreach $fileGroup as $fileInfo} - {assign var=file value=$fileInfo.file} - getdata('mimetype') == "application/pdf"} - USE="Portable document format (PDF)" - {elseif $file->getdata('mimetype') == "text/xml" or $file->getdata('mimetype') == "application/xml"} - USE="Extensible Markup Language (XML)" - {/if} - SIZE="{$fileInfo.fileSize|escape}" - CREATED="{$file->getDateModified()|strftime|date_format:'c'|escape}"> - - - {/foreach} - - {/foreach} - -