diff --git a/SciPost_v1/settings/local_jorran.py b/SciPost_v1/settings/local_jorran.py index 677612094fb8295095ffc0a2e560a3041ad1c1b7..0ca80ebb49d60854a148e3619d6d79bae6e0d078 100644 --- a/SciPost_v1/settings/local_jorran.py +++ b/SciPost_v1/settings/local_jorran.py @@ -34,3 +34,4 @@ LOGGING['handlers']['scipost_file_doi']['filename'] = '/Users/jorranwit/Develop/ # Other CROSSREF_LOGIN_ID = get_secret("CROSSREF_LOGIN_ID") CROSSREF_LOGIN_PASSWORD = get_secret("CROSSREF_LOGIN_PASSWORD") +CROSSREF_DEPOSIT_EMAIL = 'jorrandewit@scipost.org' diff --git a/SciPost_v1/settings/production.py b/SciPost_v1/settings/production.py index c1592375415f1163635ac06b7d5ac8628cede44a..0b17f6fed8f94416e5f98d6117b838beda9c3820 100644 --- a/SciPost_v1/settings/production.py +++ b/SciPost_v1/settings/production.py @@ -37,6 +37,8 @@ SERVER_EMAIL = get_secret("SERVER_EMAIL") CROSSREF_LOGIN_ID = get_secret("CROSSREF_LOGIN_ID") CROSSREF_LOGIN_PASSWORD = get_secret("CROSSREF_LOGIN_PASSWORD") CROSSREF_DEBUG = False +CROSSREF_DEPOSIT_EMAIL = 'admin@scipost.org' + DOAJ_API_KEY = get_secret("DOAJ_API_KEY") HAYSTACK_CONNECTIONS['default']['PATH'] = '/home/scipost/webapps/scipost/SciPost_v1/whoosh_index' MAILCHIMP_API_USER = get_secret("MAILCHIMP_API_USER") diff --git a/journals/views.py b/journals/views.py index 7dce7f992d32953c48daaffb43fd07b129edaab3..de1aad618bf388baa280325c2d3740f682cb367e 100644 --- a/journals/views.py +++ b/journals/views.py @@ -553,7 +553,7 @@ def create_metadata_xml(request, doi_label): '<timestamp>' + timezone.now().strftime('%Y%m%d%H%M%S') + '</timestamp>\n' '<depositor>\n' '<depositor_name>scipost</depositor_name>\n' - '<email_address>admin@scipost.org</email_address>\n' + '<email_address>' + settings.CROSSREF_DEPOSIT_EMAIL + '</email_address>\n' '</depositor>\n' '<registrant>scipost</registrant>\n' '</head>\n' @@ -923,7 +923,7 @@ def harvest_citedby_links(request, doi_label): 'xsi:schemaLocation="http://www.crossref.org/qschema/2.0 ' 'http://www.crossref.org/qschema/crossref_query_input2.0.xsd">' '<head>' - '<email_address>admin@scipost.org</email_address>' + '<email_address>' + settings.CROSSREF_DEPOSIT_EMAIL + '</email_address>' '<doi_batch_id>' + str(doi_batch_id) + '</doi_batch_id>' '</head>' '<body>' @@ -1126,7 +1126,7 @@ def generic_metadata_xml_deposit(request, **kwargs): '<timestamp>' + timestamp + '</timestamp>\n' '<depositor>\n' '<depositor_name>scipost</depositor_name>\n' - '<email_address>admin@scipost.org</email_address>\n' + '<email_address>' + settings.CROSSREF_DEPOSIT_EMAIL + '</email_address>\n' '</depositor>\n' '<registrant>scipost</registrant>\n' '</head>\n'