Index: /applications/editors/josm/plugins/pointInfo/build.xml
===================================================================
--- /applications/editors/josm/plugins/pointInfo/build.xml	(revision 30333)
+++ /applications/editors/josm/plugins/pointInfo/build.xml	(revision 30334)
@@ -15,5 +15,5 @@
 
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="PointInfo: Initial version"/>
+    <property name="commit.message" value="PointInfo: Fix format of start_date key"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     <property name="plugin.main.version" value="6238"/>
@@ -27,5 +27,5 @@
     <property name="plugin.author" value="Marian Kyral"/>
     <property name="plugin.class" value="org.openstreetmap.josm.plugins.pointinfo.PointInfoPlugin"/>
-    <property name="plugin.description" value="Shows an additional information about point on map. Currently only Czech Ruian module available."/>
+    <property name="plugin.description" value="Shows an additional information about point on map. There is only a Czech RUIAN module available at this moment."/>
     <property name="plugin.icon" value="images/mapmode/info-sml.png"/>
     <property name="plugin.link" value="https://github.com/mkyral/josm-pointInfo"/>
Index: /applications/editors/josm/plugins/pointInfo/servers/RUIAN/index.php
===================================================================
--- /applications/editors/josm/plugins/pointInfo/servers/RUIAN/index.php	(revision 30333)
+++ /applications/editors/josm/plugins/pointInfo/servers/RUIAN/index.php	(revision 30334)
@@ -15,6 +15,6 @@
 $query="
   select s.kod,
-        s.pocet_podlazi, a.nazev, s.plati_od, s.pocet_bytu, s.dokonceni,
-        a.osmtag_k, a.osmtag_v
+        s.pocet_podlazi, a.nazev zpusob_vyuziti, s.plati_od, s.pocet_bytu, s.dokonceni,
+        s.zpusob_vyuziti_kod, a.osmtag_k, a.osmtag_v
   from rn_stavebni_objekt s
       left outer join osmtables.zpusob_vyuziti_objektu a on s.zpusob_vyuziti_kod = a.kod
@@ -33,5 +33,6 @@
     array( "ruian_id" => $row["kod"],
            "pocet_podlazi" => $row["pocet_podlazi"],
-           "zpusob_vyuziti" => $row["nazev"],
+           "zpusob_vyuziti" => $row["zpusob_vyuziti"],
+           "zpusob_vyuziti_kod" => $row["zpusob_vyuziti_kod"],
            "zpusob_vyuziti_key" => $row["osmtag_k"],
            "zpusob_vyuziti_val" => $row["osmtag_v"],
Index: /applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoAction.java
===================================================================
--- /applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoAction.java	(revision 30333)
+++ /applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/PointInfoAction.java	(revision 30334)
@@ -74,5 +74,4 @@
     @Override
     public void enterMode() {
-      System.out.println("enterMode() - start");
         if (!isEnabled()) {
             return;
@@ -81,5 +80,4 @@
         Main.map.mapView.setCursor(getCursor());
         Main.map.mapView.addMouseListener(this);
-      System.out.println("enterMode() - end");
 
     }
@@ -87,8 +85,6 @@
     @Override
     public void exitMode() {
-      System.out.println("exitMode() - start");
         super.exitMode();
         Main.map.mapView.removeMouseListener(this);
-      System.out.println("exitMode() - end");
     }
 
Index: /applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/ruianModule.java
===================================================================
--- /applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/ruianModule.java	(revision 30333)
+++ /applications/editors/josm/plugins/pointInfo/src/org/openstreetmap/josm/plugins/pointinfo/ruianModule.java	(revision 30334)
@@ -201,4 +201,5 @@
     private int      m_objekt_byty;
     private String   m_objekt_zpusob_vyuziti;
+    private String   m_objekt_zpusob_vyuziti_kod;
     private String   m_objekt_zpusob_vyuziti_key;
     private String   m_objekt_zpusob_vyuziti_val;
@@ -245,4 +246,5 @@
       m_objekt_byty = 0;
       m_objekt_zpusob_vyuziti = "";
+      m_objekt_zpusob_vyuziti_kod = "";
       m_objekt_zpusob_vyuziti_key = "";
       m_objekt_zpusob_vyuziti_val = "";
@@ -317,4 +319,9 @@
         try {
           m_objekt_zpusob_vyuziti = stavebniObjekt.getString("zpusob_vyuziti");
+        } catch (Exception e) {
+        }
+
+        try {
+          m_objekt_zpusob_vyuziti_kod = stavebniObjekt.getString("zpusob_vyuziti_kod");
         } catch (Exception e) {
         }
@@ -523,5 +530,5 @@
       r.append("<br/>");
       if (m_objekt_ruian_id > 0) {
-        r.append("<i><u>Informace o objektu</u></i>");
+        r.append("<i><u>Informace o budově</u></i>");
         r.append("&nbsp;&nbsp;<a href=file://tags.copy/building><img src="+getClass().getResource("/images/dialogs/copy-tags.png")+" border=0 alt=\"Vložit tagy do schránky\" ></a><br/>");
         r.append("<b>RUIAN id: </b><a href=http://vdp.cuzk.cz/vdp/ruian/stavebniobjekty/" + m_objekt_ruian_id +">" + m_objekt_ruian_id + "</a><br/>");
@@ -678,4 +685,23 @@
 
     /**
+     * Convert date from Czech to OSM format
+     * @param ruianDate Date in RUIAN (Czech) format DD.MM.YYYY
+     * @return String with date converted to OSM data format YYYY-MM-DD
+     */
+    String convertDate (String ruianDate) {
+      String r = new String();
+      String[] parts = ruianDate.split("\\.");
+      try {
+        int day =   Integer.parseInt(parts[0]);
+        int month = Integer.parseInt(parts[1]);
+        int year =  Integer.parseInt(parts[2]);
+        r = new Integer(year).toString() + "-" + String.format("%02d", month) + "-" + String.format("%02d", day);
+      } catch (Exception e) {
+      }
+
+      return r;
+    }
+
+    /**
      * Construct tag string for clipboard
      * @param k OSM Key
@@ -710,6 +736,9 @@
           c.append(tagToString("building:flats", Integer.toString(m_objekt_byty)));
         }
-        if (m_objekt_dokonceni.length() > 0) {
-          c.append(tagToString("start_date", m_objekt_dokonceni));
+        if (m_objekt_dokonceni.length() > 0 && convertDate(m_objekt_dokonceni).length() > 0) {
+          c.append(tagToString("start_date", convertDate(m_objekt_dokonceni)));
+        }
+        if (m_objekt_zpusob_vyuziti_kod.length() > 0) {
+          c.append(tagToString("building:ruian:type", m_objekt_zpusob_vyuziti_kod));
         }
         c.append(tagToString("source", "cuzk:ruian"));
