Skip to content

Issue #10504 : Layer image preview when file has a description#12531

Open
FNI18300 wants to merge 1 commit into
geosolutions-it:masterfrom
groupe-open-rennes:feature/issue-10504
Open

Issue #10504 : Layer image preview when file has a description#12531
FNI18300 wants to merge 1 commit into
geosolutions-it:masterfrom
groupe-open-rennes:feature/issue-10504

Conversation

@FNI18300

@FNI18300 FNI18300 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request fixes the layer preview handling in CSW metadata parsing.

When a record includes a file-based preview and also contains a description, the preview image was not consistently exposed/used.
This change ensures the preview image is correctly picked and displayed in that case.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?
For issue #10504, layer image preview coming from file metadata is not properly handled when a description is present, leading to missing or incorrect preview behavior.

What is the new behavior?
The CSW parsing logic now correctly handles this metadata combination and preserves the expected layer image preview.
A test case was added/updated to cover this scenario.

Fixes #10504

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@cla-bot cla-bot Bot added the CLA Ready label Jun 23, 2026
@FNI18300 FNI18300 marked this pull request as ready for review June 23, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Layer image preview when file has a description

1 participant