diff --git a/claims/claim-utils/claimResultSearchForm.component.ts b/claims/claim-utils/claimResultSearchForm.component.ts
index bc9aef19..2cf9a057 100644
--- a/claims/claim-utils/claimResultSearchForm.component.ts
+++ b/claims/claim-utils/claimResultSearchForm.component.ts
@@ -303,7 +303,7 @@ export class ClaimResultSearchFormComponent {
if(data[2] && data[2].length > 0){
this.openaireResultsfilters = this.checkSelectedFilters(data[2], this.openaireResultsPrevFilters)
}
- this.openaireResults = ClaimResultSearchFormComponent.openaire2ClaimResults(data[1], type);
+ this.openaireResults = ClaimResultSearchFormComponent.openaire2ClaimResults(data[1], type, this.properties);
this.openaireResultsStatus = this.errorCodes.DONE;
if (this.openaireResultsNum == 0) {
this.openaireResultsStatus = this.errorCodes.NONE;
@@ -596,7 +596,7 @@ export class ClaimResultSearchFormComponent {
}
- public static openaire2ClaimResults(data, type): ClaimEntity[] {
+ public static openaire2ClaimResults(data, type, properties): ClaimEntity[] {
const claimResults = [];
for (let i = 0; i < data.length; i++) {
let item = data[i];
@@ -607,7 +607,17 @@ export class ClaimResultSearchFormComponent {
entity.result.DOI = null;
entity.id = item.id;
entity.title = item.title.name;
- entity.result.url = item.title.url;
+ let prefixUrl = "";
+ if(type == "publication"){
+ prefixUrl = properties.searchLinkToPublication;
+ }else if(type == "dataset"){
+ prefixUrl = properties.searchLinkToDataset;
+ }else if(type == "software"){
+ prefixUrl = properties.searchLinkToSoftwareLanding;
+ }else if(type == "other"){
+ prefixUrl = properties.searchLinkToOrp;
+ }
+ entity.result.url = prefixUrl + entity.id;
entity.result.source = String("openaire");
entity.result.date = (item.year && item.year != "") ? item.year : null;
entity.result.accessRights = String(item.title.accessMode);
diff --git a/claims/directLinking/directLinking.component.ts b/claims/directLinking/directLinking.component.ts
index 923680b3..10a6b823 100644
--- a/claims/directLinking/directLinking.component.ts
+++ b/claims/directLinking/directLinking.component.ts
@@ -164,7 +164,7 @@ export class DirectLinkingComponent {
entity.project.startDate = project.startDate;
this.inlineEntity = entity;
}else{
- results = ClaimResultSearchFormComponent.openaire2ClaimResults(data, type);
+ results = ClaimResultSearchFormComponent.openaire2ClaimResults(data, type, this.properties);
}
if (results.length > 0) {
diff --git a/claims/linking/linkingGeneric.component.html b/claims/linking/linkingGeneric.component.html
index e76679db..1314b9bb 100644
--- a/claims/linking/linkingGeneric.component.html
+++ b/claims/linking/linkingGeneric.component.html
@@ -81,7 +81,9 @@
-
+
SOURCES ({{(sources.length) | number}})
{{entity.title ? sliceString(entity.title) : '[No title available]'}}
+
+
+ {{(entity.project.acronym ? '[' + entity.project.acronym + '] ' : '') + entity.title}}
+
+
+ {{(entity.project.acronym ? sliceString(entity.project.acronym):sliceString(entity.title))}}
+
+
+
{{(entity.project.acronym ? '[' + entity.project.acronym + '] ' : '') + entity.title}}
{{(entity.project.acronym ? sliceString(entity.project.acronym):sliceString(entity.title))}}
+
+
diff --git a/utils/entitiesAutoComplete/entitiesAutoComplete.component.ts b/utils/entitiesAutoComplete/entitiesAutoComplete.component.ts
index 157d6ed3..428ee968 100644
--- a/utils/entitiesAutoComplete/entitiesAutoComplete.component.ts
+++ b/utils/entitiesAutoComplete/entitiesAutoComplete.component.ts
@@ -100,7 +100,7 @@ export class EntitiesAutocompleteComponent {
private initialize(){
this.showInput = true;
- if(this.entityType == "project" && this.funderId ){
+ /* if(this.entityType == "project" && this.funderId ){
this.filtered = this.searchTermStream.pipe(
debounceTime(300),distinctUntilChanged(),
switchMap((term: string) => {
@@ -110,7 +110,9 @@ export class EntitiesAutocompleteComponent {
this.results = results.length;
return results;
}),);
- }else if(this.entityType == "organization" && this.depositType ){
+ }else */
+
+ if(this.entityType == "organization" && this.depositType ){
this.filtered = this.searchTermStream.pipe(
debounceTime(300),distinctUntilChanged(),
switchMap((term: string) => {
diff --git a/utils/entitiesAutoComplete/entitySearch.service.ts b/utils/entitiesAutoComplete/entitySearch.service.ts
index 6dfc139b..c40b6f5b 100644
--- a/utils/entitiesAutoComplete/entitySearch.service.ts
+++ b/utils/entitiesAutoComplete/entitySearch.service.ts
@@ -15,7 +15,7 @@ export class EntitiesSearchService {
public ready:boolean = false;
constructor(private http: HttpClient ) {}
- searchProjectsByFunder(keyword:string, funderId:string, properties:EnvProperties ):any {
+ /*searchProjectsByFunder(keyword:string, funderId:string, properties:EnvProperties ):any {
this.ready = false;
let url = properties.searchResourcesAPIURL;
//console.log("Funder is " + funderId);
@@ -40,7 +40,7 @@ export class EntitiesSearchService {
console.error('An error occured', ex);
return [{id:'-2',label:'Error'}];;
});
- }
+ }*/
searchByDepositType(keyword:string, DepositType:string, properties:EnvProperties ):any {
this.ready = false;