task_20210 #1
|
@ -4,12 +4,13 @@
|
|||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.0.3-SNAPSHOT] - 2020-11-30
|
||||
## [v1.1.0-SNAPSHOT] - 2020-12-1
|
||||
|
||||
#### Enhancements
|
||||
|
||||
[#20210] Updating required for data entry facility after the first feedback by domain experts
|
||||
|
||||
Moved to 'geoportal-client'
|
||||
|
||||
|
||||
## [v1.0.2-SNAPSHOT] - 2020-11-09
|
||||
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -14,7 +14,7 @@
|
|||
<groupId>org.gcube.portlets.user</groupId>
|
||||
<artifactId>geoportal-data-entry-app</artifactId>
|
||||
<packaging>war</packaging>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<version>1.1.0-SNAPSHOT</version>
|
||||
<name>GeoPortal Data Entry App</name>
|
||||
<description>The GeoPortal Data Entry App is an application to build the web forms for data entries needed to GeoNa project</description>
|
||||
<scm>
|
||||
|
|
|
@ -256,6 +256,16 @@ public class ConvertToServiceModel {
|
|||
//TODO
|
||||
}
|
||||
|
||||
List<String> politicaDiAccessoLst = mapFields.get("Politica di accesso");
|
||||
if(politicaDiAccessoLst!=null && politicaDiAccessoLst.size()>0) {
|
||||
try {
|
||||
AccessPolicy ap = AccessPolicy.valueOf(politicaDiAccessoLst.get(0));
|
||||
uplaodedImage.setPolicy(ap);
|
||||
}catch (Exception e) {
|
||||
LOG.warn("I cannot cast "+politicaDiAccessoLst.get(0) +" to "+AccessPolicy.values(),e);
|
||||
}
|
||||
}
|
||||
|
||||
List<String> licenzaIdList = mapFields.get("ID Licenza");
|
||||
if(licenzaIdList!=null && licenzaIdList.size()>0) {
|
||||
uplaodedImage.setLicenseID(licenzaIdList.get(0));
|
||||
|
@ -312,6 +322,11 @@ public class ConvertToServiceModel {
|
|||
layerConcessione.setScalaAcquisizione(scalaAcquisizioneLst.get(0));
|
||||
}
|
||||
|
||||
List<String> licenzaIdList = mapFields.get("ID Licenza");
|
||||
if(licenzaIdList!=null && licenzaIdList.size()>0) {
|
||||
layerConcessione.setLicenseID(licenzaIdList.get(0));
|
||||
}
|
||||
|
||||
List<String> autoreLst = mapFields.get("Autore");
|
||||
if(autoreLst!=null) {
|
||||
layerConcessione.setAuthors(autoreLst);
|
||||
|
|
Loading…
Reference in New Issue