=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2013-05-17 08:24:11 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2013-05-17 08:47:52 +0000 @@ -400,4 +400,5 @@ minus_with_enrollmentDate = MINUS TO ENROLLMENT DATE and_operator = AND or_operator = OR -combine_operator = COMBINE \ No newline at end of file +combine_operator = COMBINE +filter_by_type = Filter by type \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/caseAggregationForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/caseAggregationForm.vm 2013-05-17 08:24:11 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/caseAggregationForm.vm 2013-05-17 08:47:52 +0000 @@ -9,7 +9,8 @@ + + + - === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js 2013-05-15 04:01:06 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/caseaggregation.js 2013-05-17 08:47:52 +0000 @@ -236,11 +236,11 @@ deSumId.append( "" ); for ( i in json.dataElements ) { - dataElements.append( "" ); - dataElementBackups.append( "" ); + dataElements.append( "" ); + dataElementBackups.append( "" ); if( json.dataElements[i].type=='int') { - deSumId.append( "" ); + deSumId.append( "" ); } } @@ -447,16 +447,20 @@ { // Remove all options in data element fields var field = jQuery('#' + fieldName + " option " ).remove(); - + var valueType = getFieldValue('deValueType'); + jQuery('#' + backupFieldsName + " option ").each( function(){ var option = jQuery(this); - if(value.length == 0 ) - { - jQuery('#' + fieldName ).append( "" ); - } - else if (option.text().toLowerCase().indexOf( value.toLowerCase() ) != -1 ) - { - jQuery('#' + fieldName ).append( "" ); + if (valueType=='' || valueType.indexOf( option.attr('valueType').toLowerCase() ) != -1 ) + { + if(value.length == 0 ) + { + jQuery('#' + fieldName ).append( "" ); + } + else if (option.text().toLowerCase().indexOf( value.toLowerCase() ) != -1 ) + { + jQuery('#' + fieldName ).append( "" ); + } } });
- + $i18n.getString("filter_by_name"): + @@ -17,12 +18,25 @@
+ $i18n.getString("filter_by_type"): +
+