[Mapbender-commits] r9854 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Feb 1 00:56:00 PST 2018
Author: armin11
Date: 2018-02-01 00:56:00 -0800 (Thu, 01 Feb 2018)
New Revision: 9854
Modified:
trunk/mapbender/http/php/mod_dataISOMetadata.php
Log:
Bugfix for departement metadata
Modified: trunk/mapbender/http/php/mod_dataISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_dataISOMetadata.php 2018-01-31 16:44:25 UTC (rev 9853)
+++ trunk/mapbender/http/php/mod_dataISOMetadata.php 2018-02-01 08:56:00 UTC (rev 9854)
@@ -908,12 +908,20 @@
if (isset($mb_metadata['responsible_party_name']) && $mb_metadata['responsible_party_name'] !=='') {
$resOrgaText = $iso19139->createTextNode($mb_metadata['responsible_party_name']);
} else {
- $resOrgaText= $iso19139->createTextNode("not yet defined");
+ if (isset($departmentMetadata['mb_group_name'])) {
+ $resOrgaText = $iso19139->createTextNode($departmentMetadata['mb_group_name']);
+ } else {
+ $resOrgaText= $iso19139->createTextNode("not yet defined");
+ }
}
if (isset($mb_metadata['responsible_party_email']) && $mb_metadata['responsible_party_email'] !=='') {
$resMailText = $iso19139->createTextNode($mb_metadata['responsible_party_email']);
} else {
- $resMailText = $iso19139->createTextNode("kontakt at geoportal.rlp.de");
+ if (isset($userMetadata['mb_user_email'])) {
+ $resMailText = $iso19139->createTextNode($userMetadata['mb_user_email']);
+ } else {
+ $resMailText = $iso19139->createTextNode("kontakt at geoportal.rlp.de");
+ }
}
$resRoleText = $iso19139->createTextNode("pointOfContact");
$orgaName_cs->appendChild($resOrgaText);
More information about the Mapbender_commits
mailing list