2022-05-03 13:22:53 +02:00
|
|
|
import {properties} from "../../../../environments/environment";
|
|
|
|
|
|
|
|
export class DataproviderProvenance {
|
|
|
|
provenance: Map<string, {"urlPrefix": string, "name": string}>;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
this.provenance = new Map();
|
|
|
|
this.provenance.set("opendoar____::", {"urlPrefix": properties.openDoarURL, "name": "OpenDOAR"});//, "idRegexPrefix": ""});
|
|
|
|
this.provenance.set("re3data_____::", {"urlPrefix": properties.r3DataURL, "name": "re3data.org"});
|
|
|
|
this.provenance.set("fairsharing_::", {"urlPrefix": properties.fairSharingURL, "name": "FAIRsharing"});
|
|
|
|
this.provenance.set("eosc________::", {"urlPrefix": properties.eoscMarketplaceURL, "name": "EOSC Service Catalogue"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
export class DataProviderInfo {
|
|
|
|
title: { "name": string, "url": string };
|
|
|
|
officialName: string;
|
|
|
|
type: string;
|
|
|
|
registry: boolean;
|
2018-07-05 17:50:43 +02:00
|
|
|
compatibility: { "info": string, "name": string, "id": string };
|
2017-12-19 13:53:46 +01:00
|
|
|
oaiPmhURL: string;
|
2018-10-23 15:42:07 +02:00
|
|
|
openDoarId: string;
|
|
|
|
r3DataId: string;
|
2022-05-03 13:22:53 +02:00
|
|
|
provenance: Map<string, {"url": string[]}>;
|
2018-05-08 17:20:51 +02:00
|
|
|
originalId: string;
|
2017-12-19 13:53:46 +01:00
|
|
|
countries: string[];
|
2019-05-27 12:36:09 +02:00
|
|
|
journal: {"journal": "", "issn": string, "lissn": string, "eissn": string};
|
2022-05-03 13:22:53 +02:00
|
|
|
description: string[] = [];
|
2020-03-16 14:09:46 +01:00
|
|
|
subjects: string[];
|
2018-05-08 17:20:51 +02:00
|
|
|
|
2021-07-14 13:19:57 +02:00
|
|
|
fundedContent: string; // search query
|
|
|
|
|
2019-09-09 12:45:35 +02:00
|
|
|
//collected from datasource api
|
2021-07-14 13:19:57 +02:00
|
|
|
// aggregationStatus: {"fundedContent": string, "indexRecords": string, "fulltexts": string, "lastUpdateDate": string};
|
|
|
|
aggregationStatus: {"fulltexts": string};
|
2018-05-08 17:20:51 +02:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
tabs: {"name": string, "content": string}[];
|
2018-06-06 12:09:56 +02:00
|
|
|
tabs2: string[] =[];
|
2017-12-19 13:53:46 +01:00
|
|
|
tabsInTypes = {
|
|
|
|
"publicationsTab": new Set<string>(
|
2018-09-27 15:39:26 +02:00
|
|
|
[ "aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
2017-12-19 13:53:46 +01:00
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
2018-09-27 15:39:26 +02:00
|
|
|
"datarepository::unknown",
|
2017-12-19 13:53:46 +01:00
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"orprepository"
|
2017-12-19 13:53:46 +01:00
|
|
|
]),
|
|
|
|
"datasetsTab": new Set<string>(
|
2018-09-27 15:39:26 +02:00
|
|
|
[ "aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
2017-12-19 13:53:46 +01:00
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
2018-09-27 15:39:26 +02:00
|
|
|
"datarepository::unknown",
|
2017-12-19 13:53:46 +01:00
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
2018-10-26 13:26:03 +02:00
|
|
|
"pubscatalogue::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"orprepository"
|
2017-12-19 13:53:46 +01:00
|
|
|
]),
|
|
|
|
"statisticsTab": new Set<string>(
|
|
|
|
[ "aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"orprepository"
|
2017-12-19 13:53:46 +01:00
|
|
|
]),
|
|
|
|
// "organizationsTab": new Set<string>(
|
|
|
|
// [ "entityregistry::projects",
|
|
|
|
// "entityregistry::repositories"
|
|
|
|
// ]),
|
|
|
|
"projectsTab": new Set<string>(["entityregistry::projects"]),
|
|
|
|
"datasourcesTab": new Set<string>(["entityregistry::repositories"]),
|
|
|
|
"relatedDatasourcesTab": new Set<string>(
|
|
|
|
[ "aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::datarepository"
|
2018-05-08 14:59:30 +02:00
|
|
|
]),
|
|
|
|
"softwareTab": new Set<string>(
|
|
|
|
[
|
|
|
|
"aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
2018-09-27 15:13:15 +02:00
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
2018-10-26 13:26:03 +02:00
|
|
|
"pubscatalogue::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"softwarerepository",
|
|
|
|
"aggregator::softwarerepository",
|
|
|
|
"orprepository"
|
2018-07-26 18:38:59 +02:00
|
|
|
]),
|
|
|
|
"orpsTab": new Set<string>(
|
2018-05-08 14:59:30 +02:00
|
|
|
[
|
|
|
|
"aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
2018-09-27 15:13:15 +02:00
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
2018-10-26 13:26:03 +02:00
|
|
|
"pubscatalogue::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"softwarerepository",
|
|
|
|
"aggregator::softwarerepository",
|
|
|
|
"orprepository"
|
2019-02-15 13:42:40 +01:00
|
|
|
]),
|
2017-12-19 13:53:46 +01:00
|
|
|
"metricsTab": new Set<string>(
|
|
|
|
[ "aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
2019-02-15 13:42:40 +01:00
|
|
|
"infospace",
|
2017-12-19 13:53:46 +01:00
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
2019-02-15 13:42:40 +01:00
|
|
|
"websource",
|
2017-12-19 13:53:46 +01:00
|
|
|
"pubsrepository::unknown",
|
2019-02-15 13:42:40 +01:00
|
|
|
"scholarcomminfra",
|
2017-12-19 13:53:46 +01:00
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
2019-02-15 13:42:40 +01:00
|
|
|
"softwarerepository",
|
|
|
|
"aggregator::softwarerepository",
|
|
|
|
"orprepository"
|
2018-05-08 14:59:30 +02:00
|
|
|
])
|
2019-02-15 13:42:40 +01:00
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
resultsBy: string;
|
|
|
|
resultTypes = {
|
|
|
|
"collectedFrom": new Set<string>(
|
|
|
|
[ "aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"entityregistry::projects",
|
|
|
|
"entityregistry::repositories",
|
|
|
|
"infospace",
|
|
|
|
"scholarcomminfra",
|
2018-05-08 14:59:30 +02:00
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"aggregator::softwarerepository"
|
2017-12-19 13:53:46 +01:00
|
|
|
]),
|
|
|
|
"hostedBy": new Set<string>(
|
|
|
|
[ "crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
2018-05-08 14:59:30 +02:00
|
|
|
"pubsrepository::thematic",
|
|
|
|
"softwarerepository",
|
|
|
|
"orprepository"
|
2017-12-19 13:53:46 +01:00
|
|
|
])
|
|
|
|
};
|
|
|
|
|
2020-03-17 11:04:17 +01:00
|
|
|
organizations: {"acronym": string, "name": string, "id": string}[] = [];
|
2017-12-19 13:53:46 +01:00
|
|
|
//publications: any;
|
|
|
|
//datasets: any;
|
|
|
|
statistics: any;
|
|
|
|
//projects: any;
|
|
|
|
datasources: any;
|
|
|
|
|
2020-03-16 14:09:46 +01:00
|
|
|
//relatedDatasources: Map<string, {"name": string, "countPublications": string, "countDatasets": string, "countSoftware": string, "countOrps": string}>;
|
|
|
|
relatedDatasources: {"id": string, "name": string, "count": number}[] = [];
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|