Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mynij
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
mynij
Commits
6d90855c
Commit
6d90855c
authored
Oct 12, 2020
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mynij Search: commit some missing file in bt
parent
2b346334
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
913 additions
and
1 deletion
+913
-1
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection%20Module/mynij_search_view.xml
...ynij%20Search%20Collection%20Module/mynij_search_view.xml
+91
-0
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection%20Module/view.xml
...ortal_types/Mynij%20Search%20Collection%20Module/view.xml
+83
-0
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/jio_view.xml
...tem/portal_types/Mynij%20Search%20Collection/jio_view.xml
+91
-0
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/mynij_search_build_index.xml
.../Mynij%20Search%20Collection/mynij_search_build_index.xml
+91
-0
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/mynij_search_search_in_index.xml
...ij%20Search%20Collection/mynij_search_search_in_index.xml
+91
-0
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/view.xml
...ateItem/portal_types/Mynij%20Search%20Collection/view.xml
+83
-0
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.html.html
...tem/web_page_module/gadget_erp5_page_mynij_home.html.html
+25
-0
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.html.xml
...Item/web_page_module/gadget_erp5_page_mynij_home.html.xml
+117
-0
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.js
...mplateItem/web_page_module/gadget_erp5_page_mynij_home.js
+115
-0
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.xml
...plateItem/web_page_module/gadget_erp5_page_mynij_home.xml
+117
-0
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_officejs_mynij_search.configuration.xml
...age_module/gadget_officejs_mynij_search.configuration.xml
+1
-1
bt5/Mynij Search/bt/dependency_list
bt5/Mynij Search/bt/dependency_list
+1
-0
bt5/Mynij Search/bt/template_action_path_list
bt5/Mynij Search/bt/template_action_path_list
+6
-0
bt5/Mynij Search/bt/template_path_list
bt5/Mynij Search/bt/template_path_list
+1
-0
No files found.
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection%20Module/mynij_search_view.xml
0 → 100644
View file @
6d90855c
<?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_search
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jio_search
</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>
mynij_search_view
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</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>
1.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}/MynijSearchCollectionModule_viewForMynijSearch
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection%20Module/view.xml
0 → 100644
View file @
6d90855c
<?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_list
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_list
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
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>
1.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}/MynijSearchCollectionModule_viewMynijSearchCollectionList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/jio_view.xml
0 → 100644
View file @
6d90855c
<?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>
language
</string>
</key>
<value>
<none/>
</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>
1.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}/Mynij_viewAsJio
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/mynij_search_build_index.xml
0 → 100644
View file @
6d90855c
<?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_js_script
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jio_js_script
</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>
mynij_search_build_index
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
Add portal content
</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>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Build Index
</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}/Base_buildIndexMynijSearch
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/mynij_search_search_in_index.xml
0 → 100644
View file @
6d90855c
<?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_js_script
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jio_js_script
</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>
mynij_search_search_in_index
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
Add portal content
</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>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Search in index
</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}/Base_searchInIndexMynijSearch
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/ActionTemplateItem/portal_types/Mynij%20Search%20Collection/view.xml
0 → 100644
View file @
6d90855c
<?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_view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
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>
1.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}/MynijSearchCollection_view
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.html.html
0 → 100644
View file @
6d90855c
<!doctype html>
<html>
<head>
<title>
Mynij
</title>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_erp5_page_mynij_home.js"
type=
"text/javascript"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"gadget_mynij_home.css"
>
</head>
<body>
<div
id=
"search_div"
>
<form
id =
"search_bar"
>
<input
type=
"search"
id =
"search_input"
required
>
</form>
<select
id=
"select_index"
></select>
</div>
<div
id =
"gadget_result"
data-gadget-url=
"gadget_mynij_result.html"
data-gadget-scope=
"result"
data-gadget-sandbox=
"public"
>
<div
data-gadget-url=
"gadget_mynij_model.html"
data-gadget-scope=
"model"
data-gadget-sandbox=
"public"
>
</body>
</html>
\ No newline at end of file
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.html.xml
0 → 100644
View file @
6d90855c
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Page"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_mynij_home.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_erp5_page_mynij_home.html
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<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>
Mynij Home Page gadget
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.js
0 → 100644
View file @
6d90855c
(
function
(
window
,
document
,
rJS
,
RSVP
)
{
var
gadget
;
rJS
(
window
)
.
setState
({
model_gadget
:
null
,
result_gadget
:
null
})
.
ready
(
function
(){
var
model_gadget
,
result_gadget
,
gadget
=
this
;
return
gadget
.
getDeclaredGadget
(
"
model
"
)
.
push
(
function
(
model
){
model_gadget
=
model
;
})
.
push
(
function
(){
return
gadget
.
getDeclaredGadget
(
"
result
"
);
})
.
push
(
function
(
result
){
return
gadget
.
changeState
({
model_gadget
:
model_gadget
,
result_gadget
:
result
});
})
.
push
(
function
(){
setTimeout
(
function
()
{
return
gadget
.
fill_available_indices
();
},
100
);
});
})
.
declareMethod
(
"
fill_available_indices
"
,
function
(){
var
gadget
=
this
,
drop_list
=
document
.
getElementById
(
"
select_index
"
);
return
gadget
.
state
.
model_gadget
.
get_available_indices
()
.
push
(
function
(
results
){
results
.
forEach
((
item
,
i
)
=>
{
var
option_item
=
document
.
createElement
(
"
option
"
);
option_item
.
value
=
item
;
option_item
.
appendChild
(
document
.
createTextNode
(
item
));
drop_list
.
appendChild
(
option_item
);
});
});
})
.
declareMethod
(
"
search
"
,
function
(
key
){
var
gadget
=
this
,
chosen_index
=
document
.
getElementById
(
"
select_index
"
).
selectedOptions
[
0
];
if
(
chosen_index
==
null
){
return
gadget
.
state
.
result_gadget
.
addItem
({
title
:
"
Error : No index built
"
,
link
:
""
,
body
:
""
},
key
);
}
return
gadget
.
state
.
result_gadget
.
clear
()
.
push
(
function
(){
console
.
log
(
"
starting search
"
);
return
gadget
.
state
.
model_gadget
.
search
(
key
,
chosen_index
.
value
);
})
.
push
(
function
(
result
){
console
.
log
(
"
search done
"
);
if
(
result
.
length
===
0
)
{
return
gadget
.
state
.
result_gadget
.
addItem
({
title
:
"
No results found
"
,
link
:
""
},
""
);
}
else
{
var
i
,
promise_list
=
[];
for
(
i
=
0
;
i
<
result
.
length
;
i
+=
1
){
promise_list
.
push
(
gadget
.
state
.
model_gadget
.
get_page
(
result
[
i
]));
}
return
new
RSVP
.
Queue
()
.
push
(
function
(){
return
RSVP
.
all
(
promise_list
);
})
.
push
(
function
(
result
){
var
i
,
promise_list
=
[];
for
(
i
=
0
;
i
<
result
.
length
;
i
+=
1
){
promise_list
.
push
(
gadget
.
state
.
result_gadget
.
addItem
(
result
[
i
],
key
));
}
});
}
});
})
.
declareMethod
(
"
add_searx_results
"
,
function
(
key
){
var
gadget
=
this
;
return
new
RSVP
.
Queue
()
.
push
(
function
(){
return
jIO
.
util
.
ajax
({
url
:
"
https://cors-anywhere.herokuapp.com/search.disroot.org/?q=
"
+
key
+
"
&category_general=on&theme=oscar
"
});
})
.
push
(
function
(
resultHTML
){
var
i
,
promise_list
=
[],
elements
,
doc
=
new
DOMParser
().
parseFromString
(
resultHTML
.
currentTarget
.
response
,
"
text/html
"
);
elements
=
doc
.
body
.
querySelectorAll
(
'
div.result.result-default
'
);
for
(
i
=
0
;
i
<
elements
.
length
;
i
+=
1
){
promise_list
.
push
(
gadget
.
state
.
result_gadget
.
show_searx_result
(
elements
[
i
],
key
));
}
return
RSVP
.
all
(
promise_list
);
});
})
.
onEvent
(
"
submit
"
,
function
(
event
){
var
gadget
=
this
,
search_key
=
document
.
getElementById
(
"
search_input
"
).
value
;
return
gadget
.
search
(
search_key
)
.
push
(
function
(){
return
gadget
.
add_searx_results
(
search_key
);
});
});
}(
window
,
document
,
rJS
,
RSVP
));
\ No newline at end of file
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_erp5_page_mynij_home.xml
0 → 100644
View file @
6d90855c
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Web Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Change_local_roles_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
content_md5
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_mynij_home.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_erp5_page_mynij_home
</string>
</value>
</item>
<item>
<key>
<string>
language
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Mynij home JS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/Mynij Search/PathTemplateItem/web_page_module/gadget_officejs_mynij_search.configuration.xml
View file @
6d90855c
...
...
@@ -91,7 +91,7 @@
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
CONFIGURATION MANIFEST\n
# generated on
Thu Aug 20 14:29:38
2020\n
# generated on
Wed Sep 16 15:23:40
2020\n
CACHE:\n
\n
hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL015bmlqIFNlYXJjaCBDb2xsZWN0aW9uIE1vZHVsZQ==\n
...
...
bt5/Mynij Search/bt/dependency_list
View file @
6d90855c
erp5_dms
erp5_web
\ No newline at end of file
bt5/Mynij Search/bt/template_action_path_list
0 → 100644
View file @
6d90855c
Mynij Search Collection Module | mynij_search_view
Mynij Search Collection Module | view
Mynij Search Collection | jio_view
Mynij Search Collection | mynij_search_build_index
Mynij Search Collection | mynij_search_search_in_index
Mynij Search Collection | view
\ No newline at end of file
bt5/Mynij Search/bt/template_path_list
View file @
6d90855c
...
...
@@ -3,6 +3,7 @@ portal_skins/erp5_mynij
portal_skins/erp5_mynij/**
web_page_module/flexsearch**
web_page_module/gadget_erp5_mynij_**
web_page_module/gadget_erp5_page_mynij_**
web_page_module/gadget_mynij_**
web_page_module/gadget_officejs_mynij_**
web_page_module/mynij_**
...
...
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