Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Heinrich Widmann
md-ingestion
Commits
60cd7461
Commit
60cd7461
authored
Feb 13, 2018
by
Heinrich Widmann
Browse files
Add contributers and
add missing imports
parent
21396df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
mapping.py
View file @
60cd7461
"""mapping.py - class for B2FIND mapping :
- Mapper maps harvested nad specific MD records onto B2FIND schema
Copyright (c) 2015 Heinrich Widmann (DKRZ)
Copyright (c) 2013 Heinrich Widmann (DKRZ)
Contributions by
2017 Claudia Martens
2014 Mikael Karlsson
2013 John Mrziglod (DKRZ)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
...
...
@@ -40,6 +44,12 @@ import iso639
from
collections
import
OrderedDict
PY2
=
sys
.
version_info
[
0
]
==
2
if
PY2
:
from
urllib2
import
urlopen
from
urllib2
import
HTTPError
,
URLError
else
:
from
urllib.request
import
urlopen
from
urllib.error
import
HTTPError
,
URLError
class
Mapper
(
object
):
...
...
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