Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
Merge a773b94 into c06efa4
Browse files Browse the repository at this point in the history
  • Loading branch information
Panos512 committed Oct 27, 2016
2 parents c06efa4 + a773b94 commit 6071546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion invenio_orcid/config.py
Expand Up @@ -36,7 +36,7 @@
ORCID_AUTHORS_SEARCH_CLASS = 'invenio_search:RecordsSearch'

ORCID_RECORDS_PID_TYPE = 'records'
ORCID_RECORDS_DOC_TYPE = 'records'
ORCID_RECORDS_DOC_TYPES = ['records', ]
ORCID_RECORDS_PID_FETCHER = 'recid_fetcher'

ORCID_WORK_TYPES = {}
Expand Down
4 changes: 2 additions & 2 deletions invenio_orcid/tasks.py
Expand Up @@ -101,8 +101,8 @@ def delete_from_orcid(sender, api=None):
def doc_type_should_be_sent_to_orcid(record):
"""Return ``True`` is a document type should be sent to ORCID."""
index, doc_type = schema_to_index(record['$schema'])
main_doc_type = current_app.config['ORCID_RECORDS_DOC_TYPE']
return doc_type == main_doc_type
pushable_doc_types = current_app.config['ORCID_RECORDS_DOC_TYPES']
return doc_type in pushable_doc_types


@shared_task(ignore_result=True)
Expand Down

0 comments on commit 6071546

Please sign in to comment.