From 8ff482028e76722449f35db2a8df35be0cc6ba22 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Thu, 7 May 2020 11:14:15 +0000 Subject: [PATCH] [Connect|Trunk] Community page - search form: update form placeholder when entity changes Properties: add impact factor URL git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58629 d315682c-612b-4755-9ff5-7f18f6832af3 --- deploy/beta-properties.json | 1 + deploy/production-properties.json | 1 + src/app/community/community.component.html | 2 +- src/app/community/community.component.ts | 11 +++++++++++ src/assets/env-properties.json | 1 + 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/deploy/beta-properties.json b/deploy/beta-properties.json index 8d01b1b..212d945 100644 --- a/deploy/beta-properties.json +++ b/deploy/beta-properties.json @@ -11,6 +11,7 @@ "statisticsFrameAPIURL":"https://beta.openaire.eu/stats/", "statisticsFrameNewAPIURL": "http://marilyn.athenarc.gr:8080/stats-api/", "useNewStatistisTool":false, + "impactFactorsAPIURL" :"https://bip-api.imsi.athenarc.gr/paper/scores/batch/", "claimsAPIURL" : "https://beta.services.openaire.eu/claims/rest/claimsService/", "searchAPIURLLAst" : "https://beta.services.openaire.eu/search/v2/api/", "searchResourcesAPIURL" : "https://beta.services.openaire.eu/search/v2/api/resources", diff --git a/deploy/production-properties.json b/deploy/production-properties.json index bee69f1..5ad6b18 100644 --- a/deploy/production-properties.json +++ b/deploy/production-properties.json @@ -11,6 +11,7 @@ "statisticsFrameAPIURL":"https://www.openaire.eu/stats/", "statisticsFrameNewAPIURL": "", "useNewStatistisTool":false, + "impactFactorsAPIURL" :"https://bip-api.imsi.athenarc.gr/paper/scores/batch/", "claimsAPIURL" : "https://services.openaire.eu/claims/rest/claimsService/", "searchAPIURLLAst" : "https://services.openaire.eu/search/v2/api/", "searchResourcesAPIURL" : "https://services.openaire.eu/search/v2/api/resources", diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 7b9f352..6b04f0a 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -213,7 +213,7 @@ diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 5961cf8..0129d1a 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -94,6 +94,7 @@ export class CommunityComponent { selectedEntityAdvancedUrl; keyword:string =""; customFilter; + placeholderText="Search by title, author, abstract, DOI, orcid... "; constructor( private element: ElementRef, @@ -415,7 +416,17 @@ export class CommunityComponent { this.selectedEntity = $event.entity; this.selectedEntitySimpleUrl = $event.simpleUrl; this.selectedEntityAdvancedUrl = $event.advancedUrl; + if(this.selectedEntity == 'result'){ + this.placeholderText ="Search by title, author, abstract, DOI, orcid... "; + }else if(this.selectedEntity == 'project') { + this.placeholderText = "Search by project title, grant id, funder..."; + }else if(this.selectedEntity == 'dataprovider') { + this.placeholderText = "Search by name..."; + }else{ + this.placeholderText = "Search community content"; + } } + goTo(simple:boolean){ let url = (simple)?this.selectedEntitySimpleUrl:this.selectedEntityAdvancedUrl; let parameterNames = []; diff --git a/src/assets/env-properties.json b/src/assets/env-properties.json index f9289ae..33030fe 100644 --- a/src/assets/env-properties.json +++ b/src/assets/env-properties.json @@ -11,6 +11,7 @@ "statisticsFrameAPIURL":"https://beta.openaire.eu/stats/", "statisticsFrameNewAPIURL": "http://marilyn.athenarc.gr:8080/stats-api/", "useNewStatistisTool":false, + "impactFactorsAPIURL" :"https://bip-api.imsi.athenarc.gr/paper/scores/batch/", "claimsAPIURL" : "http://dl170.madgik.di.uoa.gr:8180/dnet-claims-service-2.0.0-SNAPSHOT/rest/claimsService/", "searchAPIURLLAst" : "https://beta.services.openaire.eu/search/v2/api/", "searchResourcesAPIURL" : "https://beta.services.openaire.eu/search/v2/api/resources",