From acb848d39db22a53d1fcda98e06e4ee8ff59f1a9 Mon Sep 17 00:00:00 2001 From: tamaragruszka <156320606+tamaragruszka@users.noreply.github.com> Date: Thu, 9 May 2024 15:57:15 +0200 Subject: [PATCH] [ACS-6647] covert aca:fields to app:fields (#3838) --- docs/features/search-forms.md | 2 +- docs/tutorials/search-form.md | 6 +++--- projects/aca-content/assets/app.extensions.json | 6 +++--- .../search/search-results/search-results.component.spec.ts | 2 +- .../search/search-results/search-results.component.ts | 2 +- .../src/lib/services/app.extension.service.spec.ts | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/features/search-forms.md b/docs/features/search-forms.md index ffb22583f..49a26a7d8 100644 --- a/docs/features/search-forms.md +++ b/docs/features/search-forms.md @@ -20,7 +20,7 @@ In order to configure multiple search form you have to add your search configura | name | `string` | "" | Display title of the form | | order | `string` | | Visualization order in the dropdown | | default | `boolean` | | if the search has to be used as default search | -| aca:fields| `string[]`| | list of aspects property to add in the query and search in the value for the given text. The property will be concatenated in AND| +| app:fields| `string[]`| | list of aspects property to add in the query and search in the value for the given text. The property will be concatenated in AND| ### Search configuration properties diff --git a/docs/tutorials/search-form.md b/docs/tutorials/search-form.md index 53073821b..60efbdeef 100644 --- a/docs/tutorials/search-form.md +++ b/docs/tutorials/search-form.md @@ -20,7 +20,7 @@ In this tutorial, we are going to implement the following features: | name | `string` | "" | Display title of the form | | order | `string` | | Visualization order in the dropdown | | default | `boolean` | | if the search has to be used as default search | -| aca:fields| `string[]`| | list of aspects property to add in the query and search in the value for the given text. The property will be concatenated in AND| +| app:fields| `string[]`| | list of aspects property to add in the query and search in the value for the given text. The property will be concatenated in AND| ### Search configuration properties @@ -41,7 +41,7 @@ Update `your-app.extensions.json` file, and insert a new entry to the `features. "order": 200, "name": "APP.SEARCH.MY_CUSTOM_SEARCH", "default": false, - "aca:fields": [ "cm:name", "cm:title", "cm:description", "TEXT", "TAG"], + "app:fields": [ "cm:name", "cm:title", "cm:description", "TEXT", "TAG"], "filterQueries": [ { "query": "+ASPECT: 'cm:person'" @@ -70,7 +70,7 @@ To replace the default search with your configuration set to true the default fi "order": 200, "name": "APP.SEARCH.MY_CUSTOM_SEARCH", "default": true, - "aca:fields": [ "cm:name", "cm:title", "cm:description", "TEXT", "TAG"], + "app:fields": [ "cm:name", "cm:title", "cm:description", "TEXT", "TAG"], "filterQueries": [ { "query": "+ASPECT: 'cm:person'" diff --git a/projects/aca-content/assets/app.extensions.json b/projects/aca-content/assets/app.extensions.json index c1e9a0fb5..01f10d6c3 100644 --- a/projects/aca-content/assets/app.extensions.json +++ b/projects/aca-content/assets/app.extensions.json @@ -1315,7 +1315,7 @@ "name": "APP.BROWSE.SEARCH.DEFAULT_SEARCH", "default": true, "filterWithContains": true, - "aca:fields": ["cm:name", "cm:title", "cm:description", "TEXT", "TAG"], + "app:fields": ["cm:name", "cm:title", "cm:description", "TEXT", "TAG"], "include": ["path", "allowableOperations", "properties"], "sorting": { "options": [ @@ -1560,7 +1560,7 @@ "name": "APP.BROWSE.SEARCH.DUBLIN_CORE", "default": false, "filterWithContains": true, - "aca:fields": ["cm:name", "cm:title", "cm:description", "cm:identifier", "cm:contributor", "cm:coverage", "cm:dcsource", "cm:publisher", "cm:rights", "cm:subject", "cm:type", "TEXT", "TAG"], + "app:fields": ["cm:name", "cm:title", "cm:description", "cm:identifier", "cm:contributor", "cm:coverage", "cm:dcsource", "cm:publisher", "cm:rights", "cm:subject", "cm:type", "TEXT", "TAG"], "include": ["path", "allowableOperations", "properties"], "sorting": { "options": [ @@ -1736,7 +1736,7 @@ "name": "APP.BROWSE.SEARCH.EFFECTIVITY", "default": false, "filterWithContains": true, - "aca:fields": ["cm:name", "cm:title", "cm:description", "cm:from", "cm:contributor", "cm:to", "TEXT", "TAG"], + "app:fields": ["cm:name", "cm:title", "cm:description", "cm:from", "cm:contributor", "cm:to", "TEXT", "TAG"], "include": ["path", "allowableOperations", "properties"], "sorting": { "options": [ diff --git a/projects/aca-content/src/lib/components/search/search-results/search-results.component.spec.ts b/projects/aca-content/src/lib/components/search/search-results/search-results.component.spec.ts index 248d0d0c6..aff8bb7da 100644 --- a/projects/aca-content/src/lib/components/search/search-results/search-results.component.spec.ts +++ b/projects/aca-content/src/lib/components/search/search-results/search-results.component.spec.ts @@ -270,7 +270,7 @@ describe('SearchComponent', () => { it('should update the user query whenever configuration changed', () => { params.next({ q: '=orange' }); - queryBuilder.configUpdated.next({ 'aca:fields': ['cm:tag'] } as any); + queryBuilder.configUpdated.next({ 'app:fields': ['cm:tag'] } as any); expect(queryBuilder.userQuery).toBe(`((=cm:tag:"orange"))`); expect(queryBuilder.update).toHaveBeenCalled(); }); diff --git a/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts b/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts index 96afbe85f..c1fe70c0e 100644 --- a/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts +++ b/projects/aca-content/src/lib/components/search/search-results/search-results.component.ts @@ -127,7 +127,7 @@ export class SearchResultsComponent extends PageComponent implements OnInit { .subscribe(([params, searchConfig]) => { // eslint-disable-next-line no-prototype-builtins this.searchedWord = params.hasOwnProperty(this.queryParamName) ? params[this.queryParamName] : null; - const query = this.formatSearchQuery(this.searchedWord, searchConfig['aca:fields']); + const query = this.formatSearchQuery(this.searchedWord, searchConfig['app:fields']); if (query) { this.queryBuilder.userQuery = decodeURIComponent(query); } diff --git a/projects/aca-shared/src/lib/services/app.extension.service.spec.ts b/projects/aca-shared/src/lib/services/app.extension.service.spec.ts index 7771c5b95..0d2ca15f7 100644 --- a/projects/aca-shared/src/lib/services/app.extension.service.spec.ts +++ b/projects/aca-shared/src/lib/services/app.extension.service.spec.ts @@ -1074,7 +1074,7 @@ describe('AppExtensionService', () => { name: 'default', default: true, filterWithContains: true, - 'aca:fields': ['cm:name', 'cm:title', 'cm:description', 'TEXT', 'TAG'], + 'app:fields': ['cm:name', 'cm:title', 'cm:description', 'TEXT', 'TAG'], include: ['path', 'allowableOperations', 'properties'], categories: [ {