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
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
Joshua
erp5
Commits
0e5afb66
Commit
0e5afb66
authored
Feb 04, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support the recent cloudooo that returns keywords as a list, not as a string.
parent
71bde9ab
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getPropertyDictFromContent.xml
...ns/erp5_ingestion/Document_getPropertyDictFromContent.xml
+5
-1
bt5/erp5_ingestion/bt/revision
bt5/erp5_ingestion/bt/revision
+1
-1
No files found.
bt5/erp5_ingestion/SkinTemplateItem/portal_skins/erp5_ingestion/Document_getPropertyDictFromContent.xml
View file @
0e5afb66
...
@@ -77,7 +77,11 @@ for k, v in information.items(): \n
...
@@ -77,7 +77,11 @@ for k, v in information.items(): \n
if p is not None:\n
if p is not None:\n
result[\'contributor\'] = p.getRelativeUrl()\n
result[\'contributor\'] = p.getRelativeUrl()\n
elif key == \'keywords\':\n
elif key == \'keywords\':\n
result[\'subject_list\'] = v.split()\n
if isinstance(v, (list, tuple)):\n
v = [isinstance(x, unicode) and x.encode(\'utf-8\') or x for x in v]\n
else:\n
v = v.split()\n
result[\'subject_list\'] = v\n
\n
\n
# Erase titles which are meaningless\n
# Erase titles which are meaningless\n
title = result.get(\'title\', None)\n
title = result.get(\'title\', None)\n
...
...
bt5/erp5_ingestion/bt/revision
View file @
0e5afb66
152
153
\ No newline at end of file
\ No newline at end of file
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