[Mapbender-commits] r10313 - trunk/mapbender/tools

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Oct 31 02:57:23 PDT 2019


Author: armin11
Date: 2019-10-31 02:57:22 -0700 (Thu, 31 Oct 2019)
New Revision: 10313

Modified:
   trunk/mapbender/tools/mod_qualifyPersistedMetadataXml.php
Log:
Fix for getrecordbyid based metadata

Modified: trunk/mapbender/tools/mod_qualifyPersistedMetadataXml.php
===================================================================
--- trunk/mapbender/tools/mod_qualifyPersistedMetadataXml.php	2019-10-30 13:33:02 UTC (rev 10312)
+++ trunk/mapbender/tools/mod_qualifyPersistedMetadataXml.php	2019-10-31 09:57:22 UTC (rev 10313)
@@ -147,7 +147,7 @@
 		
 		/*$keywordXMLSnippet = '<?xml version="1.0" encoding="UTF-8"?><gmd:descriptiveKeywords xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink"><gmd:MD_Keywords><gmd:keyword><gmx:Anchor xlink:href="http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/national">Regional</gmx:Anchor></gmd:keyword><gmd:thesaurusName><gmd:CI_Citation><gmd:title><gmx:Anchor xlink:href="http://inspire.ec.europa.eu/metadata-codelist/SpatialScope">Spatial scope</gmx:Anchor></gmd:title><gmd:date><gmd:CI_Date><gmd:date><gco:Date>2019-05-22</gco:Date></gmd:date><gmd:dateType><gmd:CI_DateTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode" codeListValue="publication">publication</gmd:CI_DateTypeCode></gmd:dateType></gmd:CI_Date></gmd:date></gmd:CI_Citation></gmd:thesaurusName></gmd:MD_Keywords
 ></gmd:descriptiveKeywords>';*/
 
-		$descriptiveKeywordsNodeList = $xpath->query('/gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords');
+		$descriptiveKeywordsNodeList = $xpath->query('//gmd:MD_Metadata/gmd:identificationInfo//gmd:descriptiveKeywords');
 		//data and service identification!
 		$arrayDescriptiveKeywordsNodeList = (array)$descriptiveKeywordsNodeList;			
 



More information about the Mapbender_commits mailing list