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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
5abc5c2d
Commit
5abc5c2d
authored
Nov 20, 2019
by
Sven Franck
Committed by
Romain Courteaud
Nov 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs_afs_directory] Use default jio.allDocs's query handling
parent
f66ab86d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
163 additions
and
188 deletions
+163
-188
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
...athTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
+0
-37
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
...thTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
+163
-151
No files found.
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.js
View file @
5abc5c2d
...
@@ -44,40 +44,6 @@
...
@@ -44,40 +44,6 @@
"
https://www.openhub.net/p/xwiki/analyses/latest/languages_summary
"
:
7909332
"
https://www.openhub.net/p/xwiki/analyses/latest/languages_summary
"
:
7909332
};
};
// XXX... lord have mercy
function
mockupQueryParam
(
param
,
select_list
)
{
var
wild_param
=
param
.
replace
(
/
[
()
]
/g
,
"
%
"
).
replace
(
/ /g
,
''
),
return_list
=
[],
len
,
i
;
for
(
i
=
0
,
len
=
select_list
.
length
;
i
<
len
;
i
+=
1
)
{
return_list
.
push
(
select_list
[
i
]
+
'
:"
'
+
wild_param
+
'
"
'
);
}
return
'
(
'
+
return_list
.
join
(
'
OR
'
)
+
'
)
'
;
}
// XXX... lord, I need more mercy
function
updateQuery
(
query
,
select_list
)
{
var
query_param_list
=
query
.
split
(
"
AND
"
),
param
,
len
,
i
;
for
(
i
=
0
,
len
=
query_param_list
.
length
;
i
<
len
;
i
+=
1
)
{
param
=
query_param_list
[
i
];
// search
if
(
param
.
split
(
"
:
"
).
length
!==
2
)
{
return
query
.
replace
(
param
,
mockupQueryParam
(
param
,
select_list
));
}
// hide rows
if
(
param
.
indexOf
(
"
catalog.uid
"
)
>
0
)
{
return
query
.
replace
(
"
catalog.
"
,
""
);
}
}
return
query
;
}
function
getEmptyKpiDict
()
{
function
getEmptyKpiDict
()
{
return
{
return
{
"
staff
"
:
{
"
value
"
:
0
,
"
entries
"
:
0
,
"
total
"
:
0
},
"
staff
"
:
{
"
value
"
:
0
,
"
entries
"
:
0
,
"
total
"
:
0
},
...
@@ -413,9 +379,6 @@
...
@@ -413,9 +379,6 @@
})
})
.
declareMethod
(
'
allDocs
'
,
function
(
options
)
{
.
declareMethod
(
'
allDocs
'
,
function
(
options
)
{
if
(
options
!==
undefined
)
{
options
.
query
=
updateQuery
(
options
.
query
,
options
.
select_list
);
}
return
this
.
state_parameter_dict
.
jio_storage
.
allDocs
(
options
);
return
this
.
state_parameter_dict
.
jio_storage
.
allDocs
(
options
);
})
})
.
declareMethod
(
'
getAttachment
'
,
function
(
id
,
view
)
{
.
declareMethod
(
'
getAttachment
'
,
function
(
id
,
view
)
{
...
...
bt5/erp5_officejs_afs_directory/PathTemplateItem/web_page_module/gadget_erp5_afs_jio_js.xml
View file @
5abc5c2d
...
@@ -148,11 +148,13 @@
...
@@ -148,11 +148,13 @@
</record>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -196,16 +198,20 @@
...
@@ -196,16 +198,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -228,7 +234,7 @@
...
@@ -228,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
978.57314.3759.273
</string>
</value>
<value>
<string>
979.60903.41059.38860
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -246,7 +252,7 @@
...
@@ -246,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1570118702.65
</float>
<float>
1574267756.0
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
@@ -255,16 +261,20 @@
...
@@ -255,16 +261,20 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
patches.WorkflowTool
"
/>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.
Workflow
"
/>
</pickle>
</pickle>
<pickle>
<pickle>
<tuple>
<dictionary>
<none/>
<item>
<key>
<string>
_log
</string>
</key>
<value>
<list>
<list>
<dictionary>
<dictionary>
<item>
<item>
...
@@ -312,7 +322,9 @@
...
@@ -312,7 +322,9 @@
</item>
</item>
</dictionary>
</dictionary>
</list>
</list>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</pickle>
</record>
</record>
</ZopeData>
</ZopeData>
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