Rename some result refine filter names and reorder them.

This commit is contained in:
Konstantina Galouni 2022-03-17 15:13:07 +02:00
parent 6759508fb6
commit 6c0724f026
3 changed files with 12 additions and 13 deletions

View File

@ -184,7 +184,7 @@
<!-- Subjects -->
<div *ngIf="resultLandingInfo.fos" class="uk-margin-medium-bottom">
<div class="uk-text-muted">
Fields of Science and Technology classification
Fields of Science and Technology classification (FOS)
</div>
<div class="uk-margin-small-top">
<div *ngIf="resultLandingInfo.fos && resultLandingInfo.fos.length > 0">
@ -194,7 +194,7 @@
</div>
<div *ngIf="resultLandingInfo.sdg" class="uk-margin-medium-bottom">
<div class="uk-text-muted">
Sustainable Development Goals
Sustainable Development Goals (SDG)
</div>
<div class="uk-margin-small-top">
<div *ngIf="resultLandingInfo.sdg && resultLandingInfo.sdg.length > 0">

View File

@ -1429,7 +1429,7 @@ public static createRangeFilterQuery(rangeField,selectedFromValue, selectedToVal
}
}*/
if ((this.entityType == 'publication' || this.entityType == 'dataset' || this.entityType == 'software' || this.entityType == 'other' || this.entityType == "result")) {
this.resultTypes = {values:[],filterId:"type", countSelectedValues: 0, filterType: 'checkbox', originalFilterId: "", valueIsExact: true, title: "Result Types",filterOperator:"or"};
this.resultTypes = {values:[],filterId:"type", countSelectedValues: 0, filterType: 'checkbox', originalFilterId: "", valueIsExact: true, title: "Type",filterOperator:"or"};
if (URLparams["type"]) {
let types = URLparams["type"];
types = Array.isArray(types) ? types.join(',').split(","):types.split(",");

View File

@ -11,10 +11,9 @@ export class SearchFields {
// Remove Collected From Filter "collectedfrom","collectedfrom"
public RESULT_REFINE_FIELDS = [
"resultbestaccessright", "relfunder",
"resultbestaccessright", "instancetypename", "fos", "relfunder",
"relfundinglevel0_id", "relfundinglevel1_id", "relfundinglevel2_id",
"relproject",
"instancetypename", "resultlanguagename", "community", "resulthostingdatasource", "country", "sdg", "fos"];
"relproject", "sdg", "country", "resultlanguagename", "resulthostingdatasource", "community"];
public RESULT_ADVANCED_FIELDS: string[] = ["q", "resulttitle", "resultauthor", "authorid", "resultdescription", "resultsubject", "resultpublisher",
"resultbestaccessright", "community", "collectedfromdatasourceid", "resulthostingdatasourceid", "resultdateofacceptance",
@ -73,7 +72,7 @@ export class SearchFields {
},
["pid"]: {name: "PID", type: "keyword", param: "pid", operator: "pd", equalityOperator: " = ", filterType: null},
["resulthostingdatasourceid"]: {
name: "Hosting Content Provider",
name: "Source",
type: "entity",
param: "hostedBy",
operator: "hs",
@ -89,7 +88,7 @@ export class SearchFields {
filterType: "checkbox"
},
["instancetypename"]: {
name: "Type",
name: "Document Type",
type: "vocabulary",
param: "type",
operator: "tp",
@ -105,7 +104,7 @@ export class SearchFields {
filterType: "checkbox"
},
["community"]: {
name: "Community",
name: "Research Community",
type: "refine",
param: "community",
operator: "cm",
@ -185,7 +184,7 @@ export class SearchFields {
filterType: "range"
},
["resultbestaccessright"]: {
name: "Access Mode",
name: "Access",
type: "vocabulary",
param: "access",
operator: "ac",
@ -217,7 +216,7 @@ export class SearchFields {
filterType: null
},
["resulttypeid"]: {
name: "Result type",
name: "Type",
type: "refine",
param: "types",
operator: "tp",
@ -233,7 +232,7 @@ export class SearchFields {
filterType: "checkbox"
},
["sdg"]: {
name: "Sustainable Development Goals (SDG)",
name: "SDG",
type: "refine",
param: "sdg",
operator: "sg",
@ -241,7 +240,7 @@ export class SearchFields {
filterType: "checkbox"
},
["fos"]: {
name: "Fields of Science and Technology classification (FOS)",
name: "Field of Science",
type: "refine",
param: "fos",
operator: "fs",