From 82aae3f204214efdb908cfeb47f4fada421f8bf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com>
Date: Tue, 6 Sep 2016 08:47:50 +0000
Subject: [PATCH] erp5_officejs: Add jio_view on Spreadsheet, Text and
 Presentation.

---
 .../portal_types/Presentation/jio_view.xml    |  85 +++++
 .../portal_types/Spreadsheet/jio_view.xml     |  85 +++++
 .../portal_types/Text/jio_view.xml            |  85 +++++
 ...iewAsJio.xml => OOoDocument_viewAsJio.xml} |  12 +-
 .../my_content_type.xml                       |   2 +-
 .../my_data.xml                               |  21 +-
 .../my_description.xml                        |   0
 .../my_filename.xml                           |   2 +-
 .../my_language.xml                           |   0
 .../my_portal_type.xml                        |   2 +-
 .../my_reference.xml                          |   0
 .../my_revision.xml                           |   4 +-
 .../my_title.xml                              |   2 +-
 .../my_version.xml                            |   0
 .../OOoDocument_viewAsJio/your_data.xml       | 302 ++++++++++++++++++
 .../your_modification_date.xml}               |   6 +-
 .../bt/template_action_path_list              |   3 +
 17 files changed, 594 insertions(+), 17 deletions(-)
 create mode 100644 bt5/erp5_officejs/ActionTemplateItem/portal_types/Presentation/jio_view.xml
 create mode 100644 bt5/erp5_officejs/ActionTemplateItem/portal_types/Spreadsheet/jio_view.xml
 create mode 100644 bt5/erp5_officejs/ActionTemplateItem/portal_types/Text/jio_view.xml
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio.xml => OOoDocument_viewAsJio.xml} (92%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_content_type.xml (99%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_data.xml (93%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_description.xml (100%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_filename.xml (99%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_language.xml (100%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_portal_type.xml (99%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_reference.xml (100%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_revision.xml (98%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_title.xml (99%)
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio => OOoDocument_viewAsJio}/my_version.xml (100%)
 create mode 100644 bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_data.xml
 rename bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/{Document_viewAsJio/my_modification_date.xml => OOoDocument_viewAsJio/your_modification_date.xml} (97%)

diff --git a/bt5/erp5_officejs/ActionTemplateItem/portal_types/Presentation/jio_view.xml b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Presentation/jio_view.xml
new file mode 100644
index 0000000000..0c54b6dbe1
--- /dev/null
+++ b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Presentation/jio_view.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_jio_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_jio_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>jio_view</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>1000.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>View</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/OOoDocument_viewAsJio</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_officejs/ActionTemplateItem/portal_types/Spreadsheet/jio_view.xml b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Spreadsheet/jio_view.xml
new file mode 100644
index 0000000000..0c54b6dbe1
--- /dev/null
+++ b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Spreadsheet/jio_view.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_jio_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_jio_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>jio_view</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>1000.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>View</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/OOoDocument_viewAsJio</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_officejs/ActionTemplateItem/portal_types/Text/jio_view.xml b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Text/jio_view.xml
new file mode 100644
index 0000000000..0c54b6dbe1
--- /dev/null
+++ b/bt5/erp5_officejs/ActionTemplateItem/portal_types/Text/jio_view.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>action</string> </key>
+            <value>
+              <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+            </value>
+        </item>
+        <item>
+            <key> <string>categories</string> </key>
+            <value>
+              <tuple>
+                <string>action_type/object_jio_view</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>category</string> </key>
+            <value> <string>object_jio_view</string> </value>
+        </item>
+        <item>
+            <key> <string>condition</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>description</string> </key>
+            <value>
+              <none/>
+            </value>
+        </item>
+        <item>
+            <key> <string>icon</string> </key>
+            <value> <string></string> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>jio_view</string> </value>
+        </item>
+        <item>
+            <key> <string>permissions</string> </key>
+            <value>
+              <tuple>
+                <string>View</string>
+              </tuple>
+            </value>
+        </item>
+        <item>
+            <key> <string>portal_type</string> </key>
+            <value> <string>Action Information</string> </value>
+        </item>
+        <item>
+            <key> <string>priority</string> </key>
+            <value> <float>1000.0</float> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string>View</string> </value>
+        </item>
+        <item>
+            <key> <string>visible</string> </key>
+            <value> <int>1</int> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="Expression" module="Products.CMFCore.Expression"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>text</string> </key>
+            <value> <string>string:${object_url}/OOoDocument_viewAsJio</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio.xml
similarity index 92%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio.xml
index c85f3ef37c..fe765f4a53 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio.xml
@@ -18,7 +18,8 @@
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string></string> </value>
+            <value> <string>form_view_editable\n
+ooffice_view</string> </value>
         </item>
         <item>
             <key> <string>edit_order</string> </key>
@@ -73,16 +74,17 @@
                     <value>
                       <list>
                         <string>my_description</string>
-                        <string>my_data</string>
                         <string>my_title</string>
                         <string>my_reference</string>
                         <string>my_revision</string>
                         <string>my_language</string>
                         <string>my_version</string>
                         <string>my_portal_type</string>
-                        <string>my_modification_date</string>
+                        <string>your_modification_date</string>
                         <string>my_content_type</string>
                         <string>my_filename</string>
+                        <string>my_data</string>
+                        <string>your_data</string>
                       </list>
                     </value>
                 </item>
@@ -97,7 +99,7 @@
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>Document_viewAsJio</string> </value>
+            <value> <string>OOoDocument_viewAsJio</string> </value>
         </item>
         <item>
             <key> <string>method</string> </key>
@@ -109,7 +111,7 @@
         </item>
         <item>
             <key> <string>pt</string> </key>
-            <value> <string>form_view</string> </value>
+            <value> <string>form_view_editable</string> </value>
         </item>
         <item>
             <key> <string>row_length</string> </key>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_content_type.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_content_type.xml
similarity index 99%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_content_type.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_content_type.xml
index 79dea043e0..1790d09100 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_content_type.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_content_type.xml
@@ -233,7 +233,7 @@
                 </item>
                 <item>
                     <key> <string>hidden</string> </key>
-                    <value> <int>0</int> </value>
+                    <value> <int>1</int> </value>
                 </item>
                 <item>
                     <key> <string>input_type</string> </key>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_data.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_data.xml
similarity index 93%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_data.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_data.xml
index 5bc5c162b8..c6a4bae53f 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_data.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_data.xml
@@ -144,7 +144,9 @@
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
-                    <value> <string></string> </value>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
                 </item>
                 <item>
                     <key> <string>external_validator</string> </key>
@@ -251,7 +253,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>My Data</string> </value>
+                    <value> <string>Data</string> </value>
                 </item>
                 <item>
                     <key> <string>truncate</string> </key>
@@ -279,7 +281,20 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>here/Document_convertForJio</string> </value>
+            <value> <string>here/OOoDocument_convertForJio</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: not here.getContentType() or here.getContentType().startswith("application/yformat.")</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_description.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_description.xml
similarity index 100%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_description.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_description.xml
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_filename.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_filename.xml
similarity index 99%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_filename.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_filename.xml
index d2bd8bdacd..eb233af55b 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_filename.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_filename.xml
@@ -249,7 +249,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>My Filename</string> </value>
+                    <value> <string>Filename</string> </value>
                 </item>
                 <item>
                     <key> <string>truncate</string> </key>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_language.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_language.xml
similarity index 100%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_language.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_language.xml
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_portal_type.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_portal_type.xml
similarity index 99%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_portal_type.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_portal_type.xml
index d1af5a82c5..5e47e2b637 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_portal_type.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_portal_type.xml
@@ -233,7 +233,7 @@
                 </item>
                 <item>
                     <key> <string>hidden</string> </key>
-                    <value> <int>0</int> </value>
+                    <value> <int>1</int> </value>
                 </item>
                 <item>
                     <key> <string>input_type</string> </key>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_reference.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_reference.xml
similarity index 100%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_reference.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_reference.xml
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_revision.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_revision.xml
similarity index 98%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_revision.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_revision.xml
index 2348dce09b..14850d1171 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_revision.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_revision.xml
@@ -217,7 +217,7 @@
                 </item>
                 <item>
                     <key> <string>editable</string> </key>
-                    <value> <int>1</int> </value>
+                    <value> <int>0</int> </value>
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
@@ -249,7 +249,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>My Revision</string> </value>
+                    <value> <string>Revision</string> </value>
                 </item>
                 <item>
                     <key> <string>truncate</string> </key>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_title.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_title.xml
similarity index 99%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_title.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_title.xml
index c84054031d..4cc7d2e889 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_title.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_title.xml
@@ -249,7 +249,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>My Title</string> </value>
+                    <value> <string>Title</string> </value>
                 </item>
                 <item>
                     <key> <string>truncate</string> </key>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_version.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_version.xml
similarity index 100%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_version.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/my_version.xml
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_data.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_data.xml
new file mode 100644
index 0000000000..e49fcb2592
--- /dev/null
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_data.xml
@@ -0,0 +1,302 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="StringField" module="Products.Formulator.StandardFields"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>your_data</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+                <item>
+                    <key> <string>required_not_found</string> </key>
+                    <value> <string>Input is required but no input given.</string> </value>
+                </item>
+                <item>
+                    <key> <string>too_long</string> </key>
+                    <value> <string>Too much input was given.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_maxwidth</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_width</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>input_type</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>truncate</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_maxwidth</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_width</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value>
+                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
+                    </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>input_type</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>truncate</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_maxwidth</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>display_width</string> </key>
+                    <value> <int>20</int> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>input_type</string> </key>
+                    <value> <string>text</string> </value>
+                </item>
+                <item>
+                    <key> <string>max_length</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>required</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string>Data</string> </value>
+                </item>
+                <item>
+                    <key> <string>truncate</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>unicode</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>whitespace_preserve</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="2" aka="AAAAAAAAAAI=">
+    <pickle>
+      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>here/Document_getPreviewAsHTML</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+  <record id="3" aka="AAAAAAAAAAM=">
+    <pickle>
+      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string>python: here.getContentType() and not here.getContentType().startswith("application/yformat.")</string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_modification_date.xml b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_modification_date.xml
similarity index 97%
rename from bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_modification_date.xml
rename to bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_modification_date.xml
index 4fd6579cf2..674476d166 100644
--- a/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/Document_viewAsJio/my_modification_date.xml
+++ b/bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_officejs_theme/OOoDocument_viewAsJio/your_modification_date.xml
@@ -8,7 +8,7 @@
       <dictionary>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>my_modification_date</string> </value>
+            <value> <string>your_modification_date</string> </value>
         </item>
         <item>
             <key> <string>message_values</string> </key>
@@ -235,7 +235,7 @@
                 </item>
                 <item>
                     <key> <string>hidden</string> </key>
-                    <value> <int>0</int> </value>
+                    <value> <int>1</int> </value>
                 </item>
                 <item>
                     <key> <string>input_type</string> </key>
@@ -279,7 +279,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: here.getModificationDate().strftime(\'%d/%m/%Y\')</string> </value>
+            <value> <string>python: here.getModificationDate().HTML4()</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_officejs/bt/template_action_path_list b/bt5/erp5_officejs/bt/template_action_path_list
index d32db7aa41..b7240b9949 100644
--- a/bt5/erp5_officejs/bt/template_action_path_list
+++ b/bt5/erp5_officejs/bt/template_action_path_list
@@ -1,2 +1,5 @@
+Presentation | jio_view
+Spreadsheet | jio_view
+Text | jio_view
 Web Illustration | jio_view
 Web Page | jio_view
\ No newline at end of file
-- 
2.30.9