Skip to content

Commit

Permalink
Merge pull request #543 from geonetwork/fix-search-buttons
Browse files Browse the repository at this point in the history
fix: predefined search param set value to have closed icon available
  • Loading branch information
fgravin authored Jul 25, 2023
2 parents f3c9ecc + 45c0861 commit 94252f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
17 changes: 7 additions & 10 deletions conf/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ background_color = "#fdfbff"
# - a sort criteria: either `createDate`, `userSavedCount` or `_score` (prepend with `-` for descending sort)
# - filters which can be expressed like so:
# [[search_preset]]
# filters.q = 'Full text search
# name = 'filterByName'
# filters.q = 'Full text search'
# filters.publisher = ['Org 1', 'Org 2']
# filters.format = ['format 1', 'format 2']
# filters.documentStandard = ['iso19115-3.2018']
Expand All @@ -82,16 +83,12 @@ background_color = "#fdfbff"
# filters.publicationYear = ['2023', '2022']
# filters.isSpatial = ['yes']
# filters.license = ['unknown']
#
# Search presets will be advertised to the user along the main search field.

# [[search_preset]]
# sort = "-createDate"
# name = 'filterByOrgs'
# filters.publisher = ['DREAL', 'atmo Hauts-de-France', 'blargz']
# [[search_preset]]
# name = 'Wind turbines'
# filters.q = 'wind'
# name = 'otherFilterName'
# filters.q = 'Other Full text search'
# ...

# Search presets will be advertised to the user along the main search field.

### MAP SETTINGS

Expand Down
5 changes: 5 additions & 0 deletions libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ export class AutocompleteComponent
this.updateInputValue(value.currentValue)
}
}
if (this.inputRef) {
this.inputRef.nativeElement.value = value?.currentValue?.title
? value.currentValue.title
: ''
}
}

ngOnInit(): void {
Expand Down

0 comments on commit 94252f4

Please sign in to comment.