diff --git a/src/app/shared/search/advanced-search/advanced-search.component.html b/src/app/shared/search/advanced-search/advanced-search.component.html index c3f4b845c3a..f0007c0a1d2 100644 --- a/src/app/shared/search/advanced-search/advanced-search.component.html +++ b/src/app/shared/search/advanced-search/advanced-search.component.html @@ -1,22 +1,25 @@
-
+
- -
-
-
-
+
+
+
+ +
+ [disabled]="advSearchForm.invalid">{{'advancesearch.form.submit'| translate}}
diff --git a/src/app/shared/search/search-filters/search-filters.component.spec.ts b/src/app/shared/search/search-filters/search-filters.component.spec.ts index ba650960a93..246b9fb8b7f 100644 --- a/src/app/shared/search/search-filters/search-filters.component.spec.ts +++ b/src/app/shared/search/search-filters/search-filters.component.spec.ts @@ -9,6 +9,8 @@ import { SearchFiltersComponent } from './search-filters.component'; import { SearchService } from '../../../core/shared/search/search.service'; import { SEARCH_CONFIG_SERVICE } from '../../../my-dspace-page/my-dspace-page.component'; import { SearchConfigurationServiceStub } from '../../testing/search-configuration-service.stub'; +import { APP_CONFIG } from 'src/config/app-config.interface'; +import { environment } from 'src/environments/environment'; describe('SearchFiltersComponent', () => { let comp: SearchFiltersComponent; @@ -38,6 +40,7 @@ describe('SearchFiltersComponent', () => { { provide: SearchService, useValue: searchServiceStub }, { provide: SEARCH_CONFIG_SERVICE, useValue: new SearchConfigurationServiceStub() }, { provide: SearchFilterService, useValue: searchFiltersStub }, + { provide: APP_CONFIG, useValue: environment }, ], schemas: [NO_ERRORS_SCHEMA] @@ -59,9 +62,9 @@ describe('SearchFiltersComponent', () => { (comp as any).getSearchLink(); }); - // it('should call getSearchLink on the searchService', () => { - // expect(searchService.getSearchLink).toHaveBeenCalled(); - // }); + it('should call getSearchLink on the searchService', () => { + expect(searchService.getSearchLink).toHaveBeenCalled(); + }); }); }); diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index 5306f929c0d..3a31f75c1b7 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -5426,12 +5426,6 @@ "admin.system-wide-alert.title": "System-wide Alerts", - "search.advanced.filters.head": "Advanced Search", - - "filter.search.operator.placeholder": "Operator", - - "filter.search.text.placeholder": "Search text", - "access-control-item-header-toggle": "Item's Metadata", "access-control-item-toggle.enable": "Enable option to perform changes on the item's metadata", @@ -5444,16 +5438,6 @@ "access-control-bitstream-toggle.disable": "Disable option to perform changes on the bitstreams", - "search.filters.operator.notequals.text": "Not Equals", - - "search.filters.operator.notcontains.text": "Not Contains", - - "search.filters.operator.contains.text": "Contains", - - "search.filters.filter.title.text": "Title", - - "search.filters.filter.author.text": "Author", - "access-control-bitstreams-selected": "bitstreams selected", "access-control-bitstreams-select": "Select bitstreams", @@ -5466,12 +5450,6 @@ "access-control-remove": "Remove access condition", - "community.search.head": "Search Within", - - "collection.page.browse.search.head": "Search Within", - - "search.filters.applied.f.title": "Title", - "access-control-option-start-date-note": "Select the date from which the related access condition is applied", "access-control-option-end-date": "Grant access until", @@ -5481,4 +5459,26 @@ "vocabulary-treeview.search.form.add": "Add", "search.filters.filter.entityType.text": "Item Type", + + "search.filters.operator.equals.text": "Equals", + + "search.filters.operator.notequals.text": "Not Equals", + + "search.filters.operator.notcontains.text": "Not Contains", + + "search.filters.operator.contains.text": "Contains", + + "search.filters.filter.title.text": "Title", + + "search.filters.applied.f.title": "Title", + + "search.filters.filter.author.text": "Author", + + "search.advanced.filters.head": "Advanced Search", + + "filter.search.operator.placeholder": "Operator", + + "filter.search.text.placeholder": "Search text", + + "advancesearch.form.submit": "Add", }