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

Improve default DOI extraction #13

Open
jesusbagpuss opened this issue Dec 1, 2023 · 0 comments
Open

Improve default DOI extraction #13

jesusbagpuss opened this issue Dec 1, 2023 · 0 comments
Assignees

Comments

@jesusbagpuss
Copy link
Contributor

If someone has entered a DOI resolver URL into the id_number field, the Altmetric badge will fail, as this:

# id_numbers that have 10. in them (rudimentary doi check)
if( $eprint->exists_and_set( "id_number" ) && ( $eprint->value( "id_number" ) =~ /\b10./ ) ){
return( "doi", $eprint->value( "id_number" ) );
}

will return the URL, not the DOI from the URL.

@jesusbagpuss jesusbagpuss self-assigned this Dec 1, 2023
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

1 participant