geonetwork-ui 2.9.0-dev.083d7682e → 2.9.0-dev.0e5a99579

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.
Files changed (28) hide show
  1. package/fesm2022/geonetwork-ui.mjs +137 -36
  2. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  3. package/index.d.ts +14 -3
  4. package/index.d.ts.map +1 -1
  5. package/package.json +7 -7
  6. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +8 -10
  7. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +13 -3
  8. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -0
  9. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +10 -18
  10. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +96 -9
  11. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +1 -1
  12. package/src/libs/feature/router/src/lib/default/services/router-search.service.ts +12 -3
  13. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +34 -4
  14. package/src/libs/feature/search/src/lib/state/reducer.ts +3 -0
  15. package/src/libs/ui/elements/src/lib/image-input/image-input.component.html +5 -2
  16. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +63 -56
  17. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.scss +5 -5
  18. package/src/libs/ui/map/src/lib/map-utils.ts +1 -1
  19. package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.html +19 -16
  20. package/src/libs/util/shared/src/lib/links/link-utils.ts +8 -4
  21. package/translations/de.json +2 -1
  22. package/translations/en.json +1 -0
  23. package/translations/es.json +1 -0
  24. package/translations/fr.json +1 -0
  25. package/translations/it.json +1 -0
  26. package/translations/nl.json +1 -0
  27. package/translations/pt.json +1 -0
  28. package/translations/sk.json +1 -0
@@ -13,29 +13,21 @@
13
13
  ></gn-ui-dropdown-selector>
14
14
  }
15
15
 
16
- @if ((styleLinks$ | async)?.length > 0) {
17
- <gn-ui-dropdown-selector
18
- class="w-full md:flex-1 md:min-w-0"
19
- extraBtnClass="font-sans font-bold"
20
- [title]="'map.select.style' | translate"
21
- [choices]="styleDropdownChoices$ | async"
22
- [selected]="_styleFromConfig"
23
- (selectValue)="selectStyleToDisplay($event)"
24
- ></gn-ui-dropdown-selector>
25
- } @else {
26
- <gn-ui-dropdown-selector
27
- class="w-full md:flex-1 md:min-w-0 text-gray-400"
28
- extraBtnClass="font-sans font-bold text-gray-400"
29
- [title]="'map.select.style' | translate"
30
- [choices]="styleDropdownChoices$ | async"
31
- [disabled]="true"
32
- ></gn-ui-dropdown-selector>
33
- }
16
+ <gn-ui-dropdown-selector
17
+ class="w-full md:flex-1 md:min-w-0"
18
+ extraBtnClass="font-sans font-bold"
19
+ [title]="'map.select.style' | translate"
20
+ [choices]="styleDropdownChoices$ | async"
21
+ [selected]="selectedStyleId$ | async"
22
+ [disabled]="(styleDropdownChoices$ | async)?.length <= 1"
23
+ (selectValue)="selectStyleToDisplay($event)"
24
+ ></gn-ui-dropdown-selector>
34
25
 
35
26
  <div class="self-end md:ml-2">
36
27
  <gn-ui-external-viewer-button
37
28
  extraClass="w-[44px] h-[44px]"
38
29
  [link]="selectedLink$ | async"
30
+ [mimeType]="wmsMimeType$ | async"
39
31
  >
40
32
  </gn-ui-external-viewer-button>
41
33
  </div>
@@ -11,6 +11,7 @@ import {
11
11
  } from '@angular/core'
12
12
  import { MapUtilsService } from '../../../../../../libs/feature/map/src'
13
13
  import { getLinkId, getLinkLabel } from '../../../../../../libs/util/shared/src'
