Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pinar Alper
metadata-tools
Commits
6ed65759
Commit
6ed65759
authored
May 15, 2018
by
Pinar Alper
Browse files
Added extraction of source repository information
parent
ba354a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
metadata-tools/resources/elx-dataset.json
View file @
6ed65759
...
...
@@ -127,6 +127,9 @@
"source_project"
:
{
"type"
:
"string"
},
"source_repository"
:
{
"type"
:
"string"
},
"de_identification"
:
{
"type"
:
"string"
,
"enum"
:
[
...
...
tests/importxls/test_from_repo.py
View file @
6ed65759
...
...
@@ -30,7 +30,7 @@ class TestProjectsParser(TestCase):
dataset_data
[
'source_type'
]
=
'From_Repository'
dataset_data
[
'submission_id'
]
=
submission_id
dataset_data
[
'local_custodian'
]
=
get_value_list_from_row
(
sheet
,
2
)
dataset_data
[
'
title
'
]
=
sheet
[
5
,
2
]
dataset_data
[
'
source_repository
'
]
=
sheet
[
6
,
2
]
if
sheet
[
4
,
2
]:
dataset_data
[
'other_external_id'
]
=
sheet
[
4
,
2
]
...
...
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