Skip to content

Commit 6f2dde6

Browse files
authored
Merge pull request pkp#305 from bozana/1527-layout-fix
pkp/pkp-lib#1527 UI fixes
2 parents 19fe116 + b8ec158 commit 6f2dde6

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

plugins/pubIds/doi/locale/en_US/locale.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
<message key="plugins.pubIds.doi.editor.doiObjectTypeSubmission">monograph</message>
5353
<message key="plugins.pubIds.doi.editor.doiObjectTypeRepresentation">publication format</message>
5454
<message key="plugins.pubIds.doi.editor.doiObjectTypeSubmissionFile">file</message>
55-
<message key="plugins.pubIds.doi.editor.doiNotYetGenerated">What you see is a preview of the DOI that may be incomplete. A DOI has not yet been generated.</message>
55+
<message key="plugins.pubIds.doi.editor.customSuffixMissing">The DOI cannot be assigned because the custom suffix is missing.</message>
56+
<message key="plugins.pubIds.doi.editor.patternNotResolved">The DOI cannot be assigned because it contains an unresolved pattern.</message>
57+
<message key="plugins.pubIds.doi.editor.canBeAssigned">What you see is a preview of the DOI. Select the checkbox and save the form to assign the DOI.</message>
58+
<message key="plugins.pubIds.doi.editor.assigned">The DOI is assigned to this {$pubObjectType}.</message>
5659
<message key="plugins.pubIds.doi.editor.doiSuffixCustomIdentifierNotUnique">The given DOI suffix is already in use for another published item. Please enter a unique DOI suffix for each item.</message>
5760
<message key="plugins.pubIds.doi.editor.clearObjectsDoi">Clear DOI</message>
5861
<message key="plugins.pubIds.doi.editor.clearObjectsDoi.confirm">Are you sure you wish to delete the existing DOI?</message>

plugins/pubIds/doi/templates/doiAssign.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
{assign var=pubObjectType value=$pubIdPlugin->getPubObjectType($pubObject)}
1212
{assign var=enableObjectDoi value=$pubIdPlugin->getSetting($currentContext->getId(), "enable`$pubObjectType`Doi")}
1313
{if $enableObjectDoi}
14+
{fbvFormArea id="pubIdDOIFormArea" class="border" title="plugins.pubIds.doi.editor.doi"}
1415
{if $pubObject->getStoredPubId($pubIdPlugin->getPubIdType())}
1516
{fbvFormSection}
1617
<p class="pkp_help">{translate key="plugins.pubIds.doi.editor.assignDoi.assigned" pubId=$pubObject->getStoredPubId($pubIdPlugin->getPubIdType())}</p>
@@ -30,4 +31,5 @@
3031
{include file="`$templatePath`doiAssignCheckBox.tpl" pubId=$pubId pubObjectType=$pubObjectType}
3132
{/if}
3233
{/if}
34+
{/fbvFormArea}
3335
{/if}

plugins/pubIds/doi/templates/doiSuffixEdit.tpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,26 @@
2424
{if $canBeAssigned}
2525
{assign var=templatePath value=$pubIdPlugin->getTemplatePath()}
2626
{include file="`$templatePath`doiAssignCheckBox.tpl" pubId="" pubObjectType=$pubObjectType}
27+
{else}
28+
<p class="pkp_help">{translate key="plugins.pubIds.doi.editor.customSuffixMissing"}</p>
2729
{/if}
2830
{else} {* stored pub id and clear option *}
2931
<p>
3032
{$storedPubId|escape}<br />
33+
{capture assign=translatedObjectType}{translate key="plugins.pubIds.doi.editor.doiObjectType"|cat:$pubObjectType}{/capture}
34+
{capture assign=assignedMessage}{translate key="plugins.pubIds.doi.editor.assigned" pubObjectType=$translatedObjectType}{/capture}
35+
<p class="pkp_help">{$assignedMessage}</p>
3136
{include file="linkAction/linkAction.tpl" action=$clearPubIdLinkActionDoi contextId="publicIdentifiersForm"}
3237
</p>
3338
{/if}
3439
{else} {* pub id preview *}
3540
<p>{$pubIdPlugin->getPubId($pubObject)|escape}</p>
3641
{if $canBeAssigned}
42+
<p class="pkp_help">{translate key="plugins.pubIds.doi.editor.canBeAssigned"}</p>
3743
{assign var=templatePath value=$pubIdPlugin->getTemplatePath()}
3844
{include file="`$templatePath`doiAssignCheckBox.tpl" pubId="" pubObjectType=$pubObjectType}
3945
{else}
40-
<p class="pkp_help">{translate key="plugins.pubIds.doi.editor.doiNotYetGenerated"}</p>
46+
<p class="pkp_help">{translate key="plugins.pubIds.doi.editor.patternNotResolved"}</p>
4147
{/if}
4248
{/if}
4349
{/fbvFormArea}

0 commit comments

Comments
 (0)