{** * plugins/pubIds/urn/templates/urnSuffixEdit.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. * * Edit custom URN suffix for an object (issue, article, galley, supp file) *} {if $pubObject} {assign var=pubObjectType value=$pubIdPlugin->getPubObjectType($pubObject)} {assign var=enableObjectURN value=$pubIdPlugin->getSetting($currentJournal->getId(), "enable`$pubObjectType`URN")} {if $enableObjectURN}

{translate key="plugins.pubIds.urn.metadata"}

{assign var=storedPubId value=$pubObject->getStoredPubId($pubIdPlugin->getPubIdType())} {if !$excludeURN} {assign var=urnSuffixMethod value=$pubIdPlugin->getSetting($currentJournal->getId(), 'urnSuffix')} {if $urnSuffixMethod == 'customIdentifier' && !$storedPubId} {assign var=urnPrefix value=$pubIdPlugin->getSetting($currentJournal->getId(), 'urnPrefix')} {assign var=checkNo value=$pubIdPlugin->getSetting($currentJournal->getId(), 'checkNo')}
{fieldLabel name="urnSuffix" key="plugins.pubIds.urn.urnSuffix"} {$urnPrefix|escape} {if $checkNo}{/if}
{translate key="plugins.pubIds.urn.urnSuffix.description"}
{elseif $storedPubId}

{$storedPubId|escape}

{capture assign=translatedObjectType}{translate key="plugins.pubIds.urn.editor.urnObjectType"|cat:$pubObjectType}{/capture} {translate key="plugins.pubIds.urn.editor.urnClear.description" pubObjectType=$translatedObjectType}
{else}

{$pubIdPlugin->getPubId($pubObject, true)|escape}

{capture assign=translatedObjectType}{translate key="plugins.pubIds.urn.editor.urnObjectType"|cat:$pubObjectType}{/capture} {translate key="plugins.pubIds.urn.editor.urnNotYetGenerated" pubObjectType=$translatedObjectType}
{/if}
{/if} {capture assign=translatedObjectType}{translate key="plugins.pubIds.urn.editor.urnObjectType"|cat:$pubObjectType}{/capture} {translate key="plugins.pubIds.urn.editor.excludePubObject" pubObjectType=$translatedObjectType}
{if $pubObjectType == 'Issue'} {assign var=enableArticleURN value=$pubIdPlugin->getSetting($currentJournal->getId(), "enableArticleURN")} {assign var=enableGalleyURN value=$pubIdPlugin->getSetting($currentJournal->getId(), "enableGalleyURN")} {assign var=enableSuppFileURN value=$pubIdPlugin->getSetting($currentJournal->getId(), "enableSuppFileURN")} {if $enableArticleURN || $enableGalleyURN || $enableSuppFileURN}
{translate key="plugins.pubIds.urn.editor.excludeIssueObjectsURN.description"}


{translate key="plugins.pubIds.urn.editor.clearIssueObjectsURN.description"}

{/if} {/if}
{/if} {/if}