Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-Crossref DOI Settings are available in manager to edit but seem to do nothing #876

Closed
hachacha opened this issue Feb 11, 2019 · 3 comments

Comments

@hachacha
Copy link
Contributor

hachacha commented Feb 11, 2019

Under all settings where you are able to change DOI-related things: DOI display prefix, suffix, DOI Pattern, Use Crossref DOIs all seem to do nothing other than retain the value that is entered and saved. In identifiers/logic.py all the settings that are being referenced are specific to crossref and these are being ignored or not used.

Confusing at this point but perhaps you want to reintroduce them when #871 is completed?

@ajrbyers
Copy link
Member

ajrbyers commented Feb 12, 2019

I’m not sure I follow you. identifiers/logic.py clearly uses settings from the Crossref page to determine the registration of Crossref identifiers.

For example under create_crossref_doi_identifier I can see:

doi_prefix = setting_handler.get_setting('Identifiers', 'crossref_prefix', article.journal)

Which is fetching the Crossref prefix for the journal....

@hachacha
Copy link
Contributor Author

Sorry the title of this issue was a bit unclear.
There are settings that make changes, yes, the crossref-specific settings variables are being used but not the other ones that appear to reference a non-specific DOI registrar:
doi_display_prefix
doi_pattern
and
doi_display_suffix are not referenced other than in the json defaults.

the use_crossref is being used but it's only being used to bounce out any requests to use something other than crossref.

if not use_crossref:
        logging.info("[DOI] Not using Crossref DOIs on this journal. Aborting registration.")
        return

@hachacha hachacha changed the title DOI Settings seem to do nothing Non-Crossref DOI Settings are available in manager to edit but seem to do nothing Feb 12, 2019
@ajrbyers
Copy link
Member

Right, I see what you're saying.

doi_pattern is used in identifiers.logic and the other two are not used as you say but we probably will use them when we re-write the Identifiers app to support other DOI registrars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants