Gå til indhold

MetadataInfo

Dansk navn: MetadataInfo
Engelsk navn: MetadataInfo
Ikon: info-sign Ikon

Vis metadata for et lag.

MetadataInfo (åbner i et nyt vindue)

I eksempel-configNote
DesktopNej
MobilNej
DashboardNej
KontekstJaFindes i pluginsConfig.json

Parametre under cfg i localConfig:

  • metadataTemplate (string[]|string|object|function) — brugerdefineret skabelon (HTML) til visning af metadata, i stedet for standardvisningen
  • metadataOptions (object) — indstillinger til iso19139 XML-metadata-parser
  • metadataOptions.xmlNamespaces (object) — XML-namespaces brugt i metadataen, fx gmd, srv, gco, gmx, gfc, gts, gml
  • metadataOptions.extractors (object[]) — XPath-udtryk, der udtrækker felter (titel, revisionsdato, kontaktpersoner m.m.) fra ISO19139 XML-metadataen

Standardkonfiguration i localConfig.json

Sektion kaldt “Standardkonfiguration i localConfig.json”

Ingen eksempler

Standardkonfiguration i pluginsConfig.json

Sektion kaldt “Standardkonfiguration i pluginsConfig.json”
{
"name": "MetadataInfo",
"defaultConfig": {
"metadataOptions": {
"xmlNamespaces": {
"gmd": "http://www.isotc211.org/2005/gmd",
"srv": "http://www.isotc211.org/2005/srv",
"gco": "http://www.isotc211.org/2005/gco",
"gmx": "http://www.isotc211.org/2005/gmx",
"gfc": "http://www.isotc211.org/2005/gfc",
"gts": "http://www.isotc211.org/2005/gts",
"gml": "http://www.opengis.net/gml"
},
"extractors": [
{
"properties": {
"title": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString",
"lastRevisionDate": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date[../../gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='revision']]",
"pointsOfContact": {
"xpath": "/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty",
"properties": {
"individualName": "gmd:individualName/gco:CharacterString",
"organisationName": "gmd:organisationName/gco:CharacterString",
"contactInfo": {
"xpath": "gmd:contactInfo/gmd:CI_Contact",
"properties": {
"phone": "gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString",
"hoursOfService": "gmd:hoursOfService/gco:CharacterString"
}
},
"role": "gmd:role/gmd:CI_RoleCode/@codeListValue"
}
}
}
}
]
}
}
}