# HG changeset patch # User Ingo Weinzierl # Date 1257501079 0 # Node ID f38a86c2c01250bf5fc83ede00dbb37f8a4d9dfb # Parent 013d47662161d8679fb13a33b244f09d8d0c4c66 Added link to export data as odv. gnv/trunk@291 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 013d47662161 -r f38a86c2c012 gnv/ChangeLog --- a/gnv/ChangeLog Thu Nov 05 14:53:24 2009 +0000 +++ b/gnv/ChangeLog Fri Nov 06 09:51:19 2009 +0000 @@ -1,3 +1,12 @@ +2009-11-06 Ingo Weinzierl + + * src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp: Added link + for exporting data in ODV format. + + * src/main/resources/applicationMessages.properties, + src/main/resources/applicationMessages_en.properties: Added label for + odv export and changed label of CSV export. + 2009-11-05 Tim Englich * src/main/java/de/intevation/gnv/artifactdatabase/client/ArtifactDatabaseClientFactory.java (ArtifactDatabaseClientFactory): diff -r 013d47662161 -r f38a86c2c012 gnv/src/main/resources/applicationMessages.properties --- a/gnv/src/main/resources/applicationMessages.properties Thu Nov 05 14:53:24 2009 +0000 +++ b/gnv/src/main/resources/applicationMessages.properties Fri Nov 06 09:51:19 2009 +0000 @@ -55,7 +55,8 @@ # attachedOutputOptions gnviewer.output.options.diagramm.alt=Diagramm gnviewer.output.options.save.title=Diagramm speichern -gnviewer.output.options.export.title=Daten exportieren +gnviewer.output.options.export.csv.title=Daten als CSV exportieren +gnviewer.output.options.export.odv.title=Daten als ODV exportieren height=Höhe -width=Breite \ No newline at end of file +width=Breite diff -r 013d47662161 -r f38a86c2c012 gnv/src/main/resources/applicationMessages_en.properties --- a/gnv/src/main/resources/applicationMessages_en.properties Thu Nov 05 14:53:24 2009 +0000 +++ b/gnv/src/main/resources/applicationMessages_en.properties Fri Nov 06 09:51:19 2009 +0000 @@ -55,7 +55,8 @@ # attachedOutputOptions gnviewer.output.options.diagramm.alt=Diagram gnviewer.output.options.save.title=Save Diagram -gnviewer.output.options.export.title=Export Data +gnviewer.output.options.export.csv.title=Export Data as CSV +gnviewer.output.options.export.odv.title=Export Data as ODV height=Height -width=Width \ No newline at end of file +width=Width diff -r 013d47662161 -r f38a86c2c012 gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp Thu Nov 05 14:53:24 2009 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp Fri Nov 06 09:51:19 2009 +0000 @@ -10,8 +10,10 @@ if (diagramm != null){ String target = "chart"; String targetCSV = "csv"; + String targetODV = "odv"; boolean supportChart = sm.getOutputMode(target) != null; boolean supportCSV = sm.getOutputMode(targetCSV) != null; + boolean supportODV = sm.getOutputMode(targetODV) != null; String mimeType = null; String parameterString = ""; if (supportChart){ @@ -30,6 +32,11 @@ if (supportCSV){ mimeTypeCSV = sm.getOutputMode(targetCSV).getMimeType(); } + + String mimeTypeODV = null; + if (supportODV){ + mimeTypeODV = sm.getOutputMode(targetODV).getMimeType(); + } %>
<bean:message key="gnviewer.output.options.diagramm.alt"/> @@ -39,11 +46,16 @@ <%if (supportCSV) { %> - "> + "> + + + <%}%> + <%if (supportODV) { %> + "> <%}%>
-<%}%> \ No newline at end of file +<%}%>