Compare commits

...

17 Commits

Author SHA1 Message Date
Konstantina Galouni f9eb7cf67c Merge remote-tracking branch 'origin/develop' into new-search-json 2025-01-08 11:37:07 +02:00
Konstantina Galouni 6de58c47eb Updating openaireLibrary 2025-01-08 11:36:56 +02:00
Konstantina Galouni 25fbfd2f79 [develop | DONE | CHANGED]: Updated checks for searching organizations collected from openOrgs to apply the new criteria everywhere but productions (to be promoted after testing). 2024-12-18 12:40:00 +02:00
Konstantina Galouni 40be430508 Updating openaireLibrary 2024-12-16 16:26:38 +02:00
Konstantina Galouni 81c2385902 Merge remote-tracking branch 'origin/develop' into new-search-json 2024-12-16 16:26:07 +02:00
Konstantina Galouni 9fcdb1df74 [develop | DONE | ADDED]: uploadService.js: Added in criteria for search organizations, collected from openOrgs (collectedfromdatasourceid) & reldatasourcecompatibilityid=native (missing from 2018 - #3577) | beta-properties.file & dl170-properties.file & production-properties.file & properties.file: Added property "environment". 2024-12-16 13:50:47 +02:00
Konstantina Galouni 0d039b81c8 Merge remote-tracking branch 'origin/develop' into new-search-json 2024-12-03 11:45:05 +02:00
Konstantina Galouni b229b47ad3 Updating openaireLibrary 2024-12-03 11:44:57 +02:00
Konstantina Galouni 8f2c78920a [new-search-json | DONE | CHANGED] environment.ts: Updated dev property csvAPIURL to call beta test search service (old search-new json response) & set utilsService and cacheUrl on dev to call services from duffy (for testing). 2024-11-26 12:34:24 +02:00
Konstantina Galouni 1d9f1f0260 Merge remote-tracking branch 'origin/develop' into new-search-json 2024-11-25 17:34:24 +02:00
Konstantina Galouni 06d5254261 Updating openaireLibrary & openaire-theme 2024-11-25 17:34:15 +02:00
Konstantina Galouni 388655afd1 Merge remote-tracking branch 'origin/develop' into new-search-json 2024-10-29 16:26:06 +02:00
Konstantina Galouni 6504475da7 Updating openaireLibrary & common-assets 2024-10-29 16:25:58 +02:00
Konstantina Galouni 19dc6f9413 [new-search-json | WIP | CHANGED]: Updated parsing according to new json schema - parsingFunctions.class.ts & deletedByInference.component.ts: Parse header.recordType field instead of result.resulttype. 2024-10-29 15:18:48 +02:00
Konstantina Galouni 3656a825bd Merge remote-tracking branch 'origin/develop' into new-search-json 2024-10-17 15:02:48 +03:00
Konstantina Galouni da1d260431 Updating openaireLibrary 2024-10-17 14:57:55 +03:00
Konstantina Galouni fb5efdd37f [new-search-json | WIP | CHANGED]: Updating openaireLibrary. 2024-10-07 16:20:56 +03:00
6 changed files with 11 additions and 7 deletions

@ -1 +1 @@
Subproject commit 799af0ba6afc4c88c00d6a452c5dba772121070b
Subproject commit 7b4407140c4630c026df1c3dcccf59cac13c3ac3

View File

@ -10,3 +10,4 @@ max.size = 200
# file size in KB
big-max.size = 1000
port = 8000
environment = beta

View File

@ -10,5 +10,5 @@ max.size = 200
# file size in KB
big-max.size = 1000
port = 8000
environment = development

View File

@ -10,3 +10,4 @@ max.size = 200
# file size in KB
big-max.size = 1000
port = 8000
environment = production

View File

@ -1,5 +1,5 @@
userInfoUrl = http://dl170.madgik.di.uoa.gr:19080/login-service/userInfo
searchServiceAPIUrl = https://beta.services.openaire.eu/search/v2/api/
searchServiceAPIUrl = https://services.openaire.eu/search/v2/api/
monitorAPIUrl = http://dl170.madgik.di.uoa.gr:19380/uoa-monitor-service/
irishMonitorAPIUrl = http://dl170.madgik.di.uoa.gr:19680/irish-monitor-service/
fundersServiceAPIUrl = https://dev-openaire.d4science.org/openaire/funders/
@ -10,3 +10,4 @@ max.size = 200
# file size in KB
big-max.size = 1000
port = 8000
environment = development

View File

@ -104,12 +104,13 @@ app.delete(['/delete/:filename', '/delete/stakeholder/:filename', '/delete/:type
app.get('/explore/home', async function (req, res) {
try {
// Make requests to multiple APIs
let openOrgsId = properties.get('environment') != "production" ? 'openaire____%3A%3A0362fcdb3076765d9c0041ad331553e8' : "";
// Make requests to multiple APIs
let requests= [
"http://localhost:" + properties.get('port') + "/portals/countResults",
searchServiceAPIUrl +'results/?fields=relfunder&sf=relfunder&format=json&size=0',
searchServiceAPIUrl + 'datasources/count?format=json',
searchServiceAPIUrl + 'resources2/?format=json&size=0&type=organizations&fq=(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or reldatasourcecompatibilityid exact openaire-cris_1.1 or reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=*)',
searchServiceAPIUrl + 'resources2/?format=json&size=0&type=organizations&fq=(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or reldatasourcecompatibilityid exact openaire-cris_1.1 or reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=* or reldatasourcecompatibilityid = native'+(openOrgsId ? (' or collectedfromdatasourceid="'+openOrgsId+'"') : "")+')',
searchServiceAPIUrl + 'projects/?fields=funder&sf=funder&format=json&size=0',
searchServiceAPIUrl + 'resources?query=(%20(oaftype%20exact%20result)%20and%20(resulttypeid%20exact%20dataset)%20and%20(relresulttype%3Dpublication)%20%20)&page=0&size=0&format=json',
searchServiceAPIUrl + 'resources?query=(%20(oaftype%20exact%20result)%20and%20(resulttypeid%20exact%20software)%20and%20(relresulttype%3Dpublication)%20%20)&page=0&size=0&format=json'
@ -146,11 +147,11 @@ app.get('/explore/home', async function (req, res) {
app.get('/explore/search', async function (req, res) {
let aggregatedData = {};
try {
// Make requests to multiple APIs
let openOrgsId = properties.get('environment') != "production" ? 'openaire____%3A%3A0362fcdb3076765d9c0041ad331553e8' : ""; // Make requests to multiple APIs
let requests= [
searchServiceAPIUrl +'resources2/?format=json&size=0&type=results',
searchServiceAPIUrl + 'datasources/count?format=json',
searchServiceAPIUrl + 'resources2/?format=json&size=0&type=organizations&fq=(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or reldatasourcecompatibilityid exact openaire-cris_1.1 or reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=*)',
searchServiceAPIUrl + 'resources2/?format=json&size=0&type=organizations&fq=(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or reldatasourcecompatibilityid exact openaire4.0 or reldatasourcecompatibilityid exact openaire-cris_1.1 or reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=* or reldatasourcecompatibilityid = native' + (openOrgsId ? (' or collectedfromdatasourceid="'+openOrgsId+'"') : "") +')',
searchServiceAPIUrl + 'projects/count?format=json&fq=projectcode<>"unidentified"'
]
const dataPromises = requests.map((url) => axios.get( url));