Skip to content

Layer image preview when file has a description #10504

Description

@f-necas

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>

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions