Minor fixes

git-svn-id: http://svn.research-infrastructures.eu/d4science/gcube/trunk/spatial-data/geonetwork@182088 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Fabio Sinibaldi 2019-10-23 15:18:11 +00:00
parent ed1843e1f2
commit 0adfc293a9
5 changed files with 14 additions and 5 deletions

View File

@ -8,7 +8,7 @@
</parent>
<groupId>org.gcube.spatial.data</groupId>
<artifactId>geonetwork</artifactId>
<version>3.2.3-SNAPSHOT</version>
<version>3.4.0-SNAPSHOT</version>
<name>geonetwork</name>
<properties>

View File

@ -40,4 +40,11 @@ public class KeywordSet {
public void addKeyword(String toAdd) {
this.values.add(toAdd);
}
public KeywordSet(Set<String> values) {
super();
this.values = values;
}
}

View File

@ -4,7 +4,7 @@ import java.util.Date;
import org.gcube.spatial.data.geonetwork.iso.EnvironmentConfiguration;
import org.gcube.spatial.data.geonetwork.iso.GcubeISOMetadata;
import org.gcube.spatial.data.geonetwork.iso.tpl.keys.Thesaurus;
import org.gcube.spatial.data.geonetwork.iso.Thesaurus;
import org.gcube.spatial.data.geonetwork.utils.ScopeUtils;
import org.geotoolkit.metadata.iso.extent.DefaultExtent;
import org.opengis.metadata.citation.PresentationForm;

View File

@ -102,7 +102,7 @@ public class TrueMarbleMeta {
desc.setAbstractField("My Abstract Field");
desc.getCredits().add("Fatto io");
desc.addCredits("Fatto io");
desc.setCreationTime(new GregorianCalendar().getTime());
VectorRepresentation representation=new VectorRepresentation(
@ -116,8 +116,10 @@ public class TrueMarbleMeta {
Collections.singleton("Species distribution"),
Thesaurus.INSPIRE_THEMES));
desc.addKeywordSet(new KeywordSet(Collections.singleton("My keyword")));
desc.setPublicationTime(desc.getCreationTime());
desc.setPublicationTime(new GregorianCalendar(1990, 2, 14).getTime());
desc.setPurpose("Just for fun");
desc.setTitle("Il mio bel titolone");
desc.setUUIDIdentifier(UUID.randomUUID().toString());

View File

@ -39,7 +39,7 @@
<!-- PUBLICATION TIME -->
<gmd:dateStamp>
<gco:DateTime>${.now?iso_utc}</gco:DateTime>
<gco:DateTime>${publicationTime?datetime?iso_utc!.now?iso_utc}</gco:DateTime>
</gmd:dateStamp>
<gmd:metadataStandardName>