[Mapbender-commits] r8099 - in branches/2.7: http/javascripts resources/locale/de_DE/LC_MESSAGES

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Sep 5 06:05:00 EDT 2011


Author: armin11
Date: 2011-09-05 03:05:00 -0700 (Mon, 05 Sep 2011)
New Revision: 8099

Modified:
   branches/2.7/http/javascripts/mod_displayWmc.php
   branches/2.7/http/javascripts/mod_loadwmc.js
   branches/2.7/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
Log:
Extent loadWMC with function to download the wmc xml.

Modified: branches/2.7/http/javascripts/mod_displayWmc.php
===================================================================
--- branches/2.7/http/javascripts/mod_displayWmc.php	2011-09-05 09:53:18 UTC (rev 8098)
+++ branches/2.7/http/javascripts/mod_displayWmc.php	2011-09-05 10:05:00 UTC (rev 8099)
@@ -20,6 +20,7 @@
 require_once(dirname(__FILE__)."/../php/mb_validateSession.php");
 
 $wmc_id = $_GET["wmc_id"];
+$download = $_GET["download"];
 
 if ($wmc_id){
 	require_once(dirname(__FILE__)."/../classes/class_wmc.php");
@@ -28,16 +29,21 @@
 
 	if ($wmc_gml){
 		//Display WMC
- 
- 			// if "short open tags" is activated, the xml output is interpreted
+ 		// if "short open tags" is activated, the xml output is interpreted
 		// as php, because the XML begins with "<?xml "
 		if (ini_get("short_open_tag") == 1) {
 			echo htmlentities($wmc_gml);
 			$e = new mb_warning("'Allow short open tags' is 'On' in php.ini...you might want to turn it off to allow proper WMC display.'");
 		}
 		else {
-			header("Content-type: application/xhtml+xml; charset=".CHARSET);
-			echo $wmc_gml;
+			if ($download == 'true') {
+				header('Content-disposition: attachment; filename=mapbender_wmc.xml');
+				header("Content-type: application/xhtml+xml; charset=".CHARSET);
+				echo $wmc_gml;
+			} else {
+				header("Content-type: application/xhtml+xml; charset=".CHARSET);
+				echo $wmc_gml;
+			}
 		}
 	}
 	else{

Modified: branches/2.7/http/javascripts/mod_loadwmc.js
===================================================================
--- branches/2.7/http/javascripts/mod_loadwmc.js	2011-09-05 09:53:18 UTC (rev 8098)
+++ branches/2.7/http/javascripts/mod_loadwmc.js	2011-09-05 10:05:00 UTC (rev 8099)
@@ -46,7 +46,7 @@
 	"labelMerge": "merge",
 	"labelAppend": "append",
 	"labelPublic": "public",
-	"labelShow": "show",
+	"labelShow": "show/save",
 	"labelDelete": "delete",
 	"labelEditWmc": "edit",
 	"labelOpenLayers": "OpenLayers",
@@ -196,7 +196,7 @@
 	this.showWmcXml = function (id) {
 		this.hideWmcXml();
 		var url = "../javascripts/mod_displayWmc.php?wmc_id=" + id + "&" + mb_session_name + "=" + mb_nr;
-		var $wmcDisplayPopup = $('<div class="wmcDisplayPopup"><iframe style="width:99%;height:99%;" src="' + url + '"></iframe></div>');
+		var $wmcDisplayPopup = $('<div class="wmcDisplayPopup"><a href="'+ url + '&download=true' +'"><h3>Download</h3><img src="../img/gnome/document-save.png"/></a><br><br><iframe style="width:99%;height:99%;" src="' + url + '"></iframe></div>');
 		$wmcDisplayPopup.dialog({
 			title: translatedI18nObject.labelWmcDocument,
 			bgiframe: true,
@@ -239,7 +239,7 @@
 		this.hideOpenLayersUrl();
 		var url = Mapbender.loginUrl;
 		url = url.replace("frames/login.php", "");
-		url = url.replace("http/frames/login.php", "");
+		url = Mapbender.baseUrl + "/mapbender/";
 		url = url + "php/mod_wmc2ol.php?wmc_id=" + id ;
 		var $wmcOpenLayersUrlPopup = $('<div><input size="35" type="text" value="' + url + '"/></div>');
 		$wmcOpenLayersUrlPopup.dialog({

Modified: branches/2.7/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
===================================================================
--- branches/2.7/resources/locale/de_DE/LC_MESSAGES/Mapbender.po	2011-09-05 09:53:18 UTC (rev 8098)
+++ branches/2.7/resources/locale/de_DE/LC_MESSAGES/Mapbender.po	2011-09-05 10:05:00 UTC (rev 8099)
@@ -1068,8 +1068,8 @@
 msgstr "öffentlich"
 
 #: ../http/javascripts/mod_loadwmc.js:87
-msgid "show"
-msgstr "anzeigen"
+msgid "show/save"
+msgstr "anzeigen/speichern"
 
 #: ../http/javascripts/mod_loadwmc.js:88
 #: ../http/javascripts/mod_loadwmc.js:294
@@ -3369,3 +3369,171 @@
 #: ../http/javascripts/mod_wfsLayerObj_conf.js:36
 msgid "Cancel"
 msgstr ""
+
+#: ../http/php/mod_showMetadata.php
+msgid "Kind of resource"
+msgstr "Art der Ressource"
+
+msgid "Map Service"
+msgstr "Kartendienst"
+
+msgid "Data Service"
+msgstr "Kartendienst"
+
+msgid "Map Layer"
+msgstr "Kartenebene"
+
+msgid "Featuretype"
+msgstr "Objektart"
+
+msgid "Type of geometry"
+msgstr "Geometrietyp"
+
+msgid "Resourceidentifier"
+msgstr "Ressourcenidentifikator"
+
+msgid "Name of the resource"
+msgstr "Name der Ressource"
+
+msgid "Information about the service"
+msgstr "Informationen zum Dienst"
+
+msgid "Extent"
+msgstr "Ausdehnung"
+
+msgid "Responsible party for content"
+msgstr "Inhaltlich verantwortliche Stelle"
+
+msgid "Responsible party for service"
+msgstr "Technisch verantwortliche Stelle"
+
+msgid "Contact person"
+msgstr "Ansprechpartner"
+
+msgid "Logo"
+msgstr "Logo"
+
+msgid "Availability"
+msgstr "Verfügbarkeit"
+
+msgid "Problem with last monitoring!"
+msgstr "Probleme beim letzten Monitoring!"
+
+msgid "Last Monitoring: OK"
+msgstr "Letztes Monitoring OK"
+
+msgid "Servicedescription changed!"
+msgstr "Dienstebeschreibung hat sich geändert!"
+
+msgid "Layer not queryable"
+msgstr "Ebene nicht abfragbar"
+
+msgid "Layer queryable"
+msgstr "Ebene abfragbar"
+
+msgid "Query"
+msgstr "Abfragbarkeit"
+
+msgid "Visibility"
+msgstr "Sichtbarkeit"
+
+msgid "Minimum scale"
+msgstr "Minimaler Maßstab"
+
+msgid "Maximum scale"
+msgstr "Maximaler Maßstab"
+
+msgid "Used Coordinate Reference System"
+msgstr "Eingestelltes Koordinatenreferenzsystem"
+
+msgid "Spatial Extent"
+msgstr "Räumliche Ausdehnung"
+
+msgid "Corner in geographic Coordinates"
+msgstr "Eckpunkte in geogr. Koordinaten"
+
+msgid "Geoportal Capabilities"
+msgstr "Geoportal Capabilities"
+
+msgid "Original Capabilities"
+msgstr "Original Capabilities"
+
+msgid "Dataschema"
+msgstr "Link zum Datenschema"
+
+msgid "KML"
+msgstr "KML"
+
+msgid "INSPIRE Service Metadata"
+msgstr "INSPIRE Service Metadaten"
+
+msgid "Metadatarecord"
+msgstr "Metadatendatei"
+
+
+msgid "Secured Capabilities URL"
+msgstr "Abgesicherte Capabilities URL"
+
+msgid "INSPIRE Capabilities URL"
+msgstr "INSPIRE Capabilities URL"
+
+msgid "Link to Capabilities document"
+msgstr "Link zum Capabilities Dokument"
+
+msgid "Validation against INSPIRE Geoportal"
+msgstr "Validierung gegen INSPIRE Geoportal"
+
+msgid "Start validation"
+msgstr "Validierung starten"
+
+msgid "stable"
+msgstr "Stabil"
+
+msgid "Description changed - update necessary"
+msgstr "Beschreibung hat sich geändert - Aktualisierung nötig"
+
+msgid "Problem at last control"
+msgstr "Problem bei letzter Kontrolle"
+
+msgid "Web Map Context document"
+msgstr "Web Map Context Dokument"
+
+msgid "Graphical Overview not active"
+msgstr "Graphische Übersicht nicht aktiviert"
+
+msgid "Information about Quality is only available if the service monitoring is activated!"
+msgstr "Informationen über die Qualität sind nur verfügbar, wenn das Service Monitoring aktiv ist!"
+
+msgid "In case of Web Map Context Documents the Quality part is not applicable!"
+msgstr "Für Web Map Context Dokumente entfällt die Angabe zur Qualität!"
+
+msgid "No informations about terms of use are available!"
+msgstr "Es sind keine Informationen über Nutzungsbedingungen verfügbar!"
+
+msgid "Link to start application with WMC"
+msgstr "Link um Anwendung mit WMC zu starten"
+
+msgid "validate"
+msgstr "Validierung"
+
+msgid "uploaded metadata"
+msgstr "Hochgeladene Metadaten"
+
+msgid "linked metadata"
+msgstr "Verlinkte Metadaten"
+
+msgid "metadata from capabilities"
+msgstr "Metadaten von Service Capabilities"
+
+msgid "added from registry"
+msgstr "Metadaten über Registry angereichert"
+
+msgid "Coupled Metadata"
+msgstr "Verknüpfte Metadaten"
+
+msgid "Show map in own viewer"
+msgstr "Karte im eigenen Viewer anzeigen"
+
+msgid "Show map"
+msgstr "Karte anzeigen"
+



More information about the Mapbender_commits mailing list