diff --git a/searchPages/searchUtils/advancedSearchForm.component.ts b/searchPages/searchUtils/advancedSearchForm.component.ts index 309266b0..18841a90 100644 --- a/searchPages/searchUtils/advancedSearchForm.component.ts +++ b/searchPages/searchUtils/advancedSearchForm.component.ts @@ -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) { } diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index f539baa5..4fd80f05 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -30,7 +30,7 @@ export class EnvProperties { searchDataciteAPIURL; searchOrcidURL; - + orcidURL; pmidURL; doiURL; cordisURL; diff --git a/utils/properties/searchFields.ts b/utils/properties/searchFields.ts index 417623dc..6eb364fe 100644 --- a/utils/properties/searchFields.ts +++ b/utils/properties/searchFields.ts @@ -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 (){