[Trunk | Library]:

1. Add 'orcidURL' property
2. advancedSearchForm.component: Bug fix in definition of array
3. searchFields.ts: Add field in advanced search form of results to search by author's ORCID.


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55898 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-05-29 12:20:18 +00:00
parent 034e2ee330
commit bb4d406a8f
3 changed files with 5 additions and 4 deletions

View File

@ -30,7 +30,7 @@ export class AdvancedSearchFormComponent {
fieldList:{[id:string]:any[]} = {};
public searchFields:SearchFields = new SearchFields();
properties:EnvProperties;
public operators: [{name:string, id:string}] = this.searchFields.ADVANCED_SEARCH_OPERATORS;
public operators: {name:string, id:string}[] = this.searchFields.ADVANCED_SEARCH_OPERATORS;
constructor (private route: ActivatedRoute) {
}

View File

@ -30,7 +30,7 @@ export class EnvProperties {
searchDataciteAPIURL;
searchOrcidURL;
orcidURL;
pmidURL;
doiURL;
cordisURL;

View File

@ -14,11 +14,12 @@ export class SearchFields {
"resultbestaccessright","community","collectedfromdatasourceid","resulthostingdatasourceid", "resultdateofacceptance",
"relfunder",
"relfundinglevel0_id","relfundinglevel1_id","relfundinglevel2_id",
"resultlanguagename", "relorganizationid", "pid","relprojectid", "instancetypename"];
"resultlanguagename", "relorganizationid", "pid","relprojectid", "instancetypename", "authorid"];
public RESULT_FIELDS: { [key:string]:FieldDetails}={
["q"]:{name:"All fields", type:"keyword", param:"q", operator: "op", equalityOperator: "="},
["resulttitle"]:{name:"Title", type:"keyword", param:"title", operator: "tt", equalityOperator: "="},
["resultauthor"]:{name:"Author", type:"keyword", param:"author", operator: "at", equalityOperator: "="},
["authorid"]:{name:"Author ORCID", type:"keyword", param:"orcid", operator: "oc", equalityOperator: " exact "},
["resultsubject"]:{name:"Subject", type:"keyword", param:"subject", operator: "sb", equalityOperator: "="},
["resultpublisher"]:{name:"Publisher", type:"keyword", param:"publisher", operator: "pb", equalityOperator: "="},
["pid"]:{name:"PID", type:"keyword", param:"pid", operator: "pd", equalityOperator: " = "},
@ -132,7 +133,7 @@ export class SearchFields {
["relfundinglevel1_id"]:"relfundinglevel0_id", ["relfundinglevel2_id"]:"relfundinglevel1_id"};
public ADVANCED_SEARCH_OPERATORS:[{name:string, id:string}] = [{name:"AND",id:"and"},{name:"OR",id:"or"},{name:"NOT",id:"not"}];
public ADVANCED_SEARCH_OPERATORS:{name:string, id:string}[] = [{name:"AND",id:"and"},{name:"OR",id:"or"},{name:"NOT",id:"not"}];
public COMMUNITIES_SEARCH_FIELDS:string[] = ["type","status","role"];
constructor (){