From 9ac7ed93d4420cf904609b1fbfbe341cc4ae8836 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 4 Oct 2022 11:39:44 +0300 Subject: [PATCH] [Eosc Explore]: ISVocabularies.service.ts: [Bug fix] Added check if type is "service" (used to return null when selecting vocabulary fields in advanced search). --- utils/staticAutoComplete/ISVocabularies.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/staticAutoComplete/ISVocabularies.service.ts b/utils/staticAutoComplete/ISVocabularies.service.ts index 833d6ea9..5823091f 100644 --- a/utils/staticAutoComplete/ISVocabularies.service.ts +++ b/utils/staticAutoComplete/ISVocabularies.service.ts @@ -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") {