[Mapbender-commits] r8574 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Feb 26 05:44:00 PST 2013
Author: armin11
Date: 2013-02-26 05:44:00 -0800 (Tue, 26 Feb 2013)
New Revision: 8574
Modified:
trunk/mapbender/http/php/mod_showMetadata.php
Log:
Bugfix use absolute url as constant.
Modified: trunk/mapbender/http/php/mod_showMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_showMetadata.php 2013-02-25 14:48:02 UTC (rev 8573)
+++ trunk/mapbender/http/php/mod_showMetadata.php 2013-02-26 13:44:00 UTC (rev 8574)
@@ -1102,18 +1102,22 @@
//var_dump($downloadOptions);
$metadataList .= "<a href='../php/mod_dataISOMetadata.php?outputFormat=iso19139&id=".$row["uuid"]."'>".$row["uuid"]."</a> <a href='../php/mod_dataISOMetadata.php?outputFormat=iso19139&id=".$row["uuid"]."&validate=true'>".$translation['validate']."</a>";
-
+ if (defined("MAPBENDER_PATH") && MAPBENDER_PATH != '') {
+ $mapbenderUrl = MAPBENDER_PATH;
+ } else {
+ $mapbenderUrl = "http://www.geoportal.rlp.de/mapbender";
+ }
if ($downloadOptions != null) {
foreach ($downloadOptions->{$row["uuid"]}->option as $option) {
switch ($option->type) {
case "wmslayergetmap":
- $metadataList .= " <a href='../plugins/mb_downloadFeedClient.php?url=".urlencode("http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=".$row["uuid"]."&type=SERVICE&generateFrom=wmslayer&layerid=".$option->resourceId)."'><img src='../img/osgeo_graphics/geosilk/raster_download.png' title='".$translation['Download raster data from INSPIRE Download Service']."'/></a>";
+ $metadataList .= " <a href='../plugins/mb_downloadFeedClient.php?url=".urlencode($mapbenderUrl."/php/mod_inspireDownloadFeed.php?id=".$row["uuid"]."&type=SERVICE&generateFrom=wmslayer&layerid=".$option->resourceId)."'><img src='../img/osgeo_graphics/geosilk/raster_download.png' title='".$translation['Download raster data from INSPIRE Download Service']."'/></a>";
break;
case "wmslayerdataurl":
- $metadataList .= " <a href='../plugins/mb_downloadFeedClient.php?url=".urlencode("http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=".$row["uuid"]."&type=SERVICE&generateFrom=dataurl&layerid=".$option->resourceId)."'><img src='../img/osgeo_graphics/geosilk/link_download.png' title='".$translation['Download linked data from INSPIRE Download Service']."'/></a>";
+ $metadataList .= " <a href='../plugins/mb_downloadFeedClient.php?url=".urlencode($mapbenderUrl."/php/mod_inspireDownloadFeed.php?id=".$row["uuid"]."&type=SERVICE&generateFrom=dataurl&layerid=".$option->resourceId)."'><img src='../img/osgeo_graphics/geosilk/link_download.png' title='".$translation['Download linked data from INSPIRE Download Service']."'/></a>";
break;
case "wfsrequest":
- $metadataList .= " <a href='../plugins/mb_downloadFeedClient.php?url=".urlencode("http://www.geoportal.rlp.de/mapbender/php/mod_inspireDownloadFeed.php?id=".$row["uuid"]."&type=SERVICE&generateFrom=wfs&wfsid=".$option->serviceId)."'><img src='../img/osgeo_graphics/geosilk/vector_download.png' title='".$translation['Download GML data from INSPIRE Download Service']."'/></a>";
+ $metadataList .= " <a href='../plugins/mb_downloadFeedClient.php?url=".urlencode($mapbenderUrl."/php/mod_inspireDownloadFeed.php?id=".$row["uuid"]."&type=SERVICE&generateFrom=wfs&wfsid=".$option->serviceId)."'><img src='../img/osgeo_graphics/geosilk/vector_download.png' title='".$translation['Download GML data from INSPIRE Download Service']."'/></a>";
break;
}
}
More information about the Mapbender_commits
mailing list