Skip to content

Commit

Permalink
Add a future DOI for draft records
Browse files Browse the repository at this point in the history
  • Loading branch information
hevp committed Mar 26, 2020
1 parent d89f741 commit 92e3769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion b2share/modules/records/serializers/schemas/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def filter_internal(self, data):
if '_deposit' in data['metadata']:
if hasattr(g, 'record') and is_deposit(record.model):# and current_app.config['AUTOMATICALLY_ASSIGN_DOI']:
# add future DOI string
data['b2share'] = {'future_doi': generate_doi(data['metadata']['_deposit']['id']) }
data['metadata'].update({'future_doi': generate_doi(data['metadata']['_deposit']['id']) })

data['metadata']['owners'] = data['metadata']['_deposit']['owners']

Expand Down

0 comments on commit 92e3769

Please sign in to comment.