Compare commits
4 Commits
90466b296c
...
f60c3b649c
Author | SHA1 | Date |
---|---|---|
Fabio Sinibaldi | f60c3b649c | |
Fabio Sinibaldi | 306c6723b8 | |
Fabio Sinibaldi | 5b969ac2cb | |
Fabio Sinibaldi | 70d7802cbe |
4
pom.xml
4
pom.xml
|
@ -8,7 +8,7 @@
|
|||
</parent>
|
||||
<groupId>org.gcube.data.publishing</groupId>
|
||||
<artifactId>ckan2zenodo-library</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<version>1.0.3</version>
|
||||
<name>CKAN 2 Zenodo Library</name>
|
||||
<description>Library to publish d4science CKAN items into Zenodo</description>
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>gcube-bom</artifactId>
|
||||
<version>2.0.1</version>
|
||||
<version>2.1.0</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -35,8 +35,7 @@ public class TransformerManager {
|
|||
else return new Translator(m);
|
||||
}
|
||||
}
|
||||
throw new ConfigurationException("No specific mapping for the catalogue item has been configured. "
|
||||
+ "By continuing with the upload some metadata might not be upload to Zenodo.");
|
||||
return new Translator();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -129,8 +129,9 @@ public class Zenodo {
|
|||
}
|
||||
|
||||
public FileDeposition uploadFile(ZenodoDeposition deposition, String toUploadName,File toUpload) throws ZenodoException {
|
||||
|
||||
final ZenodoDeposition dep=(deposition.getSubmitted())?newVersion(deposition.getId()):deposition;
|
||||
|
||||
log.info("Pushing File {} to Deposition {}",toUploadName,dep);
|
||||
|
||||
Callable<Response> call=new Callable<Response>() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue