Advanced Search
limit query for organizations & datasources similar to simple search & landing Organization Autocomplete: show legalname (legal short name) Css: change dashboard buttons focus & active git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54461 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
91c27dcfb8
commit
c6922230c3
|
@ -35,7 +35,8 @@ export class SearchDataprovidersService {
|
||||||
//((oaftype exact datasource) and(collectedfromdatasourceid exact "openaire____::47ce9e9f4fad46e732cff06419ecaabb"))
|
//((oaftype exact datasource) and(collectedfromdatasourceid exact "openaire____::47ce9e9f4fad46e732cff06419ecaabb"))
|
||||||
advancedSearchDataproviders (params: string, page: number, size: number, properties: EnvProperties ):any {
|
advancedSearchDataproviders (params: string, page: number, size: number, properties: EnvProperties ):any {
|
||||||
let url = properties.searchResourcesAPIURL;
|
let url = properties.searchResourcesAPIURL;
|
||||||
var basicQuery = "(oaftype exact datasource) "
|
var basicQuery = "(oaftype exact datasource) " +
|
||||||
|
'and (datasourcecompatibilityid <> "UNKNOWN")';
|
||||||
url += "?query=";
|
url += "?query=";
|
||||||
if(params!= null && params != '' ) {
|
if(params!= null && params != '' ) {
|
||||||
url +=" ( "+basicQuery+ " ) " +" and (" + params + ")";
|
url +=" ( "+basicQuery+ " ) " +" and (" + params + ")";
|
||||||
|
|
|
@ -60,7 +60,11 @@ export class SearchOrganizationsService {
|
||||||
}
|
}
|
||||||
advancedSearchOrganizations (params: string, page: number, size: number, properties:EnvProperties ):any {
|
advancedSearchOrganizations (params: string, page: number, size: number, properties:EnvProperties ):any {
|
||||||
let url = properties.searchResourcesAPIURL;
|
let url = properties.searchResourcesAPIURL;
|
||||||
var basicQuery = "(oaftype exact organization) "
|
var basicQuery = "oaftype exact organization and "
|
||||||
|
+"(reldatasourcecompatibilityid exact driver or reldatasourcecompatibilityid exact driver-openaire2.0 or " +
|
||||||
|
"reldatasourcecompatibilityid exact openaire2.0 or reldatasourcecompatibilityid exact openaire3.0 or " +
|
||||||
|
"reldatasourcecompatibilityid exact openaire2.0_data or reldatasourcecompatibilityid exact hostedBy or relproject=*)";
|
||||||
|
|
||||||
url += "?query=";
|
url += "?query=";
|
||||||
if(params!= null && params != '' ) {
|
if(params!= null && params != '' ) {
|
||||||
url +=" ( "+basicQuery+ " ) " +" and (" + params + ")";
|
url +=" ( "+basicQuery+ " ) " +" and (" + params + ")";
|
||||||
|
|
|
@ -178,6 +178,14 @@ private fetch (link,id,oafEntityType,type, properties:EnvProperties ){
|
||||||
} else {
|
} else {
|
||||||
value.label = resData["legalname"];
|
value.label = resData["legalname"];
|
||||||
}
|
}
|
||||||
|
if(resData["legalshortname"]){
|
||||||
|
|
||||||
|
if(Array.isArray(resData["legalshortname"])) {
|
||||||
|
value.label += " (" + resData["legalshortname"][0] +")";
|
||||||
|
} else {
|
||||||
|
value.label += " (" + resData["legalshortname"] +")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}else if(resData["officialname"]){
|
}else if(resData["officialname"]){
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,9 @@ export class EnvironmentSpecificService {
|
||||||
// private serverUrl = "https://beta.explore.openaire.eu";
|
// private serverUrl = "https://beta.explore.openaire.eu";
|
||||||
// private serverUrl = "https://beta.connect.openaire.eu";
|
// private serverUrl = "https://beta.connect.openaire.eu";
|
||||||
// private serverUrl = "https://beta.admin.connect.openaire.eu";
|
// private serverUrl = "https://beta.admin.connect.openaire.eu";
|
||||||
|
// private serverUrl = "https://explore.openaire.eu";
|
||||||
|
// private serverUrl = "https://connect.openaire.eu";
|
||||||
|
// private serverUrl = "https://test.explore.openaire.eu";
|
||||||
constructor(private http: Http, @Inject(PLATFORM_ID) private platformId: string) {
|
constructor(private http: Http, @Inject(PLATFORM_ID) private platformId: string) {
|
||||||
this.testBrowser = isPlatformBrowser(platformId);
|
this.testBrowser = isPlatformBrowser(platformId);
|
||||||
if (this.testBrowser) {
|
if (this.testBrowser) {
|
||||||
|
|
Loading…
Reference in New Issue