-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
46 lines (39 loc) · 1.42 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from datetime import date
import os
CURRENT_DATE = str(date.today())
base_dir = os.path.dirname(os.path.abspath(__file__))
logs_dir = os.path.join(base_dir, "logs")
os.makedirs(logs_dir, exist_ok=True)
# Default queries for harvest
default_queries = {
"wos": "OG=(Ecole Polytechnique Federale de Lausanne)",
"scopus": "AF-ID(60028186) OR AF-ID(60210159) OR AF-ID(60070536) OR AF-ID(60204330) OR AF-ID(60070531) OR AF-ID(60070534) OR AF-ID(60070538) OR AF-ID(60014951) OR AF-ID(60070529) OR AF-ID(60070532) OR AF-ID(60070535) OR AF-ID(60122563) OR AF-ID(60210160) OR AF-ID(60204331)",
"openalex": "authorships.institutions.lineage:i5124864",
"zenodo": "parent.communities.entries.id:\"3c1383da-d7ab-4167-8f12-4d8aa0cc637f\"",
}
# Define the order of the sources during the deduplication process
source_order = ["wos", "scopus", "openalex", "zenodo"]
# Define types of unit to retrieve from api.epfl.ch
unit_types = ["Laboratoire", "Groupe", "Chaire"]
# Scopus : EPFL labs internal IDs
scopus_epfl_afids = [
"60028186",
"60210159",
"60070536",
"60204330",
"60070531",
"60070534",
"60070538",
"60014951",
"60070529",
"60070532",
"60070535",
"60122563",
"60210160",
"60204331",
]
# License conditions for Unpaywall
LICENSE_CONDITIONS = {
"allowed_licenses": ["cc-by", "public-domain"],
"allowed_oa_statuses": ["gold", "hybrid", "green"], # Added allowed OA statuses
}