[Mapbender-commits] r7501 - in branches/2.7/http: classes php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 31 02:09:06 EST 2011


Author: armin11
Date: 2011-01-30 23:09:06 -0800 (Sun, 30 Jan 2011)
New Revision: 7501

Modified:
   branches/2.7/http/classes/class_wms.php
   branches/2.7/http/php/mod_deleteWMS.php
Log:
Some bugfixes for the database georss generator.

Modified: branches/2.7/http/classes/class_wms.php
===================================================================
--- branches/2.7/http/classes/class_wms.php	2011-01-31 07:03:29 UTC (rev 7500)
+++ branches/2.7/http/classes/class_wms.php	2011-01-31 07:09:06 UTC (rev 7501)
@@ -2311,6 +2311,7 @@
 			foreach ($oldLayerNameArray as $oldLayer) {
 				$geoRssItemOldLayer = new GeoRssItem();
 				$geoRssItemOldLayer->setTitle("DELETED LAYER: " . $oldLayer["title"]." (".$oldLayer["id"].")");
+				$geoRssItemNewLayer->setUrl(layer::getLayerMetadataUrl($oldLayer["id"]));
 				$geoRssItemOldLayer->setDescription($oldLayer["abstract"]);
 				$geoRssItemOldLayer->setPubDate(self::rssDate());
 //				$geoRssItem->setUrl();

Modified: branches/2.7/http/php/mod_deleteWMS.php
===================================================================
--- branches/2.7/http/php/mod_deleteWMS.php	2011-01-31 07:03:29 UTC (rev 7500)
+++ branches/2.7/http/php/mod_deleteWMS.php	2011-01-31 07:09:06 UTC (rev 7501)
@@ -32,6 +32,13 @@
 
 require_once(dirname(__FILE__)."/../classes/class_administration.php");
 require_once(dirname(__FILE__)."/../classes/class_georss_factory.php");
+
+
+function getWmsMetadataUrl ($wmsId) {
+	return LOGIN."/../../mapbender/php/mod_showMetadata.php?resource=wms&id=".$wmsId;
+}
+
+
 ?>
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -62,6 +69,10 @@
    }
 }
 
+
+
+
+
 function suggest_deletion(email_str) 
 {
    var ind = document.form1.wmsList.selectedIndex;
@@ -205,7 +216,7 @@
 			$geoRssItem = new GeoRssItem();
 			$geoRssItem->setTitle("DELETED WMS: ".$wms_title." (".$wmsList.")");
 			$geoRssItem->setDescription($wms_abstract);
-			//$geoRssItem->setUrl("");
+			$geoRssItem->setUrl(getWMSMetadataUrl($wmsList));
 			//$timestamp = ($timestamp==null) ? time() : $timestamp;
 			$timestamp = date(DATE_RSS,time());
 			$geoRssItem->setPubDate($timestamp);



More information about the Mapbender_commits mailing list