From 733abdffe38e045094dc50f1f0a81a64428ce075 Mon Sep 17 00:00:00 2001 From: dimitrispie Date: Fri, 13 Jan 2023 15:06:08 +0200 Subject: [PATCH] Changes for Episciences journal --- .../dnetlib/oa/graph/usagestatsbuild/export/PiwikStatsDB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhp-workflows/dhp-usage-stats-build/src/main/java/eu/dnetlib/oa/graph/usagestatsbuild/export/PiwikStatsDB.java b/dhp-workflows/dhp-usage-stats-build/src/main/java/eu/dnetlib/oa/graph/usagestatsbuild/export/PiwikStatsDB.java index 2f87e933d..d20f37363 100755 --- a/dhp-workflows/dhp-usage-stats-build/src/main/java/eu/dnetlib/oa/graph/usagestatsbuild/export/PiwikStatsDB.java +++ b/dhp-workflows/dhp-usage-stats-build/src/main/java/eu/dnetlib/oa/graph/usagestatsbuild/export/PiwikStatsDB.java @@ -499,7 +499,7 @@ public class PiwikStatsDB { String returnEpisciencesJournals = "SELECT id, substring(regexp_extract(websiteurl,'^([^\\.]+)\\.?',1),9) FROM " + ConnectDB.getStatsDBSchema() + - ".datasource where websiteurl like '%episciences%' and dateofvalidation is not null"; + ".datasource where websiteurl like '%episciences%' and (dateofvalidation is not null or harvested=true)"; PreparedStatement st = ConnectDB.DB_HIVE_CONNECTION .prepareStatement(returnEpisciencesJournals); @@ -576,7 +576,7 @@ public class PiwikStatsDB { String returnEpisciencesJournals = "SELECT id, substring(regexp_extract(websiteurl,'^([^\\.]+)\\.?',1),9) FROM " + ConnectDB.getStatsDBSchema() + - ".datasource where websiteurl like '%episciences%' and dateofvalidation is not null"; + ".datasource where websiteurl like '%episciences%' and (dateofvalidation is not null or harvested=true)"; PreparedStatement st = ConnectDB.DB_HIVE_CONNECTION .prepareStatement(returnEpisciencesJournals);