[Mapbender-commits] r9087 - trunk/mapbender/http/geoportal
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Oct 6 03:42:26 PDT 2014
Author: armin11
Date: 2014-10-06 03:42:26 -0700 (Mon, 06 Oct 2014)
New Revision: 9087
Modified:
trunk/mapbender/http/geoportal/mod_showInspireMonitoring.php
Log:
Bugfix - show right URLs for ATOM Feed ;-)
Modified: trunk/mapbender/http/geoportal/mod_showInspireMonitoring.php
===================================================================
--- trunk/mapbender/http/geoportal/mod_showInspireMonitoring.php 2014-10-01 10:13:58 UTC (rev 9086)
+++ trunk/mapbender/http/geoportal/mod_showInspireMonitoring.php 2014-10-06 10:42:26 UTC (rev 9087)
@@ -3,6 +3,11 @@
$registratingDepartments = null;
$sessionLang = Mapbender::session()->get("mb_lang");
$withCounts = true;
+if (defined("MAPBENDER_PATH") && MAPBENDER_PATH != '') {
+ $mapbenderUrl = MAPBENDER_PATH;
+} else {
+ $mapbenderUrl = "http://www.geoportal.rlp.de/mapbender";
+}
if (isset($sessionLang) && ($sessionLang!='')) {
$e = new mb_notice("mod_showMetadata.php: language found in session: ".$sessionLang);
$language = $sessionLang;
@@ -140,19 +145,19 @@
$html .= "{";
$html .= "case 'wmslayergetmap':";
$html .= "$('#dls').append('<li>".$translation['wmslayergetmap']."</li>');";
-$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=wmslayer&layerid='+value.resourceId)+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/raster_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
+$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('".$mapbenderUrl."/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=wmslayer&layerid='+value.resourceId)+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/raster_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
$html .= "break;";
$html .= "case 'wmslayerdataurl':";
$html .= "$('#dls').append('<li>".$translation['wmslayerdataurl']."</li>');";
-$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=dataurl&layerid='+value.resourceId)+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/link_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
+$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('".$mapbenderUrl."/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=dataurl&layerid='+value.resourceId)+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/link_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
$html .= "break;";
$html .= "case 'wfsrequest':";
$html .= "$('#dls').append('<li>".$translation['wfsrequest']."</li>');";
-$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=wfs&wfsid='+value.serviceId)+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/vector_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
+$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('".$mapbenderUrl."/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=wfs&wfsid='+value.serviceId)+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/vector_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
$html .= "break;";
$html .= "case 'downloadlink':";
$html .= "$('#dls').append('<li>".$translation['downloadlink']."</li>');";
-$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=metadata')+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/link_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
+$html .= "$('#dls').append('<a href=\"../plugins/mb_downloadFeedClient.php?url='+urlencode('".$mapbenderUrl."/php/mod_inspireDownloadFeed.php?id='+uuid+'&type=SERVICE&generateFrom=metadata')+'\" target=\"_blank\"><img src=\"../img/osgeo_graphics/geosilk/link_download.png\" title=\"".$translation['Title']."\"/></a><br>');";
$html .= "break;";
$html .= "default:";
$html .= "}";//end switch
More information about the Mapbender_commits
mailing list