Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Miriam Baglioni | e0a0dddfac | |
Miriam Baglioni | fcec4b4225 | |
Miriam Baglioni | ec55a22091 |
|
@ -98,10 +98,13 @@ public class SparkDumpFunderResults implements Serializable {
|
|||
if (ofunder.isPresent()) {
|
||||
String fName = ofunder.get().getShortName();
|
||||
if (StringUtil.isNullOrEmpty(fName))
|
||||
return ofunder.get().getName();
|
||||
if (fName.equalsIgnoreCase("ec")) {
|
||||
if (p.getId().indexOf("_") < 0)
|
||||
return p.getId().substring(0, p.getId().indexOf(":"));
|
||||
else
|
||||
return p.getId().substring(0, p.getId().indexOf("_"));
|
||||
// ofunder.get().getName();
|
||||
if (fName.equalsIgnoreCase("ec"))
|
||||
fName += "_" + ofunder.get().getFundingStream();
|
||||
}
|
||||
return fName;
|
||||
} else {
|
||||
String fName = p.getId().substring(0, p.getId().indexOf("_")).toUpperCase();
|
||||
|
|
|
@ -82,7 +82,8 @@ public class SparkSelectSubset implements Serializable {
|
|||
.readPath(spark, inputPath + "/relation", Relation.class)
|
||||
.filter(
|
||||
(FilterFunction<Relation>) r -> !r.getDataInfo().getDeletedbyinference()
|
||||
&& !removeSet.contains(r.getRelClass()));
|
||||
&& !removeSet.contains(r.getRelClass()) &&
|
||||
!r.getRelType().equals("resultService"));
|
||||
|
||||
Dataset<String> resultIds = Utils
|
||||
.readPath(spark, outputPath + "/original/publication", Publication.class)
|
||||
|
|
|
@ -24,18 +24,10 @@
|
|||
<name>metadata</name>
|
||||
<description> the metadata associated to the deposition</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>depositionType</name>
|
||||
<description>the type of deposition we want to perform. "new" for brand new deposition, "version" for a new version of a published deposition (in this case the concept record id must be provided), "upload" to upload content to an open deposition for which we already have the deposition id (in this case the deposition id should be provided)</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>conceptRecordId</name>
|
||||
<description>for new version, the id of the record for the old deposition</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>depositionId</name>
|
||||
<description>the depositionId of a deposition open that has to be added content</description>
|
||||
</property>
|
||||
<property>
|
||||
<name>sparkDriverMemory</name>
|
||||
<description>memory for driver process</description>
|
||||
|
|
|
@ -141,6 +141,7 @@
|
|||
<decision name="only_upload">
|
||||
<switch>
|
||||
<case to="send_zenodo">${wf:conf('onlyUpload') eq true}</case>
|
||||
<case to="make_archive">${wf:conf('makeArchive') eq true}</case>
|
||||
<default to="reset_outputpath"/>
|
||||
</switch>
|
||||
</decision>
|
||||
|
|
Loading…
Reference in New Issue