=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/resources/org/hisp/dhis/mapping/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-mapping/src/main/resources/org/hisp/dhis/mapping/i18n_module.properties 2010-08-30 13:58:52 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/resources/org/hisp/dhis/mapping/i18n_module.properties 2010-09-02 12:46:20 +0000 @@ -196,4 +196,8 @@ aggregating_map_values = Aggregating map values.. loading_geojson = Loading geojson.. date_type = Date type -saved_as_date_type = saved as date type. \ No newline at end of file +saved_as_date_type = saved as date type. +start_date = Start date +end_date = End date +fixed_periods = Fixed periods +start_end_dates = Start-end dates \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml 2010-08-31 10:40:24 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/resources/struts.xml 2010-09-02 12:28:43 +0000 @@ -370,6 +370,7 @@ /dhis-web-mapping/pointShapefile.vm /dhis-web-mapping/polygonShapefile.vm /dhis-web-mapping/polygonShapefile.vm + /dhis-web-mapping/polygonShapefile.vm ' + vn + ' ' + i18n_was_registered); + Ext.message.msg(true, 'The view ' + vn + ' ' + i18n_was_registered + '.'); Ext.getCmp('view_cb').getStore().load(); Ext.getCmp('mapview_cb').getStore().load(); Ext.getCmp('viewname_tf').reset(); @@ -932,7 +932,7 @@ params: { id: ls }, success: function(r) { - Ext.message.msg(true, i18n_legend_set+'' + lsrw + ' ' + i18n_was_updated); + Ext.message.msg(true, i18n_legend_set+' ' + lsrw + ' ' + i18n_was_updated); Ext.getCmp('automaticmaplegendset_cb').getStore().load(); }, failure: function() { @@ -2887,7 +2887,7 @@ minListWidth: combo_width_fieldset, store: new Ext.data.SimpleStore({ fields: ['value', 'text'], - data: [[map_date_type_fixed, 'Fixed periods'], [map_date_type_start_end, 'Start-end date']] + data: [[map_date_type_fixed, i18n_fixed_periods], [map_date_type_start_end, i18n_start_end_dates]] }), listeners: { 'select': { @@ -4153,8 +4153,32 @@ var east_panel = Ext.getCmp('east'); var x = east_panel.x - 210; var y = east_panel.y + 41; - - if (ACTIVEPANEL == organisationUnitAssignment) { + + if (ACTIVEPANEL == thematicMap && MAPSOURCE == map_source_type_database) { + Ext.getCmp('map_tf').setValue(feature.data.name); + + for (var i = 0; i < feature.layer.features.length; i++) { + if (feature.data.name == feature.layer.features[i].attributes.name) { + Ext.getCmp('map_tf').value = feature.layer.features[i].attributes.id; + break; + } + } + + choropleth.loadFromDatabase(Ext.getCmp('map_tf').value); + } + else if (ACTIVEPANEL == thematicMap2 && MAPSOURCE == map_source_type_database) { + Ext.getCmp('map_tf2').setValue(feature.data.name); + + for (var i = 0; i < feature.layer.features.length; i++) { + if (feature.data.name == feature.layer.features[i].attributes.name) { + Ext.getCmp('map_tf2').value = feature.layer.features[i].attributes.id; + break; + } + } + + proportionalSymbol.loadFromDatabase(Ext.getCmp('map_tf2').value); + } + else if (ACTIVEPANEL == organisationUnitAssignment) { if (popup) { popup.destroy(); } === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/pointShapefile.vm' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/pointShapefile.vm 2010-08-27 17:51:04 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/pointShapefile.vm 2010-09-02 11:58:04 +0000 @@ -14,6 +14,7 @@ }, "properties": { + "id":"$!{unit.id}", "name":"$!encoder.jsEncode( ${unit.name} )", "type":"Facility" } === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/polygonShapefile.vm' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/polygonShapefile.vm 2010-08-27 17:51:04 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/polygonShapefile.vm 2010-09-02 11:58:04 +0000 @@ -14,6 +14,7 @@ }, "properties": { + "id":"$!{unit.id}", "name":"$!encoder.jsEncode( ${unit.name} )" } }#if( $velocityCount < $size ),#end === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.js 2010-09-01 12:26:15 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Choropleth.js 2010-09-02 12:46:20 +0000 @@ -919,7 +919,7 @@ { xtype: 'datefield', id: 'startdate_df', - fieldLabel: 'Start date', + fieldLabel: i18n_start_date, format: 'Y-m-d', hidden: true, emptyText: emptytext, @@ -938,7 +938,7 @@ { xtype: 'datefield', id: 'enddate_df', - fieldLabel: 'End date', + fieldLabel: i18n_end_date, format: 'Y-m-d', hidden: true, emptyText: emptytext, === modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Symbol.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Symbol.js 2010-09-01 12:26:15 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Symbol.js 2010-09-02 12:48:17 +0000 @@ -919,7 +919,7 @@ { xtype: 'datefield', id: 'startdate_df2', - fieldLabel: 'Start date', + fieldLabel: i18n_start_date, format: 'Y-m-d', hidden: true, emptyText: emptytext, @@ -938,7 +938,7 @@ { xtype: 'datefield', id: 'enddate_df2', - fieldLabel: 'End date', + fieldLabel: i18n_end_date, format: 'Y-m-d', hidden: true, emptyText: emptytext,