[Mapbender-commits] r2422 - branches/2.5/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 1 05:22:18 EDT 2008
Author: astrid_emde
Date: 2008-05-01 05:22:18 -0400 (Thu, 01 May 2008)
New Revision: 2422
Modified:
branches/2.5/http/php/mod_layerMetadata.php
Log:
- litte bug in metadatastr ", " added
- Metadaten link added to metadataurl, link opens in new window
Modified: branches/2.5/http/php/mod_layerMetadata.php
===================================================================
--- branches/2.5/http/php/mod_layerMetadata.php 2008-04-30 14:52:20 UTC (rev 2421)
+++ branches/2.5/http/php/mod_layerMetadata.php 2008-05-01 09:22:18 UTC (rev 2422)
@@ -137,10 +137,11 @@
$layer['Fax'] = $row['contactfacsimiletelephone'];
$layer['E-Mail'] = $row['contactelectronicmailaddress'];
$layer['Land'] = $row['country'];
+ $layer['Metadaten'] = $row['layer_metadataurl'];
$metadataUrl = $row['layer_metadataurl'];
- if ($metadataUrl && $redirectToMetadataUrl) {
- header("Location: " . $metadataUrl);
+ if ($layer['Metadaten'] && $redirectToMetadataUrl) {
+ header("Location: " . $layer['Metadaten']);
}
else {
$metadataStr .= "<table >\n";
@@ -169,7 +170,7 @@
}
$metadataStr .= "<tr><th>Ebenen</th><td>";
for ($i=0; $i<count($layer); $i++) {
- if ($i >0) echo ", ";
+ if ($i >0) $metadataStr .= ", ";
$metadataStr .= "<a href='mod_layerMetadata.php?id=".$layer[$i]['id']."'>" . $layer[$i]['Titel'] . "</a>";
}
}
More information about the Mapbender_commits
mailing list