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

develop apha parser #840

Merged
merged 2 commits into from
Aug 27, 2024
Merged

Conversation

chaoyinYang
Copy link
Contributor

No description provided.

apha/parser.js Outdated
// https://pharmacylibrary.com/doi/epub/10.21019/9781582122861
result.rtype = 'BOOK';
result.mime = 'EPUB';
result.doi = `${match[1]}/${match[2]}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a valid DOI, I have tried it on https://www.doi.org
it looks more like a DOI prefix and an ISBN. match[2] as ISBN.
I don't get the impression that this platform offers the full DOI in its URLs. Unlucky.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @felixleo22
Sure. I removed the doi. Please check again.

apha/parser.js Outdated
// https://pharmacylibrary.com/doi/epdf/10.21019/9781582121444
result.rtype = 'BOOK';
result.mime = 'PDF';
result.doi = `${match[1]}/${match[2]}`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOI is not valid : match[2] as ISBN.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I removed doi.

@felixleo22
Copy link
Contributor

My bad, now these DOI are recognised by https://www.doi.org. I don't know why it wasn't valid at the time, perhaps I made a typing error. You can apply the old commit and I will merge this PR.

@felixleo22
Copy link
Contributor

I'm going to merge this PR, but I'm going to add the DOI to the parser, so don't forget to pull the repository to get my changes.

@felixleo22 felixleo22 merged commit 174d42d into ezpaarse-project:master Aug 27, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

3 participants