{** * templates/submission/suppFile/suppFile.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Add/edit a supplementary file. * *} {strip} {if $suppFileId} {assign var="pageTitle" value="author.submit.editSupplementaryFile"} {else} {assign var="pageTitle" value="author.submit.addSupplementaryFile"} {/if} {assign var="pageCrumbTitle" value="submission.supplementaryFiles"} {include file="common/header.tpl"} {/strip}
{include file="common/formErrors.tpl"} {if count($formLocales) > 1}
{fieldLabel name="formLocale" key="form.formLanguage"} {if $suppFileId}{url|assign:"formUrl" op="editSuppFile" path=$articleId|to_array:$suppFileId from=$from escape=false} {else}{url|assign:"formUrl" op="addSuppFile" path=$articleId from=$from escape=false} {/if} {form_language_chooser form="suppFile" url=$formUrl} {translate key="form.formLanguage.description"}
{/if}

{translate key="author.submit.supplementaryFileData"}

{translate key="author.submit.supplementaryFileDataDescription"}

{if $enablePublicSuppFileId} {/if}
{fieldLabel name="title" required="true" key="common.title"}
{fieldLabel name="publicSuppFileId" key="author.suppFile.publicSuppFileIdentifier"}
{fieldLabel name="creator" key="author.submit.suppFile.createrOrOwner"}
{fieldLabel name="subject" key="common.subject"}
{fieldLabel name="type" key="common.type"}
{translate key="author.submit.suppFile.specifyOtherType"}:
{fieldLabel name="description" key="author.submit.suppFile.briefDescription"}
{fieldLabel name="publisher" key="common.publisher"}
{translate key="author.submit.suppFile.publisherDescription"}
{fieldLabel name="sponsor" key="author.submit.suppFile.contributorOrSponsor"}
{fieldLabel name="dateCreated" key="common.date"} {translate key="submission.date.yyyymmdd"}
{translate key="author.submit.suppFile.dateDescription"}
{fieldLabel name="source" key="common.source"}
{translate key="author.submit.suppFile.sourceDescription"}
{fieldLabel name="language" key="common.language"}
{translate key="author.submit.languageInstructions"}
{foreach from=$pubIdPlugins item=pubIdPlugin} {assign var=pubIdMetadataFile value=$pubIdPlugin->getPubIdMetadataFile()} {include file="$pubIdMetadataFile" pubObject=$suppFile} {/foreach} {call_hook name="Templates::Submission::SuppFile::AdditionalMetadata"}

{translate key="author.submit.supplementaryFileUpload"}

{if $suppFile && $suppFile->getRemoteURL()}
{fieldLabel name="remoteURL" required="true" key="submission.layout.galleyRemoteURL"}
{else} {if $suppFile && $suppFile->getFileId()} {translate key="common.fileName"} getFileId()}">{$suppFile->getFileName()|escape} {translate key="common.originalFileName"} {$suppFile->getOriginalFileName()|escape} {translate key="common.fileSize"} {$suppFile->getNiceFileSize()} {translate key="common.dateUploaded"} {$suppFile->getDateUploaded()|date_format:$dateFormatShort}
{else} {translate key="author.submit.suppFile.noFile"} {/if}
{if not ($suppFile && $suppFile->getFileId())} {/if}
{if $suppFile && $suppFile->getFileId()} {fieldLabel name="uploadSuppFile" key="common.replaceFile"} {else} {fieldLabel name="uploadSuppFile" key="common.upload"} {/if}   {translate key="author.submit.supplementaryFiles.saveToUpload"}
   
{/if}

{translate key="common.requiredField"}

{include file="common/footer.tpl"}