# HG changeset patch # User Sebastian Kruse # Date 1357129148 -3600 # Node ID c7df41c5de53d1157c42a61fc32d433c21fb3a21 # Parent 2446477fdeaa899800818203376f6102489c802d Alerts on missing time/spatial information diff -r 2446477fdeaa -r c7df41c5de53 war/scripts/sti/STICore.js --- a/war/scripts/sti/STICore.js Tue Dec 18 12:30:32 2012 +0100 +++ b/war/scripts/sti/STICore.js Wed Jan 02 13:19:08 2013 +0100 @@ -406,7 +406,6 @@ return date; } catch (e) { alert("\""+timeData+"\" is no valid time/date"); - return null; } } @@ -417,6 +416,7 @@ timeStamp = getDate(timeData); } if( timeStamp == undefined ){ + alert("No valid timestamp or timespan information for element " + i + "."); continue; } } @@ -432,7 +432,6 @@ } catch(e){ alert("No valid timestamp or timespan information for element " + i + "."); - continue; } } @@ -441,13 +440,13 @@ coordinates = placemark.getElementsByTagName("Point")[0].getElementsByTagName("coordinates")[0].childNodes[0].nodeValue; var lonlat = coordinates.split(","); if( lonlat[0] == "" || lonlat[1] == "" || isNaN(lonlat[0]) || isNaN(lonlat[1]) ){ + alert("No valid coordinate information for element " + i + "."); continue; } newObjects.push(new DataObject(name, description, place, timeStamp, timeSpan, g, lonlat[0], lonlat[1])); } catch(e){ alert("No valid coordinate information for element " + i + "."); - continue; } }