Bugfixes for the authoring steps of InternetArticle

pull/1/head
Jens Pelzetter 2022-08-27 18:36:42 +02:00
parent 603616beba
commit 76ca5366f9
3 changed files with 4 additions and 4 deletions

View File

@ -97,13 +97,13 @@ public class InternetArticleExtendedPropertiesStep
propertiesStepModel.setIssn(getPublication().getIssn());
propertiesStepModel.setLastAccessed(
Optional
.of(getPublication().getLastAccessed())
.ofNullable(getPublication().getLastAccessed())
.map(date -> isoDateFormatter.format(date))
.orElse(null)
);
propertiesStepModel.setPublicationDate(
Optional
.of(getPublication().getPublicationDate())
.ofNullable(getPublication().getPublicationDate())
.map(date -> isoDateFormatter.format(date))
.orElse(null)
);
@ -147,7 +147,7 @@ public class InternetArticleExtendedPropertiesStep
final String publicationDateParam,
@FormParam("urn")
final String urn,
@FormParam("doe")
@FormParam("doi")
final String doi
) {
try {

View File

@ -122,7 +122,7 @@
confirmLabel="#{SciPublicationsUiMessageBundle['internetarticle.basicproperties.organization.confirm']}"
dialogId="remove-organization-dialog"
dialogTitle="#{SciPublicationsUiMessageBundle['internetarticle.basicproperties.organization.title']}"
message="#{SciPublicationsUiMessageBundle.getMessage('internetarticle.basicproperties.organization.message', [CmsSelectedDocumentModel.name, SciCmsInternetArticlePropertiesStepModel.organization])}"
message="#{SciPublicationsUiMessageBundle.getMessage('internetarticle.basicproperties.organization.message', [CmsSelectedDocumentModel.itemName, SciCmsInternetArticlePropertiesStepModel.organizationName])}"
/>
</c:if>
</c:otherwise>