[Mapbender-commits] r9099 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Oct 16 03:58:09 PDT 2014


Author: armin11
Date: 2014-10-16 03:58:09 -0700 (Thu, 16 Oct 2014)
New Revision: 9099

Modified:
   trunk/mapbender/http/php/mod_inspireDownloadFeed.php
Log:
Bugfix for selfreference of inspire atom feed

Modified: trunk/mapbender/http/php/mod_inspireDownloadFeed.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireDownloadFeed.php	2014-10-16 08:27:26 UTC (rev 9098)
+++ trunk/mapbender/http/php/mod_inspireDownloadFeed.php	2014-10-16 10:58:09 UTC (rev 9099)
@@ -923,6 +923,14 @@
 	//self reference - 5.1.4 / 5.2
 	if ($type == 'SERVICE') {
 		$selfReference = $mapbenderPath."..".$_SERVER['SCRIPT_NAME']."?ID=".$recordId."&type=SERVICE&generatefrom=".$generateFrom;
+		switch($generateFrom) {
+			case "wmslayer":
+				$selfReference .= "&layerid=".$mapbenderMetadata[$m]->layer_id;
+			break;
+			case "wfs":
+				$selfReference .= "&wfsid=".$mapbenderMetadata[$m]->wfs_id;
+			break;
+		}
 	} else { //DATASET
 		$selfReference = $mapbenderPath."..".$_SERVER['SCRIPT_NAME']."?ID=".$recordId."&type=DATASET&generatefrom=".$generateFrom;
 		switch($generateFrom) {



More information about the Mapbender_commits mailing list