Software advanced page issue: Return empty vocabulary for software type - temporal solution until a vocabulary is created

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51404 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-03-22 12:13:48 +00:00
parent eb762038c2
commit 970b8f2a36
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,10 @@ export class ISVocabulariesService {
vocabulary = "dnet:dataCite_resource.json"; vocabulary = "dnet:dataCite_resource.json";
return this.getVocabularyFromService(vocabulary, properties); return this.getVocabularyFromService(vocabulary, properties);
}else if( field == "access" && (entity == "publication" || entity == "dataset")){ }else if ( field == "type" && (entity == "software")){
return Observable.of([]);
}else if( field == "access" && (entity == "publication" || entity == "dataset" || entity == "software" )){
// file= "accessMode.json"; // file= "accessMode.json";
// return this.getVocabularyFromFile(file); // return this.getVocabularyFromFile(file);
vocabulary = "dnet:access_modes.json"; vocabulary = "dnet:access_modes.json";