diff --git a/dhp-workflows/dhp-dedup-openaire/src/main/java/eu/dnetlib/dhp/oa/dedup/DedupRecordFactory.java b/dhp-workflows/dhp-dedup-openaire/src/main/java/eu/dnetlib/dhp/oa/dedup/DedupRecordFactory.java
index b8ae4ca021..d345cf98f1 100644
--- a/dhp-workflows/dhp-dedup-openaire/src/main/java/eu/dnetlib/dhp/oa/dedup/DedupRecordFactory.java
+++ b/dhp-workflows/dhp-dedup-openaire/src/main/java/eu/dnetlib/dhp/oa/dedup/DedupRecordFactory.java
@@ -107,7 +107,7 @@ public class DedupRecordFactory {
entity.setId(id);
entity.setLastupdatetimestamp(ts);
- entity.getDataInfo().setDeletedbyinference(false);
+ entity.setDataInfo(dataInfo);
return entity;
}
diff --git a/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java b/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java
index e86f91f996..aa3722ce51 100644
--- a/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java
+++ b/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java
@@ -77,7 +77,16 @@ class EntityMergerTest implements Serializable {
// verify id
assertEquals(dedupId, pub_merged.getId());
- assertEquals(pub_top.getJournal(), pub_merged.getJournal());
+ assertEquals(pub_top.getJournal().getName(), pub_merged.getJournal().getName());
+ assertEquals(pub_top.getJournal().getIssnOnline(), pub_merged.getJournal().getIssnOnline());
+ assertEquals(pub_top.getJournal().getIssnLinking(), pub_merged.getJournal().getIssnLinking());
+ assertEquals(pub_top.getJournal().getIssnPrinted(), pub_merged.getJournal().getIssnPrinted());
+ assertEquals(pub_top.getJournal().getIss(), pub_merged.getJournal().getIss());
+ assertEquals(pub_top.getJournal().getEp(), pub_merged.getJournal().getEp());
+ assertEquals(pub_top.getJournal().getSp(), pub_merged.getJournal().getSp());
+ assertEquals(pub_top.getJournal().getVol(), pub_merged.getJournal().getVol());
+ assertEquals(pub_top.getJournal().getConferencedate(), pub_merged.getJournal().getConferencedate());
+ assertEquals(pub_top.getJournal().getConferenceplace(), pub_merged.getJournal().getConferenceplace());
assertEquals("OPEN", pub_merged.getBestaccessright().getClassid());
assertEquals(pub_top.getResulttype(), pub_merged.getResulttype());
assertEquals(pub_top.getLanguage(), pub_merged.getLanguage());
diff --git a/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json
index e7a6bf5b0e..f217e24582 100644
--- a/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json
+++ b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json
@@ -5,12 +5,6 @@
"paramDescription": "the path of the sequencial file to read",
"paramRequired": true
},
- {
- "paramName":"h",
- "paramLongName":"hive_metastore_uris",
- "paramDescription": "the hive metastore uris",
- "paramRequired": false
- },
{
"paramName":"tn",
"paramLongName":"resultTableName",
diff --git a/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml
index 85116e4cc9..202c86a6d6 100644
--- a/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml
@@ -110,7 +110,6 @@
--sourcePath${sourcePath}
--whitelist${whitelist}
--allowedtypes${allowedtypes}
- --hive_metastore_uris${hive_metastore_uris}
--outputPath${workingDir}/preparedInfo
@@ -146,7 +145,7 @@
--sourcePath${sourcePath}/publication
--outputPath${workingDir}/publication
- --hive_metastore_uris${hive_metastore_uris}
+ --workingPath${workingDir}/workingP
--resultTableNameeu.dnetlib.dhp.schema.oaf.Publication
--preparedInfoPath${workingDir}/preparedInfo
@@ -176,7 +175,7 @@
--sourcePath${sourcePath}/dataset
--outputPath${workingDir}/dataset
- --hive_metastore_uris${hive_metastore_uris}
+ --workingPath${workingDir}/workingD
--resultTableNameeu.dnetlib.dhp.schema.oaf.Dataset
--preparedInfoPath${workingDir}/preparedInfo
@@ -206,7 +205,7 @@
--sourcePath${sourcePath}/otherresearchproduct
--outputPath${workingDir}/otherresearchproduct
- --hive_metastore_uris${hive_metastore_uris}
+ --workingPath${workingDir}/workingO
--resultTableNameeu.dnetlib.dhp.schema.oaf.OtherResearchProduct
--preparedInfoPath${workingDir}/preparedInfo
@@ -236,7 +235,7 @@
--sourcePath${sourcePath}/software
--outputPath${workingDir}/software
- --hive_metastore_uris${hive_metastore_uris}
+ --workingPath${workingDir}/workingS
--resultTableNameeu.dnetlib.dhp.schema.oaf.Software
--preparedInfoPath${workingDir}/preparedInfo
diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplication.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplication.java
index e453f79186..1f8c23ac36 100644
--- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplication.java
+++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplication.java
@@ -309,6 +309,9 @@ public class MigrateDbEntitiesApplication extends AbstractMigrationApplication i
ds.setThematic(rs.getBoolean("thematic"));
ds.setKnowledgegraph(rs.getBoolean("knowledgegraph"));
ds.setContentpolicies(prepareListOfQualifiers(rs.getArray("contentpolicies")));
+ ds.setConsenttermsofuse(rs.getBoolean("consenttermsofuse"));
+ ds.setFulltextdownload(rs.getBoolean("fulltextdownload"));
+ ds.setConsenttermsofusedate(rs.getDate("consenttermsofusedate").toString());
return Arrays.asList(ds);
} catch (final Exception e) {
diff --git a/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/sql/queryDatasources.sql b/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/sql/queryDatasources.sql
index 98092e8825..2623c65c4e 100644
--- a/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/sql/queryDatasources.sql
+++ b/dhp-workflows/dhp-graph-mapper/src/main/resources/eu/dnetlib/dhp/oa/graph/sql/queryDatasources.sql
@@ -89,6 +89,9 @@ SELECT
d.issn AS issnPrinted,
d.eissn AS issnOnline,
d.lissn AS issnLinking,
+ d.consenttermsofuse AS consenttermsofuse,
+ d.fulltextdownload AS fulltextdownload,
+ d.consenttermsofusedate AS consenttermsofusedate,
de.jurisdiction||'@@@eosc:jurisdictions' AS jurisdiction,
de.thematic AS thematic,
de.knowledge_graph AS knowledgegraph,
diff --git a/dhp-workflows/dhp-graph-mapper/src/test/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplicationTest.java b/dhp-workflows/dhp-graph-mapper/src/test/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplicationTest.java
index b65bd9fd80..05ae5be74a 100644
--- a/dhp-workflows/dhp-graph-mapper/src/test/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplicationTest.java
+++ b/dhp-workflows/dhp-graph-mapper/src/test/java/eu/dnetlib/dhp/oa/graph/raw/MigrateDbEntitiesApplicationTest.java
@@ -100,6 +100,9 @@ public class MigrateDbEntitiesApplicationTest {
assertEquals("Journal article", ds.getContentpolicies().get(0).getClassid());
assertEquals("eosc:contentpolicies", ds.getContentpolicies().get(0).getSchemeid());
+ assertEquals(true, ds.getConsenttermsofuse());
+ assertEquals(true, ds.getFulltextdownload());
+ assertEquals("2022-03-11", ds.getConsenttermsofusedate());
}
@Test
diff --git a/dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/raw/datasources_resultset_entry.json b/dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/raw/datasources_resultset_entry.json
index 42b140306e..11b884cde2 100644
--- a/dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/raw/datasources_resultset_entry.json
+++ b/dhp-workflows/dhp-graph-mapper/src/test/resources/eu/dnetlib/dhp/oa/graph/raw/datasources_resultset_entry.json
@@ -268,5 +268,20 @@
"value": [
"Journal article@@@eosc:contentpolicies"
]
+ },
+ {
+ "field": "consenttermsofuse",
+ "type": "boolean",
+ "value": true
+ },
+ {
+ "field": "fulltextdownload",
+ "type": "boolean",
+ "value": true
+ },
+ {
+ "field": "consenttermsofusedate",
+ "type": "date",
+ "value": "2022-03-11"
}
]