Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
75c1ed2d
Commit
75c1ed2d
authored
Oct 06, 2017
by
LE GAC Renaud
Browse files
Update RecordPubli to make REG_INITIAL working with more than 2 first names (cds2159843).
parent
7ade5798
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/invenio_tools/recordpubli.py
modules/invenio_tools/recordpubli.py
+2
-1
No files found.
modules/invenio_tools/recordpubli.py
View file @
75c1ed2d
...
...
@@ -37,7 +37,8 @@ MSG_INVALID_FMT = "Invalid format for author"
# The MARC12 keys containing paper reference
PAPER_REFERENCE_KEYS
=
set
([
"c"
,
"p"
,
"v"
,
"y"
])
REG_INITIAL
=
initial
=
r
"^(\w+)\.?(\-)* *(\w+)*\.?$"
# Limit the number of first name to two (others will be ignored)
REG_INITIAL
=
initial
=
r
"^(\w+)\.?(\-)* *(\w+)*\.?"
def
to_initial
(
x
,
y
,
z
):
...
...
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