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
d94fe829
Commit
d94fe829
authored
Jun 22, 2017
by
LE GAC Renaud
Browse files
Polish.
parent
be0641b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
modules/invenio_tools/factory.py
modules/invenio_tools/factory.py
+1
-1
modules/invenio_tools/recordconf.py
modules/invenio_tools/recordconf.py
+3
-3
tests/basis/test_05_RecordConf.py
tests/basis/test_05_RecordConf.py
+1
-1
tests/basis/test_06_RecordThesis.py
tests/basis/test_06_RecordThesis.py
+1
-1
No files found.
modules/invenio_tools/factory.py
View file @
d94fe829
...
@@ -93,7 +93,7 @@ def add_conference_data(recjson):
...
@@ -93,7 +93,7 @@ def add_conference_data(recjson):
# Add conference data to the recjson
# Add conference data to the recjson
#
#
recjson
[
u
"meeting_name"
]
=
confjson
[
u
"meeting_name"
]
recjson
[
u
"meeting_name"
]
=
confjson
[
u
"meeting_name"
]
recjson
[
u
"meeting"
]
=
{
recjson
[
u
"meeting
_note
"
]
=
{
u
"recid"
:
confjson
[
u
"recid"
],
u
"recid"
:
confjson
[
u
"recid"
],
u
"url"
:
confjson
[
u
"url"
][
u
"url"
]}
u
"url"
:
confjson
[
u
"url"
][
u
"url"
]}
...
...
modules/invenio_tools/recordconf.py
View file @
d94fe829
...
@@ -15,7 +15,7 @@ class RecordConf(RecordPubli):
...
@@ -15,7 +15,7 @@ class RecordConf(RecordPubli):
+---------------+-----------------------------------------------+
+---------------+-----------------------------------------------+
| meeting_name | closing_date, coference_code, country, date, |
| meeting_name | closing_date, coference_code, country, date, |
| | location, opening_date, year |
| | location, opening_date, year |
| meeting
| recid, url |
| meeting
_note
| recid, url |
+---------------+-----------------------------------------------+
+---------------+-----------------------------------------------+
"""
"""
...
@@ -64,7 +64,7 @@ class RecordConf(RecordPubli):
...
@@ -64,7 +64,7 @@ class RecordConf(RecordPubli):
int:
int:
"""
"""
return
self
[
u
"meeting"
][
u
"recid"
]
return
self
[
u
"meeting
_note
"
][
u
"recid"
]
def
conference_key
(
self
):
def
conference_key
(
self
):
"""The conference key used in the store.
"""The conference key used in the store.
...
@@ -144,7 +144,7 @@ class RecordConf(RecordPubli):
...
@@ -144,7 +144,7 @@ class RecordConf(RecordPubli):
is not defined.
is not defined.
"""
"""
return
self
[
u
"meeting"
][
u
"url"
]
return
self
[
u
"meeting
_note
"
][
u
"url"
]
def
conference_year
(
self
):
def
conference_year
(
self
):
"""The year of the conference.
"""The year of the conference.
...
...
tests/basis/test_05_RecordConf.py
View file @
d94fe829
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""test_05_RecordConf
"""test_05_RecordConf
Test
all
methods of the RecordConf class for
a given proceeding
:
Test
specific
methods of the RecordConf class for
:
:
http://cds.cern.ch/record/1411352.
http://cds.cern.ch/record/1411352.
(same as http://inspirehep.net/record/1089237)
(same as http://inspirehep.net/record/1089237)
...
...
tests/basis/test_06_RecordThesis.py
View file @
d94fe829
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""test_06_RecordThesis
"""test_06_RecordThesis
Test
all
methods of the RecordThesis class for
a given proceeding
:
Test
specific
methods of the RecordThesis class for
:
:
http://cds.cern.ch/record/1632177
http://cds.cern.ch/record/1632177
...
...
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