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
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
limbra
limbra
Commits
8982c977
Commit
8982c977
authored
Sep 23, 2015
by
LE GAC Renaud
Browse files
Rename the method RecordPubli.find_authors_by_institute to by_affiliation.
parent
b070f03d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
modules/invenio_tools/checkandfix.py
modules/invenio_tools/checkandfix.py
+1
-1
modules/invenio_tools/recordpubli.py
modules/invenio_tools/recordpubli.py
+1
-1
tests/harvester/CheckAndFix/test_acl_cds1951625_fix.py
tests/harvester/CheckAndFix/test_acl_cds1951625_fix.py
+2
-2
No files found.
modules/invenio_tools/checkandfix.py
View file @
8982c977
...
...
@@ -508,7 +508,7 @@ class CheckAndFix(object):
app
.
reg_institute
=
reg_institute
# find authors of my institute signing the record
s
=
record
.
find_authors_by_
institute
(
reg_institute
,
cmpFct
)
s
=
record
.
find_authors_by_
affiliation
(
reg_institute
,
cmpFct
)
# nothing found try with the rescue list
if
not
s
and
reference
:
...
...
modules/invenio_tools/recordpubli.py
View file @
8982c977
...
...
@@ -175,7 +175,7 @@ class RecordPubli(Record):
return
u
', '
.
join
(
li
)
def
find_authors_by_
institute
(
self
,
pattern
,
cmpFct
=
None
):
def
find_authors_by_
affiliation
(
self
,
pattern
,
cmpFct
=
None
):
"""Find authors belonging to a given institute(s) defined by a regular
expression.
...
...
tests/harvester/CheckAndFix/test_acl_cds1951625_fix.py
View file @
8982c977
...
...
@@ -58,11 +58,11 @@ def recordfix(record):
return
rec
def
test_find_authors_by_
institute
(
recordfix
):
def
test_find_authors_by_
affiliation
(
recordfix
):
rex
=
current
.
app
.
reg_institute
assert
rex
==
"Marseille, CPPM|CPPM, Marseille"
authors
=
recordfix
.
find_authors_by_
institute
(
rex
,
family_name_fr
)
authors
=
recordfix
.
find_authors_by_
affiliation
(
rex
,
family_name_fr
)
assert
authors
.
split
(
', '
)
==
CPPM_AUTHORS
...
...
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