|
|
@@ -28,8 +28,10 @@ $(document).ready(function() {
|
|
|
cached[date] = true;
|
|
|
var link = BASE_URL + 'wfs-data.php/default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:GRAFIK_PRACY&SRSNAME=EPSG:3003&Filter=<ogc:Filter><ogc:And><ogc:PropertyIsLike wildCard="*" singleChar="^" escapeChar="!"><ogc:PropertyName>DATE</ogc:PropertyName><ogc:Literal>'+date+'-*</ogc:Literal></ogc:PropertyIsLike><ogc:PropertyIsEqualTo><ogc:PropertyName>L_APPOITMENT_USER</ogc:PropertyName><ogc:Literal>' + USER + '</ogc:Literal></ogc:PropertyIsEqualTo></ogc:And></ogc:Filter>';
|
|
|
//console.log(link);
|
|
|
+ if (DBG) console.log('DBG API fetch', link);
|
|
|
|
|
|
$.get(link, function(data){
|
|
|
+ if (DBG) console.log('DBG fetched data', data);
|
|
|
$.each($(data).find("featureMember"), function() {
|
|
|
var item = {
|
|
|
id: $(this).find("ID").text(),
|