fixed wrong generation type in summary
This commit is contained in:
parent
3112e21858
commit
bc342bf73a
|
@ -223,7 +223,7 @@ public class ScholixSummary implements Serializable {
|
|||
.collect(Collectors.toList())
|
||||
);
|
||||
|
||||
summary.setTypology(Typology.dataset);
|
||||
summary.setTypology(Typology.publication);
|
||||
if (item.getTitle() != null)
|
||||
summary.setTitle(item.getTitle().stream().map(StructuredProperty::getValue).collect(Collectors.toList()));
|
||||
|
||||
|
@ -276,14 +276,12 @@ public class ScholixSummary implements Serializable {
|
|||
summary.setRelatedDatasets(relatedItemInfo.getRelatedDataset());
|
||||
summary.setRelatedPublications(relatedItemInfo.getRelatedPublication());
|
||||
summary.setRelatedUnknown(relatedItemInfo.getRelatedUnknown());
|
||||
|
||||
summary.setTypology(Typology.unknown);
|
||||
if (item.getDlicollectedfrom() != null)
|
||||
summary.setDatasources(item.getDlicollectedfrom().stream()
|
||||
.map(
|
||||
c -> new CollectedFromType(c.getName(), c.getId(), c.getCompletionStatus())
|
||||
).collect(Collectors.toList()));
|
||||
|
||||
|
||||
return summary;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
</parameters>
|
||||
|
||||
<start to="generateScholix"/>
|
||||
<start to="generateSummary"/>
|
||||
|
||||
<kill name="Kill">
|
||||
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
|
||||
|
@ -73,7 +73,7 @@
|
|||
<arg>--workingDirPath</arg><arg>${workingDirPath}</arg>
|
||||
<arg>--graphPath</arg><arg>${graphPath}</arg>
|
||||
</spark>
|
||||
<ok to="indexSummary"/>
|
||||
<ok to="generateScholix"/>
|
||||
<error to="Kill"/>
|
||||
</action>
|
||||
|
||||
|
|
Loading…
Reference in New Issue