14
+ import { WmsEndpoint, LayerStyle } from '@camptocamp/ogc-client'
14
15
  import {
15
16
  BehaviorSubject,
16
17
  combineLatest,
@@ -40,6 +41,7 @@ import {
40
41
  createViewFromLayer,
41
42
  MapContext,
42
43
  MapContextLayer,
44
+ MapContextLayerWms,
43
45
  SourceLoadErrorEvent,
44
46
  } from '@geospatial-sdk/core'
45
47
  import {
@@ -77,6 +79,7 @@ marker('map.dropdown.placeholder')
77
79
  marker('wfs.feature.limit')
78
80
  marker('dataset.error.restrictedAccess')
79
81
  marker('map.select.style')
82
+ marker('map.style.default')
80
83
 
81
84
  @Component({
82
85
  selector: 'gn-ui-map-view',
@@ -228,7 +231,16 @@ export class MapViewComponent implements AfterViewInit {
228
231
  return compatibleLinks[0]
229
232
  }
230
233
  }
231
- })
234
+ }),
235
+ shareReplay(1)
236
+ )
237
+
238
+ isWmsStyleMode$ = this.selectedSourceLink$.pipe(
239
+ map(
240
+ (src) => src?.type === 'service' && src?.accessServiceProtocol === 'wms'
241
+ ),
242
+ distinctUntilChanged(),
243
+ shareReplay(1)
232
244
  )
233
245
 
234
246
  styleLinks$ = this.selectedSourceLink$.pipe(
@@ -262,6 +274,22 @@ export class MapViewComponent implements AfterViewInit {
262
274
  })
263
275
  )
264
276
  }
277
+ if (
278
+ src &&
279
+ src.type === 'service' &&
280
+ src.accessServiceProtocol === 'wms'
281
+ ) {
282
+ return from(new WmsEndpoint(src.url.toString()).isReady()).pipe(
283
+ map((endpoint) => {
284
+ const layer = endpoint.getLayerByName(src.name)
285
+ return layer?.styles || []
286
+ }),
287
+ catchError((error) => {
288
+ this.handleError(error)
289
+ return of([])
290
+ })
291
+ )
292
+ }
265
293
  return of([])
266
294
  }),
