mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-6647] covert aca:fields to app:fields (#3838)
This commit is contained in:
@@ -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": [
|
||||
|
@@ -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();
|
||||
});
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user