Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
4d05499d
Commit
4d05499d
authored
Aug 28, 2014
by
eric
Browse files
with comment
parent
01c76d4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
relearn/management/commands/index.py
View file @
4d05499d
...
...
@@ -122,7 +122,7 @@ def query_results_to_template_articles(query_results):
if
key
==
"http://purl.org/dc/terms/title"
:
# Ad-hoc: remove footnotes from the titles!
print
"found title"
,
value
value
=
re
.
sub
(
r
'<sup>.*</sup>'
,
''
,
value
)
value
=
re
.
sub
(
r
'<sup>.*</sup>'
,
''
,
value
)
# A revoir—apparement il y a des titles a 2 endroits, un avec syntax html un avec syntax text
value
=
re
.
sub
(
r
'1$'
,
''
,
value
)
print
"encoding as"
,
value
article
[
'title'
]
=
value
...
...
Write
Preview
Supports
Markdown
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