[Mapbender-commits] r7044 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Oct 15 08:56:28 EDT 2010
Author: armin11
Date: 2010-10-15 05:56:28 -0700 (Fri, 15 Oct 2010)
New Revision: 7044
Modified:
trunk/mapbender/http/php/mod_showMetadata.php
Log:
Show wmc preview - if exists - in wmc metadata
Modified: trunk/mapbender/http/php/mod_showMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_showMetadata.php 2010-10-15 12:33:40 UTC (rev 7043)
+++ trunk/mapbender/http/php/mod_showMetadata.php 2010-10-15 12:56:28 UTC (rev 7044)
@@ -412,10 +412,11 @@
$resP = db_prep_query($sqlP, $vP, $tP);
$rowP = db_fetch_array($resP);
if ($rowP['layer_map_preview_filename'] != "") {
- $resourceMetadata['preview'] = "<img src = '".PREVIEW_DIR."/".$rowP['layer_map_preview_filename']."'>";
+ //$resourceMetadata['preview'] = "<img src = '".PREVIEW_DIR."/".$rowP['layer_map_preview_filename']."'>";
+ $resourceMetadata['preview'] = "<img src = 'http://".$_SERVER['HTTP_HOST']."/mapbender/geoportal/mod_showPreview.php?resource=layer&id=".$layerId."'>";
}
if ($rowP['layer_legend_preview_filename'] != "") {
- $resourceMetadata['legend'] .= "<img src = '".PREVIEW_DIR."/".$rowP['layer_legend_preview_filename']."'>";
+ $resourceMetadata['legend'] .= "<img src = 'http://".$_SERVER['HTTP_HOST']."/mapbender/geoportal/mod_showPreview.php?resource=layerlegend&id=".$layerId."'>";
}
/* if ($rowP['layer_extent_preview_filename'] != "") {
$resourceMetadata['extent'] .= "<img src = '../x_geoportal/layer_preview/".$rowP['layer_extent_preview_filename']."'>";
@@ -423,7 +424,7 @@
}
if ($resource == 'wmc') {
- $resourceMetadata['preview'] = "<img src = '".PREVIEW_DIR."/".$rowP['wmc_preview_filename']."'>";
+ $resourceMetadata['preview'] = "<img src = 'http://".$_SERVER['HTTP_HOST']."/mapbender/geoportal/mod_showPreview.php?resource=wmc&id=".$resourceMetadata['contentid']."'>";
}
//db select for service quality
if ($resource == 'wms' or $resource == 'layer') {
More information about the Mapbender_commits
mailing list