From 939e97a3eb778689022f7a3e5ebbf1e4a1d1e060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Such=C3=A1nek?= Date: Tue, 23 Jun 2020 18:18:17 +0200 Subject: [PATCH] Release 1.6.0 --- CHANGELOG.md | 9 ++++++++- pom.xml | 2 +- .../metadata/dto/dashboard/DashboardItemDTO.java | 3 +++ .../resources/module/scripts/dialogs/about-dialog.html | 1 + .../resources/module/scripts/dialogs/post-fdp-dialog.js | 5 ++++- 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff08793..7c5348f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.6.0] + +### Changed + +- Verified compatibility with FAIR Data Point 1.6.0 + ## [1.5.0] ### Added @@ -104,10 +110,11 @@ Initial version based on reproducing functionality of deprecated [FAIRifier](htt - About dialog with basic information about the extension and its compatibility - Report a bug link to create a GitHub issue easily -[Unreleased]: /../../compare/v1.5.0...develop +[Unreleased]: /../../compare/v1.6.0...develop [1.0.0]: /../../tree/v1.0.0 [1.1.0]: /../../tree/v1.1.0 [1.2.0]: /../../tree/v1.2.0 [1.3.0]: /../../tree/v1.3.0 [1.4.0]: /../../tree/v1.4.0 [1.5.0]: /../../tree/v1.5.0 +[1.6.0]: /../../tree/v1.5.0 diff --git a/pom.xml b/pom.xml index 9053af6..84f055c 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ solutions.fairdata.openrefine metadata - 1.5.0 + 1.6.0 jar OpenRefine - FAIR Metadata extension diff --git a/src/main/java/solutions/fairdata/openrefine/metadata/dto/dashboard/DashboardItemDTO.java b/src/main/java/solutions/fairdata/openrefine/metadata/dto/dashboard/DashboardItemDTO.java index 4c0ea49..57fcf72 100644 --- a/src/main/java/solutions/fairdata/openrefine/metadata/dto/dashboard/DashboardItemDTO.java +++ b/src/main/java/solutions/fairdata/openrefine/metadata/dto/dashboard/DashboardItemDTO.java @@ -22,6 +22,7 @@ */ package solutions.fairdata.openrefine.metadata.dto.dashboard; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @@ -33,10 +34,12 @@ @AllArgsConstructor @Getter @Setter +@JsonIgnoreProperties(ignoreUnknown = true) public class DashboardItemDTO { protected String identifier; protected String uri; protected String title; + protected String state = "PUBLISHED"; protected List children; protected MembershipDTO membership; } diff --git a/src/main/resources/module/scripts/dialogs/about-dialog.html b/src/main/resources/module/scripts/dialogs/about-dialog.html index 8673a0e..4a41cc3 100644 --- a/src/main/resources/module/scripts/dialogs/about-dialog.html +++ b/src/main/resources/module/scripts/dialogs/about-dialog.html @@ -24,6 +24,7 @@
    +
  • 1.6
  • 1.5
  • 1.4
  • 1.3
  • diff --git a/src/main/resources/module/scripts/dialogs/post-fdp-dialog.js b/src/main/resources/module/scripts/dialogs/post-fdp-dialog.js index a082207..73fab95 100644 --- a/src/main/resources/module/scripts/dialogs/post-fdp-dialog.js +++ b/src/main/resources/module/scripts/dialogs/post-fdp-dialog.js @@ -493,12 +493,15 @@ class PostFdpDialog { showMetadataSelect(select, metadatas, toSelect) { metadatas.forEach((metadata) => { const isNew = this.newlyCreatedIRIs.has(metadata.uri); + const title = metadata.title + + (metadata.state === "DRAFT" ? " (draft)" : "") + + (isNew ? " [new]" : ""); select.append( $("