[Mapbender-commits] r9162 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Mar 2 05:27:54 PST 2015
Author: armin11
Date: 2015-03-02 05:27:54 -0800 (Mon, 02 Mar 2015)
New Revision: 9162
Modified:
trunk/mapbender/http/php/mod_layerISOMetadata.php
Log:
Bugfix for absolute url
Modified: trunk/mapbender/http/php/mod_layerISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_layerISOMetadata.php 2015-03-02 13:09:04 UTC (rev 9161)
+++ trunk/mapbender/http/php/mod_layerISOMetadata.php 2015-03-02 13:27:54 UTC (rev 9162)
@@ -460,7 +460,12 @@
$MD_BrowseGraphic=$iso19139->createElement("gmd:MD_BrowseGraphic");
$fileName=$iso19139->createElement("gmd:fileName");
$fileName_cs=$iso19139->createElement("gco:CharacterString");
- $previewFilenameText = $iso19139->createTextNode("http://www.geoportal.rlp.de/mapbender/geoportal/preview/".$mapbenderMetadata['layer_id']."_layer_map_preview.jpg"); //TODO use constant for absolute path
+ if (defined("MAPBENDER_PATH") && MAPBENDER_PATH != '') {
+ $mapbenderUrl = MAPBENDER_PATH;
+ } else {
+ $mapbenderUrl = "http://www.geoportal.rlp.de/mapbender";
+ }
+ $previewFilenameText = $iso19139->createTextNode($mapbenderUrl."/geoportal/preview/".$mapbenderMetadata['layer_id']."_layer_map_preview.jpg"); //TODO use constant for absolute path
$fileName_cs->appendChild($previewFilenameText);
$fileName->appendChild($fileName_cs);
More information about the Mapbender_commits
mailing list