[stats wf] indicators across stats dbs & updates in the org ids #248
|
@ -317,7 +317,7 @@ public class MigrateDbEntitiesApplication extends AbstractMigrationApplication i
|
||||||
listKeyValues(
|
listKeyValues(
|
||||||
createOpenaireId(10, rs.getString("collectedfromid"), true),
|
createOpenaireId(10, rs.getString("collectedfromid"), true),
|
||||||
rs.getString("collectedfromname")));
|
rs.getString("collectedfromname")));
|
||||||
p.setPid(new ArrayList<>());
|
p.setPid(prepareListOfStructProps(rs.getArray("pid"), info));
|
||||||
p.setDateofcollection(asString(rs.getDate("dateofcollection")));
|
p.setDateofcollection(asString(rs.getDate("dateofcollection")));
|
||||||
p.setDateoftransformation(asString(rs.getDate("dateoftransformation")));
|
p.setDateoftransformation(asString(rs.getDate("dateoftransformation")));
|
||||||
p.setExtraInfo(new ArrayList<>()); // Values not present in the DB
|
p.setExtraInfo(new ArrayList<>()); // Values not present in the DB
|
||||||
|
|
|
@ -33,7 +33,7 @@ SELECT
|
||||||
dc.officialname AS collectedfromname,
|
dc.officialname AS collectedfromname,
|
||||||
p.contracttype || '@@@' || p.contracttypescheme AS contracttype,
|
p.contracttype || '@@@' || p.contracttypescheme AS contracttype,
|
||||||
p.provenanceactionclass || '@@@' || p.provenanceactionscheme AS provenanceaction,
|
p.provenanceactionclass || '@@@' || p.provenanceactionscheme AS provenanceaction,
|
||||||
array_agg(DISTINCT i.pid || '###' || i.issuertype) AS pid,
|
array_remove(array_agg(DISTINCT i.pid || '###' || i.issuertype || '@@@' || i.issuertype), NULL) AS pid,,
|
||||||
array_agg(DISTINCT s.name || '###' || s.semanticclass || '@@@' || s.semanticscheme) AS subjects,
|
array_agg(DISTINCT s.name || '###' || s.semanticclass || '@@@' || s.semanticscheme) AS subjects,
|
||||||
array_agg(DISTINCT fp.path) AS fundingtree
|
array_agg(DISTINCT fp.path) AS fundingtree
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ SELECT
|
||||||
dc.officialname AS collectedfromname,
|
dc.officialname AS collectedfromname,
|
||||||
p.contracttypeclass || '@@@' || p.contracttypescheme AS contracttype,
|
p.contracttypeclass || '@@@' || p.contracttypescheme AS contracttype,
|
||||||
p.provenanceactionclass || '@@@' || p.provenanceactionscheme AS provenanceaction,
|
p.provenanceactionclass || '@@@' || p.provenanceactionscheme AS provenanceaction,
|
||||||
array_agg(DISTINCT i.pid || '###' || i.issuertype) AS pid,
|
array_remove(array_agg(DISTINCT i.pid || '###' || i.issuertype || '@@@' || i.issuertype), NULL) AS pid,
|
||||||
array_agg(DISTINCT s.name || '###' || s.semanticclass || '@@@' || s.semanticscheme) AS subjects,
|
array_agg(DISTINCT s.name || '###' || s.semanticclass || '@@@' || s.semanticscheme) AS subjects,
|
||||||
array_agg(DISTINCT fp.path) AS fundingtree
|
array_agg(DISTINCT fp.path) AS fundingtree
|
||||||
FROM projects p
|
FROM projects p
|
||||||
|
|
Loading…
Reference in New Issue