267
295
  tap((styles) => {
@@ -274,33 +302,83 @@ export class MapViewComponent implements AfterViewInit {
274
302
  shareReplay(1)
275
303
  )
276
304
 
277
- styleDropdownChoices$ = this.styleLinks$.pipe(
278
- map((links) =>
305
+ styleDropdownChoices$ = combineLatest([
306
+ this.styleLinks$,
307
+ this.isWmsStyleMode$,
308
+ ]).pipe(
309
+ map(([links, isWmsStyleMode]) =>
279
310
  links.length
280
311
  ? links.map((link, index) => ({
281
- label: getLinkLabel(link),
312
+ label: isWmsStyleMode
313
+ ? (link as LayerStyle).title || (link as LayerStyle).name
314
+ : getLinkLabel(link as DatasetOnlineResource),
282
315
  value: index,
283
316
  }))
284
317
  : [
285
318
  {
286
- label: '\u00A0\u00A0\u00A0\u00A0',
319
+ label: this.translateService.instant('map.style.default'),
287
320
  value: 0,
288
321
  },
289
322
  ]
290
323
  )
291
324
  )
292
325
 
326
+ selectedWmsStyleName$ = combineLatest([
327
+ this.styleLinks$,
328
+ this.isWmsStyleMode$,
329
+ this.selectedStyleId$.pipe(distinctUntilChanged()),
330
+ ]).pipe(
331
+ map(([styles, isWmsStyleMode, styleIdx]) =>
332
+ isWmsStyleMode && Array.isArray(styles)
333
+ ? (styles[styleIdx] as LayerStyle)?.name
334
+ : undefined
335
+ )
336
+ )
337
+
293
338
  selectedLink$ = combineLatest([
294
339
  this.selectedSourceLink$,
295
340
  this.styleLinks$,
296
341
  this.selectedStyleId$.pipe(distinctUntilChanged()),
342
+ this.isWmsStyleMode$,
297
343
  ]).pipe(
298
- map(([src, styles, styleIdx]) => (styles.length ? styles[styleIdx] : src)),
344
+ map(([src, styles, styleIdx, isWmsStyleMode]) =>
345
+ !isWmsStyleMode && styles.length ? styles[styleIdx] : src
346
+ ),
299
347
  shareReplay(1)
300
348
  )
301
349
 
302
- currentLayers$ = combineLatest([this.selectedLink$, this.excludeWfs$]).pipe(
303
- switchMap(([link, excludeWfs]) => {
350
+ wmsMimeType$ = this.selectedSourceLink$.pipe(
351
+ switchMap((link) => {
352
+ if (link?.type === 'service' && link?.accessServiceProtocol === 'wms') {
353
+ return from(
354
+ new WmsEndpoint(link.url.toString())
355
+ .isReady()
356
+ .then((endpoint) => {
357
+ return endpoint.describeLayer(link.name).then((description) => {
358
+ if (description) {
359
+ return description.owsType === 'wfs'
360
+ ? 'image/png'
361
+ : 'image/jpeg'
362
+ }
363
+ const layer = endpoint.getLayerByName(link.name)
364
+ return layer?.opaque ? 'image/jpeg' : 'image/png'
365
+ })
366
+ })
367
+ .catch(() => 'image/png')
368
+ )
369
+ }
370
+ return of('')
371
+ }),
372
+ shareReplay(1)
373
+ )
374
+
375
+ currentLayers$ = combineLatest([
376
+ this.selectedLink$,
377
+ this.excludeWfs$,
378
+ this.selectedWmsStyleName$,
379
+ this.wmsMimeType$,
380
+ ]).pipe(
381
+ switchMap(([link, excludeWfs, wmsStyleName, wmsMimeType]) => {
304
382
  if (!link) {
305
383
  return of([])
306
384
  }
@@ -315,6 +393,15 @@ export class MapViewComponent implements AfterViewInit {
315
393
  return of([])
316
394
  }
317
395
  return this.getLayerFromLink(link).pipe(
396
+ map((layer) =>
397
+ layer.type === 'wms'
398
+ ? {
399
+ ...layer,
400
+ ...(wmsStyleName && { style: wmsStyleName }),
401
+ ...(wmsMimeType && { format: wmsMimeType }),
402
+ }
403
+ : layer
404
+ ),
318
405
  map((layer) => [layer]),
319
406
  catchError((e) => {
320
407
  this.handleError(e)
@@ -394,7 +481,7 @@ export class MapViewComponent implements AfterViewInit {
394
481
  url: link.url.toString(),
395
482
  type: 'wms',
396
483
  name: link.name,
397
- })
484
+ } as MapContextLayerWms)
398
485
  } else if (
399
486
  link.type === 'service' &&
400
487
  link.accessServiceProtocol === 'tms'
@@ -164,7 +164,7 @@ export class MdViewFacade {
164
164
  link.accessServiceProtocol === 'ogcFeatures'
165
165
  ) {
166
166
  return from(
167
- this.dataService.getItemsFromOgcApi(link.url.href)
167
+ this.dataService.getItemsFromOgcApi(link.url.href, 1)
168
168
  ).pipe(
169
169
  map((collectionRecords: OgcApiRecord[]) => {
170
170
  return collectionRecords &&
@@ -1,4 +1,4 @@
1
- import { Injectable, inject } from '@angular/core'
1
+ import { inject, Injectable } from '@angular/core'
2
2
  import {
3
3
  FieldsService,
4
4
  SearchFacade,
@@ -6,6 +6,7 @@ import {
6
6
  } from '../../../../../../../libs/feature/search/src'
7
7
  import {
8
8
  FieldFilters,
9
+ SortByEnum,
9
10
  SortByField,
10
11
  } from '../../../../../../../libs/common/domain/src/lib/model/search'
11
12
  import { ROUTE_PARAMS, SearchRouteParams } from '../constants'
@@ -31,10 +32,12 @@ export class RouterSearchService implements SearchServiceI {
31
32
  }
32
33
 
33
34
  async setFilters(newFilters: FieldFilters) {
34
- const sortBy = await firstValueFrom(this.searchFacade.sortBy$)
35
+ let sortBy = await firstValueFrom(this.searchFacade.sortBy$)
35
36
  const fieldSearchParams = await firstValueFrom(
36
37
  this.fieldsService.readFieldValuesFromFilters(newFilters)
37
38
  )
39
+ // apply relevancy sort if a full text criteria is given
40
+ sortBy = newFilters['any'] ? SortByEnum.RELEVANCY : sortBy
38
41
  this.facade.setSearch({
39
42
  ...fieldSearchParams,
40
43
  [ROUTE_PARAMS.SORT]: sortBy ? sortByToString(sortBy) : undefined,
@@ -46,9 +49,15 @@ export class RouterSearchService implements SearchServiceI {
46
49
  this.searchFacade.searchFilters$
47
50
  )
48
51
  const updatedFilters = { ...currentFilters, ...newFilters }
49
- const newParams = await firstValueFrom(
52
+ let newParams = await firstValueFrom(
50
53
  this.fieldsService.readFieldValuesFromFilters(updatedFilters)
51
54
  )
55
+ if (newFilters['any']) {
56
+ newParams = {
57
+ ...newParams,
58
+ [ROUTE_PARAMS.SORT]: sortByToString(SortByEnum.RELEVANCY),
59
+ }
60
+ }
52
61
  this.facade.updateSearch(newParams as SearchRouteParams)
53
62
  }
54
63
 
@@ -1,5 +1,5 @@
1
1
  import { Location } from '@angular/common'
2
- import { Injectable, inject } from '@angular/core'
2
+ import { inject, Injectable } from '@angular/core'
3
3
  import { ActivatedRouteSnapshot, Router } from '@angular/router'
4
4
  import { MdViewActions } from '../../../../../../../libs/feature/record/src'
5
5
  import {
@@ -9,15 +9,18 @@ import {
9
9
  SetFilters,
10
10
  SetSortBy,
11
11
  } from '../../../../../../../libs/feature/search/src'
12
- import { FieldFilters } from '../../../../../../../libs/common/domain/src/lib/model/search'
12
+ import {
13
+ FieldFilters,
14
+ SortByEnum,
15
+ } from '../../../../../../../libs/common/domain/src/lib/model/search'
13
16
  import { Actions, createEffect, ofType } from '@ngrx/effects'
14
17
  import { navigation } from '@ngrx/router-store/data-persistence'
15
18
  import { of, pairwise, startWith } from 'rxjs'
16
- import { map, mergeMap, tap } from 'rxjs/operators'
19
+ import { map, mergeMap, take, tap } from 'rxjs/operators'
17
20
  import * as RouterActions from './router.actions'
18
21
  import { RouterFacade } from './router.facade'
19
22
  import { ROUTE_PARAMS } from '../constants'
20
- import { sortByFromString } from '../../../../../../../libs/util/shared/src'
23
+ import { sortByFromString, sortByToString } from '../../../../../../../libs/util/shared/src'
21
24
  import { ROUTER_CONFIG, RouterConfigModel } from '../router.config'
22
25
  import { RouterService } from '../router.service'
23
26
 
@@ -103,6 +106,33 @@ export class RouterEffects {
103
106
  )
104
107
  )
105
108
 
109
+ /**
110
+ * This effect is needed because on the page load, the search params from the URL are
111
+ * directly applied to the underlying search facade; this means that it doesn't go
112
+ * through the RouterSearchService which makes sure that a relevancy sort is applied
113
+ * whenever there's a full text search criteria set.
114
+ */
115
+ applyInitialRelevancySort$ = createEffect(
116
+ () =>
117
+ this.facade.searchParams$.pipe(
118
+ take(1),
119
+ tap((filters) => {
120
+ const relevancySort = sortByToString(SortByEnum.RELEVANCY)
121
+ if (
122
+ filters['q'] &&
123
+ (!Array.isArray(filters['q']) || filters['q'].length > 0) &&
124
+ !filters[ROUTE_PARAMS.SORT]
125
+ ) {
126
+ this.facade.updateSearch({
127
+ ...filters,
128
+ [ROUTE_PARAMS.SORT]: relevancySort,
129
+ })
130
+ }
131
+ })
132
+ ),
133
+ { dispatch: false }
134
+ )
135
+
106
136
  /**
107
137
  * This effect will load the metadata when a navigation to
108
138
  * a metadata record happens
@@ -111,6 +111,8 @@ 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: {
115
117
  return {
116
118
  ...state,
@@ -132,6 +134,7 @@ export function reducerSearch(
132
134
  },
133
135
  }
134
136
  }
137
+ // From results WC
135
138
  case fromActions.SET_SEARCH: {
136
139
  return {
137
140
  ...state,
@@ -1,6 +1,9 @@
1
1
  @if (previewUrl) {
2
- <div class="w-80 h-full flex flex-col gap-2">
3
- <gn-ui-image-overlay-preview class="h-48" [imageUrl]="previewUrl">
2
+ <div class="w-[314px] h-full flex flex-col gap-2">
3
+ <gn-ui-image-overlay-preview
4
+ class="w-[314px] h-[314px]"
5
+ [imageUrl]="previewUrl"
6
+ >
4
7
  </gn-ui-image-overlay-preview>
5
8
  @if (showAltTextInput) {
6
9
  <gn-ui-text-input
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  }
16
16
  <div class="grow pt-1" [ngClass]="shouldShowThumbnail ? 'sm:w-0' : ''">
17
- <div class="flex flex-col gap-2 h-full">
17
+ <div class="flex flex-col gap-2" [class.h-full]="size !== 'M'">
18
18
  <h4
19
19
  class="record-card__title"
20
20
  data-cy="recordTitle"
@@ -32,63 +32,70 @@
32
32
  [title]="abstract"
33
33
  ></gn-ui-markdown-parser>
34
34
  </div>
35
- <div class="record-card__footer">
36
- @if (record.ownerOrganization?.name) {
37
- <div
38
- data-cy="recordOrg"
39
- class="grow flex flex-row gap-1 items-center text-primary-lighter"
40
- [ngClass]="displayContactIconOnly ? 'justify-center' : ''"
35
+ @if (size !== 'M') {
36
+ <ng-container [ngTemplateOutlet]="footerTpl"></ng-container>
37
+ }
38
+ </div>
39
+ </div>
40
+ @if (size === 'M') {
41
+ <ng-container [ngTemplateOutlet]="footerTpl"></ng-container>
42
+ }
43
+ </a>
44
+
45
+ <ng-template #footerTpl>
46
+ <div class="record-card__footer">
47
+ @if (record.ownerOrganization?.name) {
48
+ <div
49
+ data-cy="recordOrg"
50
+ class="grow flex flex-row gap-1 items-center text-primary-lighter"
51
+ [ngClass]="displayContactIconOnly ? 'justify-center' : ''"
52
+ >
53
+ <ng-icon
54
+ name="iconoirBank"
55
+ class="text-primary -translate-y-[0.5px] shrink-0"
56
+ [title]="record.ownerOrganization.name"
57
+ ></ng-icon>
58
+ @if (!displayContactIconOnly) {
59
+ <span
60
+ data-cy="recordOrgName"
61
+ class="line-clamp-1"
62
+ [title]="record.ownerOrganization.name"
63
+ >{{ record.ownerOrganization.name }}</span
41
64
  >
42
- <ng-icon
43
- name="iconoirBank"
44
- class="text-primary -translate-y-[0.5px] shrink-0"
45
- [title]="record.ownerOrganization.name"
46
- ></ng-icon>
47
- @if (!displayContactIconOnly) {
48
- <span
49
- data-cy="recordOrgName"
50
- class="line-clamp-1"
51
- [title]="record.ownerOrganization.name"
52
- >{{ record.ownerOrganization.name }}</span
53
- >
54
- }
55
- </div>
56
65
  }
57
- <div class="record-card__footer__other">
58
- <div
59
- class="xs:border-r last:border-r-0 flex grow gap-4 px-4 last:pr-0"
60
- >
61
- <gn-ui-kind-badge
62
- [extraClass]="'text-[1.2em]'"
63
- [styling]="'gray'"
64
- [kind]="record?.kind"
65
- [contentTemplate]="customTemplate"
66
- class="pt-1"
67
- >
68
- <ng-template #customTemplate></ng-template
69
- ></gn-ui-kind-badge>
70
- @if (metadataQualityDisplay) {
71
- <gn-ui-metadata-quality
72
- class="flex items-center min-w-[113px]"
73
- [smaller]="true"
74
- [metadata]="record"
75
- [metadataQualityDisplay]="metadataQualityDisplay"
76
- [popoverDisplay]="true"
77
- ></gn-ui-metadata-quality>
78
- }
79
- </div>
80
- <div
81
- class="flex justify-center"
82
- data-cy="recordFav"
83
- [ngClass]="displayContactIconOnly ? 'px-1' : 'px-4'"
84
- >
85
- <ng-container
86
- [ngTemplateOutlet]="favoriteTemplate"
87
- [ngTemplateOutletContext]="{ $implicit: record }"
88
- ></ng-container>
89
- </div>
90
- </div>
66
+ </div>
67
+ }
68
+ <div class="record-card__footer__other">
69
+ <div class="xs:border-r last:border-r-0 flex grow gap-4 px-4 last:pr-0">
70
+ <gn-ui-kind-badge
71
+ [extraClass]="'text-[1.2em]'"
72
+ [styling]="'gray'"
73
+ [kind]="record?.kind"
74
+ [contentTemplate]="customTemplate"
75
+ class="pt-1"
76
+ >
77
+ <ng-template #customTemplate></ng-template
78
+ ></gn-ui-kind-badge>
79
+ @if (metadataQualityDisplay) {
80
+ <gn-ui-metadata-quality
81
+ class="flex items-center min-w-[113px]"
82
+ [smaller]="true"
83
+ [metadata]="record"
84
+ [metadataQualityDisplay]="metadataQualityDisplay"
85
+ [popoverDisplay]="true"
86
+ ></gn-ui-metadata-quality>
87
+ }
88
+ </div>
89
+ <div
90
+ class="flex justify-center"
91
+ data-cy="recordFav"
92
+ [ngClass]="displayContactIconOnly ? 'px-1' : 'px-4'"
93
+ >
94
+ <ng-container
95
+ [ngTemplateOutlet]="favoriteTemplate"
96
+ [ngTemplateOutletContext]="{ $implicit: record }"
97
+ ></ng-container>
91
98
  </div>
92
99
  </div>
93
100
  </div>
94
- </a>
101
+ </ng-template>
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  &.size-M {
9
- @apply max-w-[940px] md:h-[231px] gap-4;
9
+ @apply max-w-[940px] gap-4 flex-wrap;
10
10
  }
11
11
 
12
12
  &.size-S {
@@ -28,11 +28,11 @@
28
28
  @apply border rounded-lg overflow-hidden shrink-0;
29
29
 
30
30
  .size-L & {
31
- @apply w-full w-[190px] h-[184px];
31
+ @apply w-[184px] h-[184px];
32
32
  }
33
33
 
34
34
  .size-M & {
35
- @apply w-full w-[138px] h-[207px];
35
+ @apply w-[138px] h-[138px];
36
36
  }
37
37
  }
38
38
 
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  .size-M & {
47
- @apply line-clamp-2 ml-2;
47
+ @apply line-clamp-2;
48
48
  }
49
49
 
50
50
  .size-S & {
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  .size-M & {
67
- @apply line-clamp-3 ml-2;
67
+ @apply line-clamp-3;
68
68
  }
69
69
 
70
70
  .size-S & {
@@ -50,7 +50,7 @@ export function dragPanCondition(
50
50
 
51
51
  export function mouseWheelZoomCondition(
52
52
  this: MouseWheelZoom,
53
- event: MapBrowserEvent<UIEvent>
53
+ event: MapBrowserEvent<WheelEvent>
54
54
  ) {
55
55
  if (!platformModifierKeyOnly(event) && event.type === 'wheel') {
56
56
  this.getMap().dispatchEvent('mapmuted')
@@ -30,7 +30,7 @@
30
30
  ></gn-ui-thumbnail>
31
31
  }
32
32
  </div>
33
- <div class="flex flex-col overflow-hidden items-start">
33
+ <div class="flex flex-col overflow-hidden items-start grow">
34
34
  @if (hasOrganization) {
35
35
  <span
36
36
  class="font-bold transition duration-200 text-primary truncate max-w-full"
@@ -51,32 +51,35 @@
51
51
  >
52
52
  </p>
53
53
  </div>
54
- </div>
55
- <div class="pt-5 pb-5 px-10 relative">
56
- <div class="absolute top-[0.85em] right-[0.85em]">
54
+ <div class="ml-3 shrink-0">
57
55
  <ng-container
58
56
  [ngTemplateOutlet]="favoriteTemplate"
59
57
  [ngTemplateOutletContext]="{ $implicit: record }"
60
58
  ></ng-container>
61
59
  </div>
62
- <h1
63
- class="font-title text-black text-[21px] font-medium mb-3 pr-8"
64
- data-cy="recordTitle"
65
- >
66
- {{ record.title }}
67
- </h1>
60
+ </div>
61
+ <div class="pt-5 pb-5 px-10 relative">
62
+ <div class="flex flex-col sm:flex-row gap-4 mb-3">
63
+ @if (record.overviews?.[0]) {
64
+ <gn-ui-thumbnail
65
+ class="block shrink-0 w-[120px] h-[120px] border border-gray-100 rounded-lg overflow-hidden"
66
+ [thumbnailUrl]="record.overviews?.[0]?.url.toString()"
67
+ [fit]="'cover'"
68
+ ></gn-ui-thumbnail>
69
+ }
70
+ <h1
71
+ class="font-title text-black text-[21px] font-medium"
72
+ data-cy="recordTitle"
73
+ >
74
+ {{ record.title }}
75
+ </h1>
76
+ </div>
68
77
  <p class="line-clamp-3">
69
78
  <gn-ui-markdown-parser
70
79
  [textContent]="abstract"
71
80
  [whitoutStyles]="true"
72
81
  />
73
82
  </p>
74
- @if (record.overviews?.[0]) {
75
- <gn-ui-thumbnail
76
- class="block mt-3 w-full h-[136px] border border-gray-100 rounded-lg overflow-hidden"
77
- [thumbnailUrl]="record.overviews?.[0]?.url.toString()"
78
- ></gn-ui-thumbnail>
79
- }
80
83
  @if (isDownloadable || isViewable) {
81
84
  <div class="flex flex-row mt-3">
82
85
  @if (isDownloadable) {
@@ -331,11 +331,15 @@ export async function getLayers(url: string, serviceProtocol: ServiceProtocol) {
331
331
  case 'wfs': {
332
332
  const endpointWfs = await new WfsEndpoint(url).isReady()
333
333
  const featureTypes = await endpointWfs.getFeatureTypes()
334
- const layers = await Promise.all(
335
- featureTypes.map(async (collection) => {
336
- return await endpointWfs.getFeatureTypeFull(collection.name)
337
- })
334
+ const layers = (
335
+ await Promise.allSettled(
336
+ featureTypes.map((collection) => {
337
+ return endpointWfs.getFeatureTypeFull(collection.name)
338
+ })
339
+ )
338
340
  )
341
+ .filter((settled) => settled.status === 'fulfilled')
342
+ .map((fulfilled) => fulfilled.value)
339
343
  return layers
340
344
  }
341
345
  case 'wms': {
@@ -382,6 +382,7 @@
382
382
  "map.ogc.urlInput.hint": "Die URL des OGC API-Dienstes eingeben",
383
383
  "map.select.layer": "Datenquelle",
384
384
  "map.select.style": "Style",
385
+ "map.style.default": "Standard",
385
386
  "map.wfs.urlInput.hint": "Die WFS URL eingeben",
386
387
  "map.wms.urlInput.hint": "Die WMS URL eingeben",
387
388
  "multiselect.filter.placeholder": "Suche",
@@ -604,6 +605,7 @@
604
605
  "search.filters.producerOrg": "Herausgeber",
605
606
  "search.filters.publicationYear": "Veröffentlichungsjahr",
606
607
  "search.filters.publisherOrg": "Vertreiber",
608
+ "search.filters.recordKind": "",
607
609
  "search.filters.recordKind.all": "Alle",
608
610
  "search.filters.recordKind.dataset": "Datensätze",
609
611
  "search.filters.recordKind.reuse": "Wiederverwendungen",
@@ -642,7 +644,6 @@
642
644
  "service.metadata.spatialExtent": "Räumliche Ausdehnung",
643
645
  "share.tab.permalink": "Teilen",
644
646
  "share.tab.webComponent": "Integrieren",
645
- "stac.filter.reset": "Filter zurücksetzen",
646
647
  "stac.filter.enable": "",
647
648
  "stac.filter.reset": "",
648
649
  "stac.results.noResults": "Ihre Suchfilter lieferten keine Ergebnisse",
@@ -382,6 +382,7 @@
382
382
  "map.ogc.urlInput.hint": "Enter OGC API service URL",
383
383
  "map.select.layer": "Data source",
384
384
  "map.select.style": "Style",
385
+ "map.style.default": "Default",
385
386
  "map.wfs.urlInput.hint": "Enter WFS service URL",
386
387
  "map.wms.urlInput.hint": "Enter WMS service URL",
387
388
  "multiselect.filter.placeholder": "Search",