diff --git a/VIPSWeb/static/js/frontpage.js b/VIPSWeb/static/js/frontpage.js index 80e4692c1e98669e2acc3a6ab5a9946d70de7ca3..9d8eeef52c1d68e8a3512662b18ddbd9242d06b6 100755 --- a/VIPSWeb/static/js/frontpage.js +++ b/VIPSWeb/static/js/frontpage.js @@ -65,7 +65,8 @@ var allObservations; var filteredObservations; /** - * Downloads all the observations that the user has authorization to view + * Downloads all the observations that the user has authorization to view, + * except the ones where isPositive=false * @returns */ function cacheObservations(callback) @@ -75,11 +76,8 @@ function cacheObservations(callback) systemTime.add(1,'days'); var to = systemTime.format("YYYY-MM-DD"); var uuidParam = settings.userUuid != null ? "&userUUID=" + settings.userUuid : ""; - //$.getJSON(settings.vipslogicProtocol + "://" + settings.vipslogicServerName + "/rest/observation/broadcast/list/" + settings.vipsOrganizationId, function( json ) { - $.getJSON( "/vipslogicproxy/rest/observation/list/filter/" + settings.vipsOrganizationId + "?from=" + from + "&to=" + to + uuidParam , function( json ) { - //$.getJSON("/vipslogicproxy/rest/observation/broadcast/list/" + settings.vipsOrganizationId + "?season=" + getCurrentYear(), function( json ) { + $.getJSON( "/vipslogicproxy/rest/observation/list/filter/" + settings.vipsOrganizationId + "?isPositive=true&from=" + from + "&to=" + to + uuidParam , function( json ) { allObservations = json; - //console.log(allObservations); filterObservations(); renderObservationFeatures(); });