$i18n.getString( "filter_by_name" ): |
@@ -29,7 +29,7 @@
|
-
+ |
#if ( $dataDictionaryMode == "extended" )
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/denum.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/denum.js 2010-06-14 12:47:51 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/javascript/denum.js 2010-07-04 23:55:46 +0000
@@ -171,7 +171,8 @@
var url = "editDenum.action?type=" + type + "&formula=" + formula +
"&description=" + description + "&aggregationOperator=" + aggregationOperator;
- var dialog = window.open( url, "_blank", "directories=no, height=560, width=790, location=no, menubar=no, status=no, toolbar=no, resizable=yes, scrollbars=yes" );
+ var dialog = window.open( url, "_blank",
+ "directories=no, height=600, width=790, location=no, menubar=no, status=no, toolbar=no, resizable=yes, scrollbars=yes" );
}
function insertText( inputAreaName, inputText, radioGroupName )
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/resources/struts.xml 2010-07-02 10:12:52 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/resources/struts.xml 2010-07-04 23:55:46 +0000
@@ -22,7 +22,7 @@
/main.vm
/dhis-web-maintenance-organisationunit/organisationUnit.vm
/dhis-web-maintenance-organisationunit/menuWithTree.vm
- 321
+ 384
../dhis-web-commons/ouwt/ouwt.js,
javascript/organisationUnit.js
@@ -126,7 +126,7 @@
/main.vm
/dhis-web-maintenance-organisationunit/organisationUnitGroup.vm
/dhis-web-maintenance-organisationunit/menu.vm
- 321
+ 384
../dhis-web-commons/ouwt/ouwt.js,javascript/organisationUnitGroup.js
@@ -239,7 +239,7 @@
/main.vm
/dhis-web-maintenance-organisationunit/organisationUnitGroupSet.vm
/dhis-web-maintenance-organisationunit/menu.vm
- 321
+ 384
javascript/organisationUnitGroupSet.js
@@ -313,7 +313,7 @@
/main.vm
/dhis-web-maintenance-organisationunit/hierarchyOperations.vm
/dhis-web-maintenance-organisationunit/menuWithTree.vm
- 321
+ 384
../dhis-web-commons/ouwt/ouwt.js,javascript/hierarchyOperations.js
F_ORGANISATIONUNIT_MOVE
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/resources/org/hisp/dhis/settings/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/resources/org/hisp/dhis/settings/i18n_module.properties 2010-07-02 02:46:36 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-settings/src/main/resources/org/hisp/dhis/settings/i18n_module.properties 2010-07-04 23:55:46 +0000
@@ -89,8 +89,8 @@
jasper = Jasper Reports
intro_user_settings = Customize the system with user specific settings for locale, sort order, display property, style and more.
intro_system_settings = Customize the system behavior with regard to reporting framework, start page, title, flag and more.
-disable_dataentry_when_dataset_completed = Disable data entry when data set completed.
+disable_dataentry_when_dataset_completed = Disable data entry when data set completed
max_attempts = Max number of login attempts
lockout_timeframe = Lockout minutes after max number of login attempts
data_analysis_factor = Data analysis std dev factor
-auto_save_data_entry_form = Auto-save data entry Form
+auto_save_data_entry_form = Auto-save data entry form
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/struts.xml 2010-07-02 10:12:52 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-user/src/main/resources/struts.xml 2010-07-04 23:55:46 +0000
@@ -21,6 +21,7 @@
/main.vm
/dhis-web-maintenance-user/user.vm
/dhis-web-maintenance-user/orgunitMenu.vm
+ 404
../dhis-web-commons/ouwt/ouwt.js,javascript/user.js,javascript/filterTable.js
=== removed file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/CreateChartAction.java'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/CreateChartAction.java 2010-06-25 10:31:20 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/chart/action/CreateChartAction.java 1970-01-01 00:00:00 +0000
@@ -1,116 +0,0 @@
-package org.hisp.dhis.reporting.chart.action;
-
-/*
- * Copyright (c) 2004-2010, University of Oslo
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright notice, this
- * list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- * * Neither the name of the HISP project nor the names of its contributors may
- * be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
- * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-import static org.hisp.dhis.datamart.DataMartInternalProcess.PROCESS_TYPE;
-import static org.hisp.dhis.util.InternalProcessUtil.PROCESS_KEY_REPORT;
-import static org.hisp.dhis.util.InternalProcessUtil.setCurrentRunningProcess;
-
-import java.util.HashSet;
-
-import org.amplecode.cave.process.ProcessCoordinator;
-import org.amplecode.cave.process.ProcessExecutor;
-import org.hisp.dhis.chart.Chart;
-import org.hisp.dhis.chart.ChartService;
-import org.hisp.dhis.dataelement.DataElement;
-import org.hisp.dhis.datamart.DataMartExport;
-import org.hisp.dhis.datamart.DataMartInternalProcess;
-import org.hisp.dhis.user.CurrentUserService;
-
-import com.opensymphony.xwork2.Action;
-
-/**
- * This class exports the relevant data for the chart to datamart.
- *
- * @author Lars Helge Overland
- * @version $Id$
- */
-public class CreateChartAction
- implements Action
-{
- // -------------------------------------------------------------------------
- // Dependencies
- // -------------------------------------------------------------------------
-
- private ProcessCoordinator processCoordinator;
-
- public void setProcessCoordinator( ProcessCoordinator processCoordinator )
- {
- this.processCoordinator = processCoordinator;
- }
-
- private CurrentUserService currentUserService;
-
- public void setCurrentUserService( CurrentUserService currentUserService )
- {
- this.currentUserService = currentUserService;
- }
-
- private ChartService chartService;
-
- public void setChartService( ChartService chartService )
- {
- this.chartService = chartService;
- }
-
- // -------------------------------------------------------------------------
- // Input
- // -------------------------------------------------------------------------
-
- private Integer id;
-
- public void setId( Integer id )
- {
- this.id = id;
- }
-
- // -------------------------------------------------------------------------
- // Action implementation
- // -------------------------------------------------------------------------
-
- public String execute()
- {
- Chart chart = chartService.getChart( id );
-
- String owner = currentUserService.getCurrentUsername();
-
- ProcessExecutor executor = processCoordinator.newProcess( PROCESS_TYPE, owner );
-
- DataMartInternalProcess process = (DataMartInternalProcess) executor.getProcess();
-
- DataMartExport export = new DataMartExport( null, new HashSet(), chart.getIndicators(), chart.getOrganisationUnits(), chart.getPeriods(), chart.getRelatives() );
-
- process.setExport( export );
-
- processCoordinator.requestProcessExecution( executor );
-
- setCurrentRunningProcess( PROCESS_KEY_REPORT, executor.getId() );
-
- return SUCCESS;
- }
-}
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/resources/META-INF/dhis/beans.xml 2010-05-17 21:05:26 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/resources/META-INF/dhis/beans.xml 2010-07-04 23:55:46 +0000
@@ -76,18 +76,7 @@
-
-
-
-
-
-
-
+
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/resources/org/hisp/dhis/reporting/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/resources/org/hisp/dhis/reporting/i18n_module.properties 2010-03-17 06:25:32 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/resources/org/hisp/dhis/reporting/i18n_module.properties 2010-07-04 23:55:46 +0000
@@ -179,6 +179,7 @@
please_wait= Please wait
view= View
chart= Chart
+view_chart = View chart
create_chart= Create chart
chart_dimension= Chart dimension
add_period_chart= Add period chart
@@ -186,8 +187,6 @@
create_indicator_by_period_chart= Create indicator by period chart
create_indicator_by_organisation_unit_chart= Create indicator by organisation unit chart
dimension= Dimension
-generate_datasource_and_view_chart= Generate datasource and view chart
-view_chart_based_on_existing_datasource= View chart based on existing datasource
category_option_combos= Category Option Combinations
hide_legend= Hide legend
vertical_category_labels= Vertical category labels
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml 2010-06-15 03:12:16 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/resources/struts.xml 2010-07-04 23:55:46 +0000
@@ -63,12 +63,7 @@
-
-
- /dhis-web-reporting/responseSuccess.vm
- plainTextError
-
-
+
displayViewChartForm.action
F_CHART_ADD
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/chart.js'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/chart.js 2010-06-25 10:31:20 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/chart.js 2010-07-04 23:55:46 +0000
@@ -3,55 +3,6 @@
// View chart
// -----------------------------------------------------------------------------
-var tempChartId;
-
-function runAndViewChart( chartId )
-{
- setHeaderWaitMessage( i18n_please_wait );
-
- tempChartId = chartId;
-
- var request = new Request();
- request.setCallbackSuccess( runAndViewChartReceived );
- request.send( "createChart.action?id=" + chartId );
-}
-
-function runAndViewChartReceived( messageElement )
-{
- getChartStatus();
-}
-
-function getChartStatus()
-{
- var url = "getStatus.action";
-
- var request = new Request();
- request.setResponseTypeXML( "status" );
- request.setCallbackSuccess( chartStatusReceived );
- request.send( url );
-}
-
-function chartStatusReceived( xmlObject )
-{
- var statusMessage = getElementValue( xmlObject, "statusMessage" );
- var finished = getElementValue( xmlObject, "finished" );
-
- updateHeaderWaitMessage( statusMessage );
-
- if ( finished == "true" )
- {
- hideHeaderMessage();
-
- var url = "viewChart.action?id=" + tempChartId;
-
- viewChart( url );
- }
- else
- {
- setTimeout( "getChartStatus();", 2000 );
- }
-}
-
function viewChart( url )
{
window.open( url, "_blank", "directories=no, height=560, width=760, location=no, menubar=no, status=no, toolbar=no, resizable=yes, scrollbars=yes" );
=== modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewChartForm.vm'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewChartForm.vm 2010-06-15 03:12:16 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/viewChartForm.vm 2010-07-04 23:55:46 +0000
@@ -18,7 +18,6 @@
-
$i18n.getString( "title" ) |
@@ -29,8 +28,7 @@
#foreach ( $chart in $charts )
$encoder.htmlEncode( $chart.title ) |
- |
- |
+ |
|
|
|
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/dataanalysis/GetAnalysisAction.java'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/dataanalysis/GetAnalysisAction.java 2010-06-30 16:52:11 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/java/org/hisp/dhis/validationrule/action/dataanalysis/GetAnalysisAction.java 2010-07-04 23:55:46 +0000
@@ -166,27 +166,29 @@
public String execute()
{
Set dataElements = new HashSet();
+ Collection periods = null;
+ OrganisationUnit unit = null;
if ( fromDate != null && toDate != null && dataSets != null && organisationUnit != null )
{
- Collection periods = periodService.getPeriodsBetweenDates( format.parseDate( fromDate ), format.parseDate( toDate ) ); //TODO improve
+ periods = periodService.getPeriodsBetweenDates( format.parseDate( fromDate ), format.parseDate( toDate ) ); //TODO improve
for ( String id : dataSets )
{
dataElements.addAll( dataSetService.getDataSet( Integer.parseInt( id ) ).getDataElements() );
}
- OrganisationUnit unit = organisationUnitService.getOrganisationUnit( organisationUnit );
+ unit = organisationUnitService.getOrganisationUnit( organisationUnit );
log.info( "From date: " + fromDate + ", To date: " + toDate + ", Organisation unit: " + unit + ", Std dev: " + standardDeviation + ", Key: " + key );
log.info( "Nr of data elements: " + dataElements.size() + " Nr of periods: " + periods.size() );
-
- DataAnalysisService service = serviceProvider.provide( key );
-
- if ( service != null )
- {
- dataValues = service.analyse( unit, dataElements, periods, standardDeviation );
- }
+ }
+
+ DataAnalysisService service = serviceProvider.provide( key );
+
+ if ( service != null ) // Follow-up analysis has no input params
+ {
+ dataValues = service.analyse( unit, dataElements, periods, standardDeviation );
}
return SUCCESS;
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/org/hisp/dhis/validationrule/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/org/hisp/dhis/validationrule/i18n_module.properties 2010-06-29 00:24:10 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/org/hisp/dhis/validationrule/i18n_module.properties 2010-07-04 23:55:46 +0000
@@ -167,3 +167,4 @@
periodtype = Periodtype
available_data_sets = Available data sets
selected_data_sets = Selected data sets
+analysing_please_wait = Analysing data, please wait
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/struts.xml'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/struts.xml 2010-07-02 10:12:52 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/resources/struts.xml 2010-07-04 23:55:46 +0000
@@ -220,6 +220,13 @@
+
+ /main.vm
+ /dhis-web-validationrule/followUpAnalysisForm.vm
+ /dhis-web-validationrule/menu.vm
+ javascript/dataAnalysis.js
+
+
/dhis-web-validationrule/searchResult.vm
@@ -230,7 +237,7 @@
- /dhis-web-validationrule/responseSuccess.vm
+ /dhis-web-validationrule/responseSuccess.vm
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/dataAnalysisForm.vm'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/dataAnalysisForm.vm 2010-06-30 16:52:11 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/dataAnalysisForm.vm 2010-07-04 23:55:46 +0000
@@ -115,6 +115,8 @@
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/index.vm'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/index.vm 2010-06-19 15:32:24 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/index.vm 2010-07-04 23:55:46 +0000
@@ -8,5 +8,5 @@
#introListImgItem( "viewAnalysisForm.action?key=stddevoutlier" "stddevoutlier_analysis" "validationanalysis" )
#introListImgItem( "viewAnalysisForm.action?key=minmaxoutlier" "minmaxoutlier_analysis" "validationanalysis" )
#introListImgItem( "viewAnalysisForm.action?key=gap" "gap_analysis" "validationanalysis" )
- #introListImgItem( "getAnalysis.action?key=followup" "followup_analysis" "validationanalysis" )
+ #introListImgItem( "viewFollowUpAnalysisForm.action" "followup_analysis" "validationanalysis" )
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/javascript/dataAnalysis.js'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/javascript/dataAnalysis.js 2010-06-29 00:24:10 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/javascript/dataAnalysis.js 2010-07-04 23:55:46 +0000
@@ -10,7 +10,7 @@
{
if ( analysisFormIsValid() == true )
{
- setWaitMessage( "Analysing data, please wait..." );
+ setWaitMessage( i18n_analysing_please_wait );
var url = "getAnalysis.action" +
"?key=" + $( "#key" ).val() +
@@ -50,3 +50,16 @@
return true;
}
+
+function getFollowUpAnalysis()
+{
+ setWaitMessage( i18n_analysing_please_wait );
+
+ var url = "getAnalysis.action?key=followup";
+
+ $.get( url, function( data ) {
+ hideMessage();
+ $( "div#analysisResult" ).show();
+ $( "div#analysisResult" ).html( data );
+ } );
+}
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/javascript/expression.js'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/javascript/expression.js 2010-06-14 12:47:51 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/javascript/expression.js 2010-07-04 23:55:46 +0000
@@ -27,9 +27,8 @@
"&textualExpression=" + textualExpression +
"&periodTypeName=" + periodTypeName ;
- var dialog = window.open( url, "_blank", "directories=no, \
- height=560, width=790, location=no, menubar=no, status=no, \
- toolbar=no, resizable=no");
+ var dialog = window.open( url, "_blank",
+ "directories=no, height=600, width=790, location=no, menubar=no, status=no, toolbar=no, resizable=yes, scrollbars=yes" );
}
function insertText( inputAreaName, inputText )
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/menu.vm'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/menu.vm 2009-12-24 14:47:25 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/menu.vm 2010-07-04 23:55:46 +0000
@@ -11,5 +11,5 @@
$i18n.getString( "stddevoutlier_analysis" )
$i18n.getString( "minmaxoutlier_analysis" )
$i18n.getString( "gap_analysis" )
- $i18n.getString( "followup_analysis" )
+ $i18n.getString( "followup_analysis" )
=== modified file 'dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/searchResult.vm'
--- dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/searchResult.vm 2010-06-29 00:24:10 +0000
+++ dhis-2/dhis-web/dhis-web-validationrule/src/main/webapp/dhis-web-validationrule/searchResult.vm 2010-07-04 23:55:46 +0000
@@ -7,7 +7,7 @@
#else
-$dataValues.size() $i18n.getString( "values_found" )
+$!dataValues.size() $i18n.getString( "values_found" )
|