[Mapbender-commits] r9398 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 17 07:49:54 PST 2016
Author: armin11
Date: 2016-02-17 07:49:54 -0800 (Wed, 17 Feb 2016)
New Revision: 9398
Modified:
trunk/mapbender/http/classes/class_iso19139.php
Log:
Enhance iso19139 parser to extract responsible party name and email from xml docs
Modified: trunk/mapbender/http/classes/class_iso19139.php
===================================================================
--- trunk/mapbender/http/classes/class_iso19139.php 2016-02-16 09:00:43 UTC (rev 9397)
+++ trunk/mapbender/http/classes/class_iso19139.php 2016-02-17 15:49:54 UTC (rev 9398)
@@ -125,6 +125,9 @@
$this->accessConstraints = null;
$this->fees = null;
$this->licenseJson = null;
+ //following things are not stored directly in the mapbender database but came only from xml
+ $this->ressourceResponsibleParty = null;
+ $this->ressourceContactEmail = null;
}
public function removeGetRecordTag ($xml) {
@@ -424,7 +427,12 @@
}
}
$e = new mb_notice("class_iso19139.php: licenseSourceNote: ".$this->licenseSourceNote." - fees: ".$this->fees);
- //fill database with elements:
+ $this->ressourceResponsibleParty = $iso19139Xml->xpath('//gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString');
+ $this->ressourceResponsibleParty = $this->ressourceResponsibleParty[0];
+ $this->ressourceContactEmail = $iso19139Xml->xpath('//gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString');
+ $this->ressourceContactEmail = $this->ressourceContactEmail[0];
+ $e = new mb_exception($this->ressourceContactEmail);
+ $e = new mb_exception($this->ressourceResponsibleParty);
return $this;
} else {
return false;
More information about the Mapbender_commits
mailing list