From aca21293382f5f4f6e3fcfb9ccf21191d9291de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Rosenstr=C3=B6m?= Date: Fri, 26 Mar 2021 12:22:35 +0100 Subject: [PATCH] Remove outer fileGrp element --- fgsMetsMods/templates/record.tpl | 40 +++++++++++++++----------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/fgsMetsMods/templates/record.tpl b/fgsMetsMods/templates/record.tpl index 57b35ad..c6cb21b 100644 --- a/fgsMetsMods/templates/record.tpl +++ b/fgsMetsMods/templates/record.tpl @@ -145,27 +145,25 @@ - - {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 $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}