geonetwork-ui 2.9.0-dev.6da5cd143 → 2.9.0-dev.b403ccb12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,6 +70,7 @@ export class RouterFacade {
70
70
  }
71
71
 
72
72
  updateSearch(query?: SearchRouteParams) {
73
+ console.log('RouterFacade - updateSearch', query)
73
74
  this.go({
74
75
  path: this.routerService.getSearchRoute(),
75
76
  ...(query && { query: flattenQueryParams(query) }),
@@ -78,6 +79,7 @@ export class RouterFacade {
78
79
  }
79
80
 
80
81
  setSearch(query?: SearchRouteParams) {
82
+ console.log('RouterFacade - setSearch', query)
81
83
  this.go({
82
84
  path: this.routerService.getSearchRoute(),
83
85
  ...(query && { query: flattenQueryParams(query) }),
@@ -79,6 +79,7 @@ export class FuzzySearchComponent implements OnInit {
79
79
  if (this.inputSubmitted.observers.length > 0) {
80
80
  this.inputSubmitted.emit(any)
81
81
  } else {
82
+ console.log('FuzzySearchComponent - handleInputSubmission', any)
82
83
  this.searchService.updateFilters({ any })
83
84
  }
84
85
  }
@@ -111,7 +111,10 @@ export function reducerSearch(
111
111
  },
112
112
  }
113
113
  }
114
+ // From router.effects
115
+ // From home - fuzzy-search - search.service
114
116
  case fromActions.SET_FILTERS: {
117
+ console.log('reducerSearch - SET_FILTERS', action.payload)
115
118
  return {
116
119
  ...state,
117
120
  params: {
@@ -132,6 +135,7 @@ export function reducerSearch(
132
135
  },
133
136
  }
134
137
  }
138
+ // From results WC
135
139
  case fromActions.SET_SEARCH: {
136
140
  return {
137
141
  ...state,
@@ -19,11 +19,13 @@ export class SearchService implements SearchServiceI {
19
19
  private facade = inject(SearchFacade)
20
20
 
21
21
  setSortAndFilters(filters: FieldFilters, sort: SortByField) {
22
+ console.log('SearchService - setSortAndFilters', { filters, sort })
22
23
  this.setFilters(filters)
23
24
  this.setSortBy(sort)
24
25
  }
25
26
 
26
27
  updateFilters(params: FieldFilters) {
28
+ console.log('SearchService - updateFilters', params)
27
29
  this.facade.searchFilters$
28
30
  .pipe(
29
31
  first(),