[Mapbender-commits] r8998 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jul 11 02:39:34 PDT 2014
Author: armin11
Date: 2014-07-11 02:39:34 -0700 (Fri, 11 Jul 2014)
New Revision: 8998
Modified:
trunk/mapbender/http/plugins/mb_downloadFeedServer.php
Log:
Bugfix for atom feeds, that are generated from simple links (rel="section")
Modified: trunk/mapbender/http/plugins/mb_downloadFeedServer.php
===================================================================
--- trunk/mapbender/http/plugins/mb_downloadFeedServer.php 2014-07-10 13:35:31 UTC (rev 8997)
+++ trunk/mapbender/http/plugins/mb_downloadFeedServer.php 2014-07-11 09:39:34 UTC (rev 8998)
@@ -270,8 +270,7 @@
$feature = new Feature;
$uuid = new Uuid;
$feature->fid = $uuid;
-
- $links = $xpath->query('/defaultns:feed/defaultns:entry['.(string)($i + 1).']/defaultns:link[contains(@rel,\'alternate\')]');
+ $links = $xpath->query('/defaultns:feed/defaultns:entry['.(string)($i + 1).']/defaultns:link[contains(@rel,\'alternate\') or contains(@rel,\'section\')]');
$linksArray = DOMNodeListObjectValuesToArray($links);
//example
/* <link rel="alternate" href="http://map1.naturschutz.rlp.de/service_lanis/mod_wfs/wfs_getmap.php?mapfile=naturschutzgebiet&SERVICE=WFS&REQUEST=GetFeature&VERSION=1.1.0&typeName=naturschutzgebiet&maxFeatures=520&srsName=EPSG:25832" type="application/gml+xml" hreflang="de" title="Naturschutzgebiete im CRS EPSG:25832 - - Teil 1 von 1" bbox="48.9451980590054 6.1773996352971 50.9453010559041 8.48990058899502"/> */
More information about the Mapbender_commits
mailing list