georchestra / mapstore2-georchestra

geOrchestra newest viewer
Other
6 stars 23 forks source link

Show Layer Metadata - Layer metadata #50

Closed tdipisa closed 4 years ago

tdipisa commented 5 years ago

As part of the TOC utilities, this tool can be activated for the selected layer. A modal is shown containing the following metadata information retrieved by the CSW catalog configured by the administrator for the layer:

tdipisa commented 4 years ago

@landryb and @catmorales I think that we need some clarifications for this task. MapStore supports Dublin Core for CSW requests. This means that when you select a CSW source type from the catalog tool, MapStore performs a GetRecords request to retrieve the list of metadata records in DC with related metadata properties, then these metadata properties can be used in MS to:

As far as I know not all the metadata properties reported in the issue description are available in DC, so I need the have the following clarified as soon as you can:

@mbarto please provide the show metadata plugin documentation in a comment here so @gitcontributor can start looking at this and understand how it works. Thank you so much. Then we will improve our online documentation by including information to this tool too.

landryb commented 4 years ago

@MaelREBOUX should know, i'm not sure dublin core was a target. In the existing mapfishapp, we're used to get metadata url via the value configured within geoserver for the layer, both in XML and HTML forms..

mbarto commented 4 years ago

@landryb @catmorales @tdipisa there is some documentation on how to implement a custom template, using a property of the TOC plugin (metadataTemplate). You can find it here: https://mapstore.geo-solutions.it/mapstore/docs/api/plugins#plugins.TOC

That said, the usage of this functionality is currently available only for dublin core, because the MapStore API and related parser for CSW only supports that.

tdipisa commented 4 years ago

@offtherailz waiting for @MaelREBOUX feedback, please enable for now the layer metadata plugin that we already have.

catmorales commented 4 years ago

I don't know if it can help you but we'd like to have the same fucntionnality as in mapfishapp : image

Permalien: https://georchestra.geo-solutions.it/mapfishapp/map/47388bc483069f60104b12903db7a200

MaelREBOUX commented 4 years ago

Sorry sorry for my late answer.

I think we have a misunderstanding on what we want to have as 'layer metadata' and where we want to see this infos.

Here I will answer only for CSW that is for me the first user case.

Show metadata information for each catalog's item directly in the catalog tool list

OK but here we need to muscle the metadatas informations. We need this pattern by default

${title}

Description
${abstract}

But
${purpose}

Généalogie
${source}

Dates
création : dd/mm/yyyy  - révision : dd/mm/yyyy

If a layer is added to the TOC from a CSW source, MS maintains the URL of the CSW catalog endpoint in the layer configuration so if you select that layer in TOC a button appears (if the related plugin configured) inside the TOC's toolbar ready to be clicked: if you click on this button a modal opens reporting the metadata information related to the layer

In understand this functionnality is accessible by editing the layer properties. There we can manage a tooltip (I test it).

This is not as simple as we want. User should have a quick and fast access to the metadata.

So I propose to create a new button (with other buttons when you select a layer in the TOC) named "MD". By clicking this button it opens a new "popup" in the center of the screen. This object will show the metadata content (as ISO-19139) :

Maybe we need here a point by telephone ?

catmorales commented 4 years ago

we can have a point about it on the next meeting

tdipisa commented 4 years ago

we can have a point about it on the next meeting @catmorales @MaelREBOUX yes, let's discuss this during the next meeting on Thursday

tdipisa commented 4 years ago

Rennes Métropole usually configures Metadata links directly in the GeoServer layer configuration (those links are present inside the GetCapabilities response). GeoSolutions will improve the existing Layer Metadata tool to make it more configurable. The aim is to retrieve the metadata XML (in iso19139 format) by using the metadata URL present in the WMS GetCapabilities response and parse it with a new template that extrapolates the relevant metadata properties to show through xpath:

Metadata property xpath
title /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString
abstract /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString
purpose /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:purpose/gco:CharacterString
source /gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString
created date /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date + codeListValue="creation"
last revision date /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date + codeListValue="revision"
points of contact (all of the available ones inside the medatata) /gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty

If a layer is added to the map from a CSW source instead, the existing tool’s behaviors are maintained but using the new template to present iso19139 metadata properties instead of the DC one as it currently does. Also a link to the original metadata catalog page will be included in the Layer Metadata modal.

MaelREBOUX commented 4 years ago

as requested by @tdipisa

https://public.sig.rennesmetropole.fr/geoserver/ espub_mob:gev_ajeu

image

Is that enough ?

tdipisa commented 4 years ago

@MaelREBOUX yes I think, thank you.

vlt1 commented 4 years ago

If a layer is added to the map from a CSW source instead, the existing tool’s behaviors are maintained but using the new template to present iso19139 metadata properties instead of the DC one as it currently does.

@tdipisa What do you mean by "existing tool's behaviors are maintained"? What behaviors?

tdipisa commented 4 years ago

@vlt1 moving it back to in ready after testing. As specified in the original issue description

Also a link to the original metadata catalog page will be included in the Layer Metadata modal.

The link to use (on top of the layer metadata modal with a label like "Metadata available at:") is the one that you can find in the WMS GetCapabilities that corresponds to the text/html format.

metadata

Therefore if you find that element in WMS GetCapabilities you have to include a link in the Layer Metadata modal.