diff --git a/libs/feature/search/src/lib/utils/service/fields.service.spec.ts b/libs/feature/search/src/lib/utils/service/fields.service.spec.ts index b8a7112991..4f82adf377 100644 --- a/libs/feature/search/src/lib/utils/service/fields.service.spec.ts +++ b/libs/feature/search/src/lib/utils/service/fields.service.spec.ts @@ -68,6 +68,8 @@ describe('FieldsService', () => { expect(service.supportedFields).toEqual([ 'publisher', 'format', + 'resourceType', + 'representationType', 'publicationYear', 'topic', 'inspireKeyword', @@ -151,6 +153,8 @@ describe('FieldsService', () => { publicationYear: [], publisher: ['orgB'], q: [], + representationType: [], + resourceType: [], topic: [], }) }) diff --git a/libs/feature/search/src/lib/utils/service/fields.service.ts b/libs/feature/search/src/lib/utils/service/fields.service.ts index d3b02c1b39..9e64cff1f6 100644 --- a/libs/feature/search/src/lib/utils/service/fields.service.ts +++ b/libs/feature/search/src/lib/utils/service/fields.service.ts @@ -23,6 +23,16 @@ export class FieldsService { private fields = { publisher: new OrganizationSearchField(this.injector), format: new SimpleSearchField('format', 'asc', this.injector), + resourceType: new GnUiTranslationSearchField( + 'resourceType', + 'asc', + this.injector + ), + representationType: new GnUiTranslationSearchField( + 'cl_spatialRepresentationType.key', + 'asc', + this.injector + ), publicationYear: new SimpleSearchField( 'publicationYearForResource', 'desc',