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
Xiaowu Zhang
erp5
Commits
ec4dabb5
Commit
ec4dabb5
authored
Jan 13, 2023
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: we may have same href but with different title
alse replace | by br
parent
ba7eec4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_createLinkOverview.py
...ins/erp5_corporate_identity/WebPage_createLinkOverview.py
+5
-5
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_createLinkOverview.py
View file @
ec4dabb5
...
...
@@ -85,14 +85,14 @@ for citation in re.findall(r'\[(.*?)\]', document_content or ''):
continue
# Those 3 parts has similar codes, leave as it so that it's easy to customize for each other
if
citation_type
==
"AD"
:
if
citation_href
not
in
citation_ad_doubles
:
citation_ad_doubles
[
citation_href
]
=
citation_ad_count
if
(
citation_href
,
citation_info
[
0
])
not
in
citation_ad_doubles
:
citation_ad_doubles
[
(
citation_href
,
citation_info
[
0
])
]
=
citation_ad_count
citation_id
=
''
.
join
([
citation_type
,
"-"
,
str
(
citation_ad_count
)])
citation_dict
[
"item"
]
=
{
"type"
:
citation_type
,
"title"
:
citation_info
[
0
],
"number"
:
citation_info
[
1
],
"version"
:
citation_info
[
2
],
"title"
:
citation_info
[
0
]
.
replace
(
'|'
,
'<br/>'
)
,
"number"
:
citation_info
[
1
]
.
replace
(
'|'
,
'<br/>'
)
,
"version"
:
citation_info
[
2
]
.
replace
(
'|'
,
'<br/>'
)
,
"href"
:
citation_href
,
"id"
:
citation_id
}
...
...
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