Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer image preview when file has a description #10504

Open
1 task done
f-necas opened this issue Aug 6, 2024 · 0 comments
Open
1 task done

Layer image preview when file has a description #10504

f-necas opened this issue Aug 6, 2024 · 0 comments

Comments

@f-necas
Copy link
Contributor

f-necas commented Aug 6, 2024

Description

Preview image doesn't display when csw response dc:URI contains a name.

image

How to reproduce

  • Connect a geonetwork catalog with csw
  • Create a 19139 metadata record with an image and his description (see xml below)
<gmd:graphicOverview>
	<gmd:MD_BrowseGraphic>
		<gmd:fileName>
			<gco:CharacterString>https://site.com/img/fish.png</gco:CharacterString>
		</gmd:fileName>
		<gmd:fileDescription>
			<gco:CharacterString>My description</gco:CharacterString>
		</gmd:fileDescription>
	</gmd:MD_BrowseGraphic>
</gmd:graphicOverview>
  • Add a layer in MapStore.

Expected Result

The preview of fish.png

Current Result

A Preview not available is showing

  • Not browser related

Other useful information

Response from MapStore CSW request :

<!-- Doesn't work -->
<csw:Record>
	<dc:URI protocol="image/png" name="My description">https://site.com/img/fish.png</dc:URI>
</csw:Record>

<!-- Works (by removing description in geonetwork)-->
<csw:Record>
	<dc:URI protocol="image/png">https://site.com/img/fish.png</dc:URI>
</csw:Record>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants