Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Papa Tamsir Kane
erp5
Commits
7526ee78
Commit
7526ee78
authored
Aug 30, 2017
by
hptk95
Committed by
Papa Tamsir Kane
Sep 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: Bookmark Manager: Use Url module
* bookmark module -> url module * url_string -> coordinate_text
parent
ceb7d656
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
48 additions
and
34 deletions
+48
-34
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_router_html.html
..._module/gadget_officejs_bookmark_manager_router_html.html
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_router_html.xml
...e_module/gadget_officejs_bookmark_manager_router_html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_add_bookmark_js.js
...e_module/gadget_officejs_bookmark_page_add_bookmark_js.js
+4
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_add_bookmark_js.xml
..._module/gadget_officejs_bookmark_page_add_bookmark_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_dispatcher.js.js
...age_module/gadget_officejs_bookmark_page_dispatcher.js.js
+5
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_dispatcher.js.xml
...ge_module/gadget_officejs_bookmark_page_dispatcher.js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_list_js.js
.../web_page_module/gadget_officejs_bookmark_page_list_js.js
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_list_js.xml
...web_page_module/gadget_officejs_bookmark_page_list_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_html.html
...m/web_page_module/gadget_officejs_bookmark_view_html.html
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_html.xml
...em/web_page_module/gadget_officejs_bookmark_view_html.xml
+17
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.js
...eItem/web_page_module/gadget_officejs_bookmark_view_js.js
+5
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.xml
...Item/web_page_module/gadget_officejs_bookmark_view_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_js.js
.../web_page_module/gadget_officejs_page_document_list_js.js
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_js.xml
...web_page_module/gadget_officejs_page_document_list_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_router_html.html
View file @
7526ee78
...
...
@@ -14,8 +14,8 @@
</head>
<body>
<script
data-renderjs-configuration=
"portal_type"
type=
"text/x-renderjs-configuration"
>
Bookmark
</script>
<script
data-renderjs-configuration=
"parent_relative_url"
type=
"text/x-renderjs-configuration"
>
bookmark
_module
</script>
<script
data-renderjs-configuration=
"portal_type"
type=
"text/x-renderjs-configuration"
>
Url
</script>
<script
data-renderjs-configuration=
"parent_relative_url"
type=
"text/x-renderjs-configuration"
>
url
_module
</script>
<script
data-renderjs-configuration=
"document_title"
type=
"text/x-renderjs-configuration"
>
Bookmark
</script>
<script
data-renderjs-configuration=
"document_title_plural"
type=
"text/x-renderjs-configuration"
>
Bookmarks
</script>
<script
data-renderjs-configuration=
"erp5_attachment_synchro"
type=
"text/x-renderjs-configuration"
></script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_manager_router_html.xml
View file @
7526ee78
...
...
@@ -275,7 +275,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.
16277.24517.44253
</string>
</value>
<value>
<string>
961.
49448.1356.36437
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -293,7 +293,7 @@
</tuple>
<state>
<tuple>
<float>
150
3648762.54
</float>
<float>
150
4096072.75
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_add_bookmark_js.js
View file @
7526ee78
...
...
@@ -72,14 +72,14 @@
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
my_
url_string
"
:
{
"
my_
coordinate_text
"
:
{
"
description
"
:
""
,
"
title
"
:
"
Url
"
,
"
default
"
:
options
.
url_string
||
""
,
"
default
"
:
options
.
coordinate_text
||
""
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
editable
"
:
1
,
"
key
"
:
"
url_string
"
,
"
key
"
:
"
coordinate_text
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
...
...
@@ -127,7 +127,7 @@
form_definition
:
{
group_list
:
[[
"
left
"
,
[[
"
my_reference
"
],
[
"
my_title
"
],
[
"
my_
url_string
"
],
[
"
my_description
"
],
[[
"
my_reference
"
],
[
"
my_title
"
],
[
"
my_
coordinate_text
"
],
[
"
my_description
"
],
[
"
my_portal_type
"
],
[
"
my_parent_relative_url
"
]]
]]
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_add_bookmark_js.xml
View file @
7526ee78
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.4
0804.27282.46165
</string>
</value>
<value>
<string>
961.4
9495.38480.31197
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
150
3577300.12
</float>
<float>
150
4099935.87
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_dispatcher.js.js
View file @
7526ee78
...
...
@@ -25,22 +25,22 @@
command
:
'
display
'
,
options
:
{
page
:
"
ojs_add_bookmark
"
,
url_string
:
parameter
coordinate_text
:
parameter
}
});
}
query
=
{
query
:
'
(reference:"
'
+
command
+
'
")
'
+
'
AND portal_type:"
'
+
gadget
.
state
.
portal_type
+
'
"
'
,
select_list
:
[
'
url_string
'
]
select_list
:
[
'
coordinate_text
'
]
};
}
else
{
query
=
{
query
:
'
(title:"%
'
+
search
+
'
%" OR
url_string
:"%
'
+
search
+
'
%" OR
coordinate_text
:"%
'
+
search
+
'
%" OR description:"%
'
+
search
+
'
%") AND portal_type:"
'
+
gadget
.
state
.
portal_type
+
'
"
'
,
select_list
:
[
'
title
'
,
'
url_string
'
,
'
description
'
]
select_list
:
[
'
title
'
,
'
coordinate_text
'
,
'
description
'
]
};
}
return
gadget
.
jio_allDocs
(
query
)
...
...
@@ -65,7 +65,7 @@
return
gadget
.
redirect
({
command
:
'
raw
'
,
options
:
{
url
:
query_result
.
data
.
rows
[
0
].
value
.
url_string
+
url
:
query_result
.
data
.
rows
[
0
].
value
.
coordinate_text
+
parameter
}
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_dispatcher.js.xml
View file @
7526ee78
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.
10293.23355.24473
</string>
</value>
<value>
<string>
961.
49415.17092.22306
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
150
1746582.52
</float>
<float>
150
4099409.68
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_list_js.js
View file @
7526ee78
...
...
@@ -38,7 +38,7 @@
var
column_list
=
[
[
'
reference
'
,
'
Reference
'
],
[
'
title
'
,
'
Title
'
],
[
'
url_string
'
,
'
Url
'
],
[
'
coordinate_text
'
,
'
Url
'
],
[
'
description
'
,
'
Description
'
]
];
return
result
[
0
].
render
({
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_page_list_js.xml
View file @
7526ee78
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.
9215.4122.51694
</string>
</value>
<value>
<string>
961.
49415.17092.22306
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
150
1746703.37
</float>
<float>
150
4099713.54
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_html.html
View file @
7526ee78
...
...
@@ -11,7 +11,7 @@
<script
src=
"handlebars.js"
></script>
<script
class=
"view-web-page-template"
type=
"text/x-handlebars-template"
>
<
a
href
=
"
{{
url_string}}
"
style
=
"
display: block; text-align: center; font-size: 1.7em;
"
>
{{
url_string
}}
<
/a
>
<
a
href
=
"
{{
coordinate_text}}
"
style
=
"
display: block; text-align: center; font-size: 1.7em;
"
>
{{
coordinate_text
}}
<
/a
>
</script>
<script
src=
"gadget_officejs_jio_bookmark_view.js"
></script>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_html.xml
View file @
7526ee78
...
...
@@ -63,6 +63,14 @@
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
classification/collaborative/team
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
...
...
@@ -75,7 +83,7 @@
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_officejs_jio_
bookmark
_view.html
</string>
</value>
<value>
<string>
gadget_officejs_jio_
url
_view.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -97,6 +105,12 @@
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Page
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
OfficeJS Jio Bookmark View
</string>
</value>
...
...
@@ -236,7 +250,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.
8981.40656.43178
</string>
</value>
<value>
<string>
961.
49484.34054.54169
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +268,7 @@
</tuple>
<state>
<tuple>
<float>
150
1746717.77
</float>
<float>
150
4098066.74
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.js
View file @
7526ee78
...
...
@@ -68,7 +68,7 @@
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
translateHtml
(
template
({
url_string
:
gadget
.
state
.
doc
.
url_string
}));
return
gadget
.
translateHtml
(
template
({
coordinate_text
:
gadget
.
state
.
doc
.
coordinate_text
}));
})
.
push
(
function
(
html
)
{
gadget
.
element
.
querySelector
(
'
.template-view
'
).
innerHTML
=
html
;
...
...
@@ -100,14 +100,14 @@
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
"
my_
url_string
"
:
{
"
my_
coordinate_text
"
:
{
"
description
"
:
""
,
"
title
"
:
"
Url
"
,
"
default
"
:
gadget
.
state
.
doc
.
url_string
,
"
default
"
:
gadget
.
state
.
doc
.
coordinate_text
,
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
1
,
"
key
"
:
"
url_string
"
,
"
key
"
:
"
coordinate_text
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
...
...
@@ -133,7 +133,7 @@
form_definition
:
{
group_list
:
[[
"
left
"
,
[[
"
my_reference
"
],
[
"
my_title
"
],
[
"
my_
url_string
"
],
[
"
my_description
"
]]
[[
"
my_reference
"
],
[
"
my_title
"
],
[
"
my_
coordinate_text
"
],
[
"
my_description
"
]]
]]
}
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_view_js.xml
View file @
7526ee78
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.4
0803.35937.59409
</string>
</value>
<value>
<string>
961.4
9505.13389.1024
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
150
3577301.58
</float>
<float>
150
4099494.84
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_js.js
View file @
7526ee78
...
...
@@ -70,7 +70,7 @@
.
push
(
function
(
answer_list
)
{
gadget
.
props
.
portal_type
=
answer_list
[
0
];
// Hardcoded For Bookmark View
if
(
gadget
.
props
.
portal_type
===
"
Bookmark
"
)
{
if
(
gadget
.
props
.
portal_type
===
"
Url
"
)
{
return
gadget
.
redirect
({
"
page
"
:
"
bookmark_list
"
});
}
gadget
.
props
.
document_title_plural
=
answer_list
[
1
];
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_document_list_js.xml
View file @
7526ee78
...
...
@@ -267,7 +267,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
59.44888.46554.50039
</string>
</value>
<value>
<string>
9
61.49452.62475.34167
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -285,7 +285,7 @@
</tuple>
<state>
<tuple>
<float>
1
498035961.94
</float>
<float>
1
504096141.96
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment