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

Modification of OSF translator #3219

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UniqueClouds
Copy link

This is intended to address the issue#3188

I have made two modifications.

  1. Modify detectWeb function to ensure that OSF Projects are recognized as "Web Page" instead of "Journal Article."
  2. Modify scrape function to customize the citation information for OSF Projects.

This is intended to address the [issue#3188](zotero#3188)

I have made two modifications.
1. Modify `detectWeb` function to ensure that OSF Projects are recognized as "Web Page" instead of "Journal Article."
2. Modify `scrape` function to customize the citation information for OSF Projects.
Copy link
Contributor

@alex-ter alex-ter left a comment

Choose a reason for hiding this comment

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

For what it's worth, I think this PR will not achieve its stated goal. On the one hand, this translator doesn't really work for osf.io (none of the tests pass, too) - looks like there were significant layout changes and detectWeb() no longer detects anything; on the other hand, ironically, the Embedded Metadata translator kicks in instead on /preprint/ URLs, while the other URLs are handled by the generic webpage snapshot one - i.e., already doing exactly what you seem to want to achieve here.

I'd say this translator needs a complete overhaul (asyncification + adjustments for the layout changes at least) instead. If you're up to that, feel free to give it a try. If not, let me know and I can take a look.

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

Successfully merging this pull request may close these issues.

None yet

2 participants