[develop | DONE | FIXED]: environment.ts: In commonDev properties changed property "vocabulariesAPI" to the production API (dev not working, beta returns CORS) | refineFieldResults.service.ts: [BUG] Fix advanced search requests - in methods "getRefineFieldResultsByFieldName()" and "fieldIncludesAnyOfTheKeywords()" added case for "service" entity type.
This commit is contained in:
parent
e1bf3a63cc
commit
13daf1b5d4
|
@ -41,7 +41,7 @@ export class RefineFieldResultsService {
|
|||
|
||||
getRefineFieldResultsByFieldName(fieldName:string, entityName:string, properties:EnvProperties):any{
|
||||
let keys:string[]=["funder", "fundinglevel"]; // this covers funder, relfunder, funding stream fields and funding level fields
|
||||
let link = properties.searchAPIURLLAst +this.getSearchAPIURLForEntity(entityName)+"?fields="+fieldName +(this.fieldIncludesAnyOfTheKeywords(fieldName, keys)?('&sf='+fieldName):'')+ "&format=json";
|
||||
let link = properties.searchAPIURLLAst +this.getSearchAPIURLForEntity(entityName)+"?fields="+fieldName +(entityName == "service" ? "&type=services" : "")+(this.fieldIncludesAnyOfTheKeywords(fieldName, keys)?('&sf='+fieldName):'')+ "&format=json";
|
||||
return this.getField(link,fieldName, properties);
|
||||
}
|
||||
|
||||
|
@ -94,8 +94,10 @@ export class RefineFieldResultsService {
|
|||
suffix="other/";
|
||||
}else if(entityType == "organization"){
|
||||
suffix="organizations/";
|
||||
}else if(entityType == "dataprovider"){
|
||||
suffix="datasources/";
|
||||
}else if(entityType == "dataprovider") {
|
||||
suffix = "datasources/";
|
||||
}else if(entityType == "service") {
|
||||
suffix = "resources2/";
|
||||
}else if(entityType == "person"){
|
||||
suffix="people/";
|
||||
}else if(entityType == "result"){
|
||||
|
|
|
@ -111,7 +111,7 @@ export let commonDev: EnvProperties = {
|
|||
orcidTokenURL: "https://sandbox.orcid.org/oauth/authorize?",
|
||||
orcidClientId: "APP-A5M3KTX6NCN67L91",
|
||||
utilsService: "http://scoobydoo.di.uoa.gr:8000",
|
||||
vocabulariesAPI: "https://dev-openaire.d4science.org/provision/mvc/vocabularies/",
|
||||
vocabulariesAPI: "https://services.openaire.eu/provision/mvc/vocabularies/",
|
||||
loginServiceURL: "http://mpagasas.di.uoa.gr:19080/login-service/",
|
||||
cookieDomain: ".di.uoa.gr",
|
||||
feedbackmail: "kostis30fylloy@gmail.com",
|
||||
|
|
Loading…
Reference in New Issue