=== modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ExcelExtension.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ExcelExtension.java 2010-06-04 17:44:41 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ExcelExtension.java 2010-06-19 15:32:24 +0000 @@ -1,6 +1,5 @@ package org.hisp.dhis.importexport.zip; - import java.util.Calendar; import java.util.GregorianCalendar; @@ -30,14 +29,13 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + /** - * + * * @author bobj - * @version created 04-May-2010 */ public class ExcelExtension { - public static String date( String xltimestr ) { try @@ -48,10 +46,11 @@ // the beginning of excel time is 1/1/1900 Calendar cal = new GregorianCalendar(); cal.set( 1900, 0, 1 ); - //cal.add( Calendar.DAY_OF_MONTH, 20 ); + // cal.add( Calendar.DAY_OF_MONTH, 20 ); cal.add( Calendar.DAY_OF_MONTH, xldays.intValue() - 2 ); return cal.getTime().toString(); - } catch ( Exception ex ) + } + catch ( Exception ex ) { return ""; } === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ExcelXImporter.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ExcelXImporter.java 2010-06-09 08:01:43 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ExcelXImporter.java 2010-06-19 15:32:24 +0000 @@ -1,6 +1,5 @@ package org.hisp.dhis.importexport.zip; - /* * Copyright (c) 2004-2005, University of Oslo * All rights reserved. @@ -44,11 +43,10 @@ /** * * @author bobj - * @version created 22-Apr-2010 */ @Component("excelXImporter") -public class ExcelXImporter extends TransformablePackage { - +public class ExcelXImporter extends TransformablePackage +{ private final static Log log = LogFactory.getLog( ExcelXImporter.class ); public static final String WORKBOOK = "xl/workbook.xml"; @@ -59,12 +57,10 @@ @Autowired protected XMLPreConverter preConverter; - - + @Autowired protected DXFConverter converter; - /** * Identify the spreadsheet and lookup the associated stylesheet identifier * Our current working assumption is there will be a version tag on cell B3 @@ -83,16 +79,17 @@ // look up the excel shared string code in cell B3 String codedIdentifier = XPathFilter.findText( titleSheet, "//c[@r='B3']/v" ); - if (codedIdentifier==null) + if ( codedIdentifier == null ) { log.info( "Couldn't identify spreadsheet version info"); - throw (new Exception("Couldn't identify spreadsheet version info")); + throw new RuntimeException( "Couldn't identify spreadsheet version info" ); } Integer id = Integer.parseInt( codedIdentifier) + 1; log.info("Shared string: "+id); - // look up it's string value + + // look up its string value String identifier = XPathFilter.findText( sharedStrings, "/sst/si["+id+"]/t"); log.info("Excel spreadsheet identified: " + identifier); @@ -127,5 +124,4 @@ { return converter; } - } === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/OdfImporter.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/OdfImporter.java 2010-06-04 17:44:41 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/OdfImporter.java 2010-06-19 15:32:24 +0000 @@ -1,6 +1,5 @@ package org.hisp.dhis.importexport.zip; - import java.io.InputStream; import java.util.Map; import java.util.zip.ZipFile; @@ -38,7 +37,6 @@ /** * * @author bobj - * @version created 02-Jun-2010 */ @Component("odfImporter") public class OdfImporter extends TransformablePackage { @@ -72,5 +70,4 @@ { throw new UnsupportedOperationException( "Not supported yet." ); } - } === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/SdmxImporter.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/SdmxImporter.java 2010-06-09 08:01:43 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/SdmxImporter.java 2010-06-19 15:32:24 +0000 @@ -1,6 +1,5 @@ package org.hisp.dhis.importexport.zip; - import java.io.InputStream; import java.text.DateFormat; import java.text.SimpleDateFormat; @@ -42,13 +41,11 @@ */ /** - * * @author bobj - * @version created 22-Apr-2010 */ @Component("sdmxImporter") -public class SdmxImporter extends TransformablePackage { - +public class SdmxImporter extends TransformablePackage +{ @Autowired protected XMLPreConverter preConverter; @@ -104,6 +101,4 @@ { return converter; } - - } === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/SingleStreamImporter.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/SingleStreamImporter.java 2010-06-04 17:44:41 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/SingleStreamImporter.java 2010-06-19 15:32:24 +0000 @@ -40,23 +40,19 @@ import org.springframework.stereotype.Component; /** - * SingleStreamImporter is the simplest Importer + * SingleStreamImporter is the simplest Importer. * * @author bobj - * @version created 21-Apr-2010 */ @Component("singleStreamImporter") -public class SingleStreamImporter implements ZipImporter { - +public class SingleStreamImporter implements ZipImporter +{ @Autowired protected XMLPreConverter preConverter; - @Autowired protected DXFConverter converter; - // ------------------------------------------------------------------------- - public InputStream getXMLStream(ZipFile zipFile) throws IOException { ZipEntry entry = zipFile.entries().nextElement(); @@ -70,6 +66,4 @@ XMLReader dxfReader = preConverter.transform( getXMLStream(zipFile), params, state); converter.read( dxfReader, params, state ); } - - } === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/TransformablePackage.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/TransformablePackage.java 2010-06-05 18:05:40 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/TransformablePackage.java 2010-06-19 15:32:24 +0000 @@ -1,6 +1,5 @@ package org.hisp.dhis.importexport.zip; - import java.io.InputStream; import java.util.Map; import java.util.zip.ZipFile; @@ -50,7 +49,6 @@ */ public abstract class TransformablePackage implements ZipImporter { - private static final String URL_PARAM = "zip_url"; /** @@ -89,5 +87,4 @@ protected abstract XMLPreConverter getXMLPreConverter(); protected abstract DXFConverter getDXFConverter(); - } === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ZipAnalyzer.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ZipAnalyzer.java 2010-06-18 15:21:28 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ZipAnalyzer.java 2010-06-19 15:32:24 +0000 @@ -38,9 +38,7 @@ import org.springframework.stereotype.Component; /** - * * @author bobj - * @version created 21-Apr-2010 */ @Component("zipAnalyzer") public class ZipAnalyzer === modified file 'dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ZipImporter.java' --- dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ZipImporter.java 2010-06-08 08:14:55 +0000 +++ dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/zip/ZipImporter.java 2010-06-19 15:32:24 +0000 @@ -1,6 +1,5 @@ package org.hisp.dhis.importexport.zip; - import java.util.zip.ZipFile; import org.hisp.dhis.common.ProcessState; import org.hisp.dhis.importexport.ImportParams; @@ -31,6 +30,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + /** * A ZipImporter can import zip packages such as * dxf, excel (xlsx), sdmx-hd, odf @@ -41,7 +41,6 @@ public interface ZipImporter { public void importData(ImportParams params, ProcessState state, ZipFile zipFile) throws Exception; - } === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2010-06-09 19:41:18 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2010-06-19 15:32:24 +0000 @@ -461,7 +461,4 @@ sixth_visit = Sixth Visit discharge_date_from_institution = Discharge Date From Institution urine_test_Infection = Urine Test Infection -discharge_date_from_institution = Discharge Date From Institution - - - +discharge_date_from_institution = Discharge Date From Institution \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/index.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/index.vm 2009-11-20 12:19:58 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/index.vm 2010-06-19 15:32:24 +0000 @@ -2,7 +2,7 @@

$i18n.getString( "dhis-web-caseentry" )

\ No newline at end of file === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/caseaggregationmapping.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/caseaggregationmapping.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/caseaggregationmapping.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/chart.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/chart.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/chart.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datacompletenessreport.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datacompletenessreport.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datacompletenessreport.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datadictionary.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datadictionary.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datadictionary.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataelement.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataelement.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataelement.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataentry.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataentry.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataentry.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataset.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataset.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dataset.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datasetreport.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datasetreport.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/datasetreport.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis14.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis14.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/dhis14.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/indicator.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/indicator.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/indicator.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/organisationunit.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/organisationunit.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/organisationunit.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/patient.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/patient.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/patient.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/pdf.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/pdf.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/pdf.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/pivottable.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/pivottable.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/pivottable.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/program.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/program.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/program.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/reporttable.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/reporttable.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/reporttable.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/standardreport.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/standardreport.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/standardreport.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/staticreport.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/staticreport.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/staticreport.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/summaryreport.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/summaryreport.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/summaryreport.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/systemsettings.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/systemsettings.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/systemsettings.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/tallysheetgenerator.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/tallysheetgenerator.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/tallysheetgenerator.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/user.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/user.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/user.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/usersettings.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/usersettings.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/usersettings.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationanalysis.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationanalysis.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationanalysis.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationcriteria.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationcriteria.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationcriteria.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationrule.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationrule.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/validationrule.png 2010-06-19 15:32:24 +0000 differ === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/visitplan.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/visitplan.png 1970-01-01 00:00:00 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/icons/visitplan.png 2010-06-19 15:32:24 +0000 differ === modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/resources/org/hisp/dhis/importexport/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-importexport/src/main/resources/org/hisp/dhis/importexport/i18n_module.properties 2010-06-08 08:14:55 +0000 +++ dhis-2/dhis-web/dhis-web-importexport/src/main/resources/org/hisp/dhis/importexport/i18n_module.properties 2010-06-19 15:32:24 +0000 @@ -58,7 +58,7 @@ select_min_orgunit = Select at least one organisation unit select_min_period = Select at least one period select_period_span = Select period span -dhis14_import = DHIS 1.4 Import +dhis14_import = DHIS 1.4 import data_elements_and_indicators = Data elements and Indicators organisation_units = Organisation units periods = Periods === modified file 'dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/externalExportMenu.vm' --- dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/externalExportMenu.vm 2010-06-01 11:04:02 +0000 +++ dhis-2/dhis-web/dhis-web-importexport/src/main/webapp/dhis-web-importexport/externalExportMenu.vm 2010-06-19 15:32:24 +0000 @@ -2,7 +2,7 @@

$i18n.getString( "export_to_other_systems" )