2022-05-03 13:22:53 +02:00
|
|
|
import {properties} from "../../../../environments/environment";
|
2024-05-29 12:05:04 +02:00
|
|
|
import {BelongsTo, Measure} from "./resultLandingInfo";
|
2022-05-03 13:22:53 +02:00
|
|
|
|
|
|
|
export class DataproviderProvenance {
|
2024-05-29 12:05:04 +02:00
|
|
|
provenance: Map<string, { "urlPrefix": string, "name": string }>;
|
2022-05-03 13:22:53 +02:00
|
|
|
|
|
|
|
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"});
|
2024-05-29 12:05:04 +02:00
|
|
|
this.provenance.set("eosc________::", {
|
2024-09-11 20:04:03 +02:00
|
|
|
"urlPrefix": properties.openScienceCloudURL,
|
2024-07-01 23:46:57 +02:00
|
|
|
"name": "EOSC Resource Hub" });
|
2022-05-03 13:22:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-19 13:53:46 +01:00
|
|
|
export class DataProviderInfo {
|
2024-05-29 12:05:04 +02:00
|
|
|
relcanId;
|
|
|
|
objIdentifier: string;
|
|
|
|
record;
|
|
|
|
title: { "name": string, "url": string };
|
|
|
|
officialName: string;
|
|
|
|
type: string;
|
|
|
|
registry: boolean;
|
|
|
|
compatibility: { "info": string, "name": string, "id": string };
|
|
|
|
oaiPmhURL: string;
|
|
|
|
openDoarId: string;
|
|
|
|
r3DataId: string;
|
|
|
|
provenance: Map<string, { "url": string[] }>;
|
|
|
|
originalId: string;
|
|
|
|
countries: string[];
|
|
|
|
journal: { "journal": "", "issn": string, "lissn": string, "eissn": string };
|
|
|
|
description: string;
|
|
|
|
subjects: string[];
|
|
|
|
jurisdiction: string;
|
|
|
|
thematic: boolean;
|
2024-10-29 13:08:54 +01:00
|
|
|
contentpolicies: string[];
|
2024-05-29 12:05:04 +02:00
|
|
|
identifiers: Map<string, string[]>; //key is the classname
|
2018-05-08 17:20:51 +02:00
|
|
|
|
2021-07-14 13:19:57 +02:00
|
|
|
fundedContent: string; // search query
|
2023-05-02 11:00:40 +02:00
|
|
|
measure: Measure;
|
2021-07-14 13:19:57 +02:00
|
|
|
|
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};
|
2024-05-29 12:05:04 +02:00
|
|
|
aggregationStatus: { "fulltexts": string };
|
2018-05-08 17:20:51 +02:00
|
|
|
|
2024-06-20 14:28:22 +02:00
|
|
|
/** @deprecated*/
|
2024-05-29 12:05:04 +02:00
|
|
|
tabs: { "name": string, "content": string }[];
|
2024-06-20 14:28:22 +02:00
|
|
|
/** @deprecated*/
|
2024-05-29 12:05:04 +02:00
|
|
|
tabs2: string[] = [];
|
2024-06-20 14:28:22 +02:00
|
|
|
/** @deprecated*/
|
2024-05-29 12:05:04 +02:00
|
|
|
tabsInTypes = {
|
|
|
|
"publicationsTab": new Set<string>(
|
|
|
|
["aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"orprepository"
|
|
|
|
]),
|
|
|
|
"datasetsTab": new Set<string>(
|
|
|
|
["aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"orprepository"
|
|
|
|
]),
|
|
|
|
"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",
|
|
|
|
"orprepository"
|
|
|
|
]),
|
|
|
|
// "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"
|
|
|
|
]),
|
|
|
|
"softwareTab": new Set<string>(
|
|
|
|
[
|
|
|
|
"aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"softwarerepository",
|
|
|
|
"aggregator::softwarerepository",
|
|
|
|
"orprepository"
|
|
|
|
]),
|
|
|
|
"orpsTab": new Set<string>(
|
|
|
|
[
|
|
|
|
"aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"softwarerepository",
|
|
|
|
"aggregator::softwarerepository",
|
|
|
|
"orprepository"
|
|
|
|
]),
|
|
|
|
"metricsTab": new Set<string>(
|
|
|
|
["aggregator::datarepository",
|
|
|
|
"aggregator::pubsrepository::institutional",
|
|
|
|
"aggregator::pubsrepository::unknown",
|
|
|
|
"aggregator::pubsrepository::journals",
|
|
|
|
"crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"infospace",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"websource",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"scholarcomminfra",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"softwarerepository",
|
|
|
|
"aggregator::softwarerepository",
|
|
|
|
"orprepository"
|
|
|
|
])
|
2019-02-15 13:42:40 +01:00
|
|
|
|
2024-05-29 12:05:04 +02:00
|
|
|
};
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2024-05-29 12:05:04 +02: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",
|
|
|
|
"pubscatalogue::unknown",
|
|
|
|
"aggregator::softwarerepository"
|
|
|
|
]),
|
|
|
|
"hostedBy": new Set<string>(
|
|
|
|
["crissystem",
|
|
|
|
"datarepository::unknown",
|
|
|
|
"pubsrepository::institutional",
|
|
|
|
"pubsrepository::journal",
|
|
|
|
"pubsrepository::unknown",
|
|
|
|
"pubsrepository::thematic",
|
|
|
|
"softwarerepository",
|
|
|
|
"orprepository"
|
|
|
|
])
|
|
|
|
};
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2024-05-29 12:05:04 +02:00
|
|
|
organizations: { "acronym": string, "name": string, "id": string }[] = [];
|
|
|
|
//publications: any;
|
|
|
|
//datasets: any;
|
2024-06-20 14:28:22 +02:00
|
|
|
/** @deprecated*/
|
2024-05-29 12:05:04 +02:00
|
|
|
statistics: any;
|
|
|
|
//projects: any;
|
2024-06-20 14:28:22 +02:00
|
|
|
/** @deprecated*/
|
2024-05-29 12:05:04 +02:00
|
|
|
datasources: any;
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2024-05-29 12:05:04 +02:00
|
|
|
//relatedDatasources: Map<string, {"name": string, "countPublications": string, "countDatasets": string, "countSoftware": string, "countOrps": string}>;
|
2024-06-20 14:28:22 +02:00
|
|
|
// Search query
|
2024-05-29 12:05:04 +02:00
|
|
|
relatedDatasources: { "id": string, "name": string, "count": number }[] = [];
|
2024-05-31 12:59:23 +02:00
|
|
|
|
|
|
|
belongsTo: boolean = true;
|
|
|
|
message: string;
|
|
|
|
|
|
|
|
setBelongsTo(id: string) {
|
|
|
|
this.belongsTo = !BelongsTo.datasource || BelongsTo.datasource.fields.findIndex(field => BelongsTo.check(this, field)) != -1;
|
|
|
|
this.message = !this.belongsTo ? BelongsTo.datasource.message : null;
|
|
|
|
if (this.message) {
|
|
|
|
this.message = this.message.replace('((id))', id);
|
|
|
|
}
|
|
|
|
}
|
2017-12-19 13:53:46 +01:00
|
|
|
}
|