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:
parent
ed1843e1f2
commit
0adfc293a9
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue