[Eosc Explore]: ISVocabularies.service.ts: [Bug fix] Added check if type is "service" (used to return null when selecting vocabulary fields in advanced search).

This commit is contained in:
Konstantina Galouni 2022-10-04 11:39:44 +03:00
parent 3c1623d12c
commit 9ac7ed93d4
1 changed files with 2 additions and 2 deletions

View File

@ -46,11 +46,11 @@ export class ISVocabulariesService {
} else if (field == "access" && (entity == "publication" || entity == "dataset" || entity == "software" || entity == "other" || entity == "result")) {
vocabulary = "dnet:access_modes.json";
return this.getVocabularyFromServiceAsync(vocabulary, properties);
} else if ((field == "type") && (entity == "dataprovider")) {
} else if ((field == "type") && (entity == "dataprovider" || entity == "service")) {
vocabulary = "dnet:datasource_typologies.json";
return this.getVocabularyFromServiceAsync(vocabulary, properties);
} else if (field == "compatibility" && (entity == "dataprovider")) {
} else if (field == "compatibility" && (entity == "dataprovider" || entity == "service")) {
vocabulary = "dnet:datasourceCompatibilityLevel.json";
return this.getVocabularyFromServiceAsync(vocabulary, properties);
} else if (field == "country") {