[Mapbender-commits] r9059 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 4 03:36:15 PDT 2014


Author: armin11
Date: 2014-09-04 03:36:15 -0700 (Thu, 04 Sep 2014)
New Revision: 9059

Modified:
   trunk/mapbender/http/javascripts/mb_downloadFeedClient.php
Log:
INSPIRE ATOM Feed Client - show link list when no bboxes are given.

Modified: trunk/mapbender/http/javascripts/mb_downloadFeedClient.php
===================================================================
--- trunk/mapbender/http/javascripts/mb_downloadFeedClient.php	2014-09-04 09:15:52 UTC (rev 9058)
+++ trunk/mapbender/http/javascripts/mb_downloadFeedClient.php	2014-09-04 10:36:15 UTC (rev 9059)
@@ -137,6 +137,9 @@
 	$("#representation_info").css("display","none");
 	//change size of outer fieldset
 	$("#client").css("height","450px");
+	$("#download_link_list").remove();
+	$("#download_link").remove();
+		
 }
 
 function showDatasetList(featureCollection,id) {
@@ -243,8 +246,17 @@
 		} else {
 			alert("No links to datasets or parts of them found in feed!");
 		}
+		$("#download_link_list").remove();
+		downloadLinkList = $(document.createElement('ul')).appendTo('#section_list');
+		downloadLinkList.attr({'id':'download_link_list'});
                 for (var i = 0; i < numberOfLinks; i++) {
 			if (featureCollection.features[k].properties.link[i]['@attributes'].bbox == '' || featureCollection.features[k].properties.link[i]['@attributes'].bbox === undefined) {
+				//show simple link foreach part
+				//$("#download_link").remove();
+				//show Downloadlink
+				downloadLink = "<li><a value='download_link_"+i+"' href='"+featureCollection.features[k].properties.link[i]['@attributes'].href+"' title='"+featureCollection.features[k].properties.link[i]['@attributes'].title+"'>"+featureCollection.features[k].properties.link[i]['@attributes'].title+"</li>";
+				//append link
+				$('#download_link_list').append(downloadLink);
 				//selectFOptions = selectFOptions+"<option value='"+i+"' url='"+featureCollection.features[k].properties.link[i]['@attributes'].href+"' title='"+featureCollection.features[k].properties.link[i]['@attributes'].title+"'  onclick='window.open(\""+featureCollection.features[k].properties.link[i]['@attributes'].href+"\");'>"+featureCollection.features[k].properties.link[i]['@attributes'].title+"</option>";
 			} else {
                 		ext = featureCollection.features[k].properties.link[i]['@attributes'].bbox;



More information about the Mapbender_commits mailing list