Coder Social home page Coder Social logo

Comments (13)

tdipisa avatar tdipisa commented on July 22, 2024 1

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.

from mapstore2-georchestra.

MaelREBOUX avatar MaelREBOUX commented on July 22, 2024 1

as requested by @tdipisa

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

image

Is that enough ?

from mapstore2-georchestra.

tdipisa avatar tdipisa commented on July 22, 2024

@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:

  • Show metadata information for each catalog's item directly in the catalog tool list: here the online
    documentation

  • 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

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:

  • Can you please clarify if the purpose of this tool is to support both DC and iso19115-39? Can we simply show in MS what is available in DC by including anyway also a link to the original catalog to access the detailed sheet? If we cannot do that we will probably need to include in Layer Settings a new input field (available only to admin users) containing the metadata URL so it can be used to retrieve the metadata in the desired format: MS will need to be improved then to extrapolate needed metadata properties from the catalog's response using xpath
  • Can you please specify the xpath of the metadata properties reported in the description, just to prevent misunderstanding?

@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.

from mapstore2-georchestra.

landryb avatar landryb commented on July 22, 2024

@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..

from mapstore2-georchestra.

mbarto avatar mbarto commented on July 22, 2024

@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.

from mapstore2-georchestra.

tdipisa avatar tdipisa commented on July 22, 2024

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

from mapstore2-georchestra.

catmorales avatar catmorales commented on July 22, 2024

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

from mapstore2-georchestra.

MaelREBOUX avatar MaelREBOUX commented on July 22, 2024

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) :

  • 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 (severals) (/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty)

Maybe we need here a point by telephone ?

from mapstore2-georchestra.

catmorales avatar catmorales commented on July 22, 2024

we can have a point about it on the next meeting

from mapstore2-georchestra.

tdipisa avatar tdipisa commented on July 22, 2024

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

from mapstore2-georchestra.

tdipisa avatar tdipisa commented on July 22, 2024

@MaelREBOUX yes I think, thank you.

from mapstore2-georchestra.

vlt1 avatar vlt1 commented on July 22, 2024

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?

from mapstore2-georchestra.

tdipisa avatar tdipisa commented on July 22, 2024

@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.

from mapstore2-georchestra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.