diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.js b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.js index c3da38f19844481ee72aaaaddf478359715294d4..c55712183780f0b149d02d5eecdb6fc8692c064f 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.js +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.js @@ -18,13 +18,10 @@ function get_jio_cache_storage(name) { return { - type: "query", + type: "uuid", sub_storage: { - type: "uuid", - sub_storage: { - type: "indexeddb", - database: 'officejs_' + name + '_cache_erp5' - } + type: "indexeddb", + database: 'officejs_' + name + '_cache_erp5' } }; } @@ -162,12 +159,17 @@ use_bulk_get: true, use_bulk: true, attachment_list: [], + signature_storage: get_jio_cache_storage(name + "_hash"), local_sub_storage: { type: "mapping", - sub_storage: get_jio_cache_storage(name), + map_all_property: true, + map_id: ["equalSubProperty", "relative_url"], mapping_dict: { - "id": {"equal": "relative_url"}, - "url_string": {"equal": "id"} + "url_string": ["equalSubId"] + }, + sub_storage: { + type: "query", + sub_storage: get_jio_cache_storage(name) } }, remote_sub_storage: { diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.xml index 52d03cd6c66b9f60465e975ba3fc3a90f827d5d1..c7b9ffb877fd5963e6d36f6f3571ba543888f883 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.xml +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_onlyoffice_landing_js.xml @@ -238,7 +238,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>955.61588.62123.53248</string> </value> + <value> <string>956.8405.36478.63112</string> </value> </item> <item> <key> <string>state</string> </key> @@ -256,7 +256,7 @@ </tuple> <state> <tuple> - <float>1481796866.22</float> + <float>1482406609.1</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js index dd603e080c25aaad69eb2aca1640eb23728542e3..5a14089fbbac60a26e25d05ff01cc9ec363e6d08 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js @@ -11,13 +11,10 @@ function get_jio_cache_storage(name) { return { - type: "query", + type: "uuid", sub_storage: { - type: "uuid", - sub_storage: { - type: "indexeddb", - database: 'officejs_' + name + '_cache_erp5' - } + type: "indexeddb", + database: 'officejs_' + name + '_cache_erp5' } }; } @@ -155,12 +152,17 @@ use_bulk_get: true, use_bulk: true, attachment_list: [], + signature_storage: get_jio_cache_storage(name + "_hash"), local_sub_storage: { type: "mapping", - sub_storage: get_jio_cache_storage(name), + map_all_property: true, + map_id: ["equalSubProperty", "relative_url"], mapping_dict: { - "id": {"equal": "relative_url"}, - "url_string": {"equal": "id"} + "url_string": ["equalSubId"] + }, + sub_storage: { + type: "query", + sub_storage: get_jio_cache_storage(name) } }, remote_sub_storage: { diff --git a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml index 8db07e636bcc383ad79b9c95ac8f7df714d7d379..36c7d151e60a4eb42c3cee0ce4509e86a5252652 100644 --- a/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml +++ b/bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml @@ -224,7 +224,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>955.63758.17874.13260</string> </value> + <value> <string>956.8402.60552.35737</string> </value> </item> <item> <key> <string>state</string> </key> @@ -242,7 +242,7 @@ </tuple> <state> <tuple> - <float>1481796844.01</float> + <float>1482405596.26</float> <string>UTC</string> </tuple> </state>