[Mapbender-commits] r9143 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jan 9 02:21:41 PST 2015


Author: armin11
Date: 2015-01-09 02:21:41 -0800 (Fri, 09 Jan 2015)
New Revision: 9143

Modified:
   trunk/mapbender/http/php/mod_showMetadata.php
Log:
Alter header of the responsible organisation when show wmc metadata

Modified: trunk/mapbender/http/php/mod_showMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_showMetadata.php	2015-01-08 09:04:03 UTC (rev 9142)
+++ trunk/mapbender/http/php/mod_showMetadata.php	2015-01-09 10:21:41 UTC (rev 9143)
@@ -152,6 +152,7 @@
 		$translation['resourceAbstract'] = 'Zusammenfassung';
 		$translation['resourceTitle'] = 'Titel';
 		$translation['metadataProvider'] = 'Inhaltlich verantwortliche Stelle';
+		$translation['wmcProvider'] = 'Verantwortlich für die Zusammenstellung der Datenquellen';
 		$translation['serviceProvider'] = 'Technisch verantwortliche Stelle';
 		$translation['contactPerson'] = 'Ansprechpartner';
 		$translation['contactOrganization'] = 'Organisation';
@@ -230,6 +231,7 @@
 		$translation['resourceAbstract'] = 'Abstract';
 		$translation['resourceTitle'] = 'Title';
 		$translation['metadataProvider'] = 'Responsible party for content';
+		$translation['wmcProvider'] = 'Responsible for the collection of the datasources';
 		$translation['serviceProvider'] = 'Responsible party for service';
 		$translation['contactPerson'] = 'Contact person';
 		$translation['contactOrganization'] = 'Organization';
@@ -307,6 +309,7 @@
 		$translation['resourceAbstract'] = 'Résumé';
 		$translation['resourceTitle'] = 'Titre';
 		$translation['metadataProvider'] = 'Responsable du contenu';
+		$translation['wmcProvider'] = 'Responsable du contenu';
 		$translation['serviceProvider'] = 'Responsable du service';
 		$translation['contactPerson'] = 'Personne de contact';
 		$translation['contactOrganization'] = 'Organisation';
@@ -384,6 +387,7 @@
 		$translation['resourceAbstract'] = 'Abstract';
 		$translation['resourceTitle'] = 'Title';
 		$translation['metadataProvider'] = 'Responsible party for content';
+		$translation['wmcProvider'] = 'Responsible for the collection of the datasources';
 		$translation['serviceProvider'] = 'Responsible party for service';
 		$translation['contactPerson'] = 'Contact person';
 		$translation['contactOrganization'] = 'Organization';
@@ -1144,9 +1148,11 @@
 	$html .= '<div>';
 }
 $html .= '<p>';
-
-$html .= '<h4>'.$translation['metadataProvider'].'</h4>';
-
+if ($resource == 'wmc') {
+	$html .= '<h4>'.$translation['wmcProvider'].'</h4>';
+} else {
+	$html .= '<h4>'.$translation['metadataProvider'].'</h4>';
+}
 $html .= $tableBegin;
 if ($metadataContactGroup['metadatapointofcontactorglogo'] != '') {
 	$html .= $t_a.$translation['logo'].$t_b."<img src='".$metadataContactGroup['metadatapointofcontactorglogo']."'  height='30'>".$t_c;
@@ -1157,17 +1163,17 @@
 $html .= $t_a.$translation['city'].$t_b.displayText($metadataContactGroup['metadatapointofcontactorgpostcode'].' '.$metadataContactGroup['metadatapointofcontactorgcity']).$t_c;
 $html .= $t_a.$translation['email'].$t_b.displayText($metadataContactGroup['metadatapointofcontactorgemail']).$t_c;
 $html .= $tableEnd;
-
-$html .= '<h4>'.$translation['serviceProvider'].'</h4>';
-$html .= $tableBegin;
-$html .= $t_a.$translation['contactOrganization'].$t_b.displayText($resourceMetadata['contactorganization']).$t_c;
-$html .= $t_a.$translation['contactPerson'].$t_b.displayText($resourceMetadata['contactperson']).$t_c;
-$html .= $t_a.$translation['contactAddress'].$t_b.displayText($resourceMetadata['address']).$t_c;
-$html .= $t_a.$translation['contactCity'].$t_b.displayText($resourceMetadata['postcode'].' '.$resourceMetadata['city']).$t_c;
-$html .= $t_a.$translation['contactTelephone'].$t_b.displayText($resourceMetadata['contactvoicetelephone']).$t_c;
-$html .= $t_a.$translation['email'].$t_b.displayText($resourceMetadata['contactelectronicmailaddress']).$t_c;
-$html .= $tableEnd;
-
+if ($resource !== 'wmc') {
+	$html .= '<h4>'.$translation['serviceProvider'].'</h4>';
+	$html .= $tableBegin;
+	$html .= $t_a.$translation['contactOrganization'].$t_b.displayText($resourceMetadata['contactorganization']).$t_c;
+	$html .= $t_a.$translation['contactPerson'].$t_b.displayText($resourceMetadata['contactperson']).$t_c;
+	$html .= $t_a.$translation['contactAddress'].$t_b.displayText($resourceMetadata['address']).$t_c;
+	$html .= $t_a.$translation['contactCity'].$t_b.displayText($resourceMetadata['postcode'].' '.$resourceMetadata['city']).$t_c;
+	$html .= $t_a.$translation['contactTelephone'].$t_b.displayText($resourceMetadata['contactvoicetelephone']).$t_c;
+	$html .= $t_a.$translation['email'].$t_b.displayText($resourceMetadata['contactelectronicmailaddress']).$t_c;
+	$html .= $tableEnd;
+}
 $html .= '</p>';
 
 $html .= '</div>';



More information about the Mapbender_commits mailing list