{** * @file plugins/pubIds/doi/templates/doiSuffixEdit.tpl * * Copyright (c) 2014-2018 Simon Fraser University * Copyright (c) 2003-2018 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Edit custom DOI suffix for an object (issue, submission, galley) *} {assign var=pubObjectType value=$pubIdPlugin->getPubObjectType($pubObject)} {assign var=enableObjectDoi value=$pubIdPlugin->getSetting($currentContext->getId(), "enable`$pubObjectType`Doi")} {if $enableObjectDoi} {assign var=storedPubId value=$pubObject->getStoredPubId($pubIdPlugin->getPubIdType())} {fbvFormArea id="pubIdDOIFormArea" class="border" title="plugins.pubIds.doi.editor.doi"} {assign var=formArea value=true} {if $pubIdPlugin->getSetting($currentContext->getId(), 'doiSuffix') == 'customId' || $storedPubId} {if empty($storedPubId)} {* edit custom suffix *} {fbvFormSection}
{translate key="plugins.pubIds.doi.manager.settings.doiSuffix.description"}
{fbvElement type="text" label="plugins.pubIds.doi.manager.settings.doiPrefix" id="doiPrefix" disabled=true value=$pubIdPlugin->getSetting($currentContext->getId(), 'doiPrefix') size=$fbvStyles.size.SMALL} {fbvElement type="text" label="plugins.pubIds.doi.manager.settings.doiSuffix" id="doiSuffix" value=$doiSuffix size=$fbvStyles.size.MEDIUM} {/fbvFormSection} {if $canBeAssigned} {assign var=templatePath value=$pubIdPlugin->getTemplatePath()} {include file="`$templatePath`doiAssignCheckBox.tpl" pubId="" pubObjectType=$pubObjectType} {else}{translate key="plugins.pubIds.doi.editor.customSuffixMissing"}
{/if} {else} {* stored pub id and clear option *} {fbvFormSection}
{$storedPubId|escape}
{capture assign=translatedObjectType}{translate key="plugins.pubIds.doi.editor.doiObjectType"|cat:$pubObjectType}{/capture}
{capture assign=assignedMessage}{translate key="plugins.pubIds.doi.editor.assigned" pubObjectType=$translatedObjectType}{/capture}
{$assignedMessage}
{include file="linkAction/linkAction.tpl" action=$clearPubIdLinkActionDoi contextId="publicIdentifiersForm"} {/fbvFormSection} {/if} {else} {* pub id preview *}{$pubIdPlugin->getPubId($pubObject)|escape}
{if $canBeAssigned}{translate key="plugins.pubIds.doi.editor.canBeAssigned"}
{assign var=templatePath value=$pubIdPlugin->getTemplatePath()} {include file="`$templatePath`doiAssignCheckBox.tpl" pubId="" pubObjectType=$pubObjectType} {else}{translate key="plugins.pubIds.doi.editor.patternNotResolved"}
{/if} {/if} {/fbvFormArea} {/if} {* issue pub object *} {if $pubObjectType == 'Issue'} {assign var=enableSubmissionDoi value=$pubIdPlugin->getSetting($currentContext->getId(), "enableSubmissionDoi")} {assign var=enableRepresentationDoi value=$pubIdPlugin->getSetting($currentContext->getId(), "enableRepresentationDoi")} {if $enableSubmissionDoi || $enableRepresentationDoi} {if !$formArea} {assign var="formAreaTitle" value="plugins.pubIds.doi.editor.doi"} {else} {assign var="formAreaTitle" value=""} {/if} {fbvFormArea id="pubIdDOIFormArea" class="border" title=$formAreaTitle} {fbvFormSection list="true" description="plugins.pubIds.doi.editor.clearIssueObjectsDoi.description"} {include file="linkAction/linkAction.tpl" action=$clearIssueObjectsPubIdsLinkActionDoi contextId="publicIdentifiersForm"} {/fbvFormSection} {/fbvFormArea} {/if} {/if}