Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
d067788e
Commit
d067788e
authored
11 years ago
by
Gigg, Martyn Anthony
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/feature/8354_add_names_to_doi'
parents
eed9b90e
db01998f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Tools/DOI/authors.py
+4
-0
4 additions, 0 deletions
Code/Tools/DOI/authors.py
Code/Tools/DOI/doi.py
+3
-2
3 additions, 2 deletions
Code/Tools/DOI/doi.py
with
7 additions
and
2 deletions
Code/Tools/DOI/authors.py
+
4
−
0
View file @
d067788e
...
...
@@ -19,6 +19,7 @@ _translations = {
'
Arturs Bekasovs
'
:
'
Bekasovs, Arturs
'
,
'
Jean Bilheux
'
:
'
Bilheux, Jean
'
,
'
JeanBilheux
'
:
'
Bilheux, Jean
'
,
'
Bilheux
'
:
'
Bilheux, Jean
'
,
'
Jose Borreguero
'
:
'
Borreguero, Jose
'
,
'
Keith Brown
'
:
'
Brown, Keith
'
,
'
Alex Buts
'
:
'
Buts, Alex
'
,
...
...
@@ -36,7 +37,9 @@ _translations = {
'
Martyn Gigg
'
:
'
Gigg, Martyn A.
'
,
'
Samuel Jackson
'
:
'
Jackson, Samuel
'
,
'
Dereck Kachere
'
:
'
Kachere, Dereck
'
,
'
Mark Koennecke
'
:
'
Koennecke, Mark
'
,
'
Ricardo Leal
'
:
'
Leal, Ricardo
'
,
'
Christophe Le Bourlot
'
:
'
Le Bourlot, Christophe
'
,
'
VickieLynch
'
:
'
Lynch, Vickie
'
,
'
Vickie Lynch
'
:
'
Lynch, Vickie
'
,
'
Pascal Manuel
'
:
'
Manuel, Pascal
'
,
...
...
@@ -60,6 +63,7 @@ _translations = {
'
AndreiSavici
'
:
'
Savici, Andrei
'
,
'
Andrei Savici
'
:
'
Savici, Andrei
'
,
'
Russell Taylor
'
:
'
Taylor, Russell J.
'
,
'
Mike Thomas
'
:
'
Thomas, Mike
'
,
'
Roman Tolchenov
'
:
'
Tolchenov, Roman
'
,
'
Robert Whitley
'
:
'
Whitley, Robert
'
,
'
Michael Whitty
'
:
'
Whitty, Michael
'
,
...
...
This diff is collapsed.
Click to expand it.
Code/Tools/DOI/doi.py
+
3
−
2
View file @
d067788e
...
...
@@ -149,7 +149,8 @@ def build_xml_form(doi, relationships, creator_name_list, version_str):
# "The version number of the resource." Suggested practice is to "register
# a new identifier for a major version change." We'll be ignoring this
# as we're having a new DOI for every major/minor/patch release.
ET
.
SubElement
(
root
,
'
version
'
).
text
=
version_str
if
version_str
:
ET
.
SubElement
(
root
,
'
version
'
).
text
=
version_str
# "Identifiers of related resources. These must be globally unique
# identifiers."
...
...
@@ -383,7 +384,7 @@ def run(options):
# In the case of the main DOI we need to add the whitelisted names too.
creator_name_list
=
sorted
(
set
(
creator_name_list
+
authors
.
whitelist
))
xml_form
=
build_xml_form
(
doi
,
{},
creator_name_list
,
version_str
)
xml_form
=
build_xml_form
(
doi
,
{},
creator_name_list
,
None
)
create_or_update_metadata
(
xml_form
,
server_url_base
,
doi
,
options
)
create_or_update_doi
(
server_url_base
,
doi
,
destination
,
options
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment