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

README.md -> README.EN.md (via GTranslate) #170

Merged
merged 2 commits into from
Jul 20, 2023
Merged

README.md -> README.EN.md (via GTranslate) #170

merged 2 commits into from
Jul 20, 2023

Conversation

beyarkay
Copy link
Contributor

Hi There!

I saw there was a lot more content on the ZH readme than the english readme, so I used GTranslate to try translate it. I'm a native English speaker but don't know any chinese so it won't be perfect, but I think it's better than nothing 🤷.

@MuiseDestiny
Copy link
Owner

Thank you!!!

@MuiseDestiny MuiseDestiny merged commit 31b84dc into MuiseDestiny:bootstrap Jul 20, 2023
@beyarkay
Copy link
Contributor Author

Thank you! Loving the project.

Am I able to export a list of the references in plain text? Maybe add them to zotero's "Extra" field? I want to make a citation graph, but can't do that at the moment because I don't have the references in plain text.

If you can tell me which lines of code handle the citation fetching, I'm happy to look into adding this and submitting another PR.

@beyarkay beyarkay deleted the en-translation branch July 20, 2023 12:37
@MuiseDestiny
Copy link
Owner

MuiseDestiny commented Jul 20, 2023

Am I able to export a list of the references in plain text?

Current, double-click xx references: text will copy all the references in plain text.

code here:
https://github.com/MuiseDestiny/zotero-reference/blob/bootstrap/src/modules/views.ts#L528

const references = await this.utils.PDF.getReferences(reader, fromCurrentPage)

references like this:
[
{title: "xxx", authors: [xxx, xxx], year: 2018 ...},
{title: "xxx", authors: [xxx, xxx], year: 2017 ...},
{title: "xxx", authors: [xxx, xxx], year: 2016 ...}
]

@MuiseDestiny
Copy link
Owner

And I develop this:
https://github.com/MuiseDestiny/zotero-connected-papers like a a citation graph.

@beyarkay
Copy link
Contributor Author

Okay thanks! Is there a way to do this for multiple papers at once? I've got 300+ papers so going through each of them will take a while.

I saw zotero-connected-papers, but its closed source so I'm not sure if/how I can use it?

@MuiseDestiny
Copy link
Owner

MuiseDestiny commented Jul 20, 2023

I saw zotero-connected-papers, but its closed source so I'm not sure if/how I can use it?

I can send unzip code to your email.

Is there a way to do this for multiple papers at once

Plugin read PDFJS instance, it need a opened PDF. So it is diffcult if you want to call some function to get PDF's parsed references. Fortunately, you can get references by api of crossref and semantics. you can read this code to know how to send data and get data by api.

https://github.com/MuiseDestiny/zotero-reference/blob/bootstrap/src/modules/api.ts#L258

https://github.com/MuiseDestiny/zotero-reference/blob/bootstrap/src/modules/api.ts#L236C9-L236C36

In my experience, the plug-in parses the pdf to get the reference better than the api.

@beyarkay
Copy link
Contributor Author

Thanks for the unzip code! could you dm me on twitter (twitter.com/beyarkay)? I don't really want to leave my email on a public forum.

I managed to get a proof-of-concept working that will insert the DOIs of the references into the "extras" field, although I haven't tested it properly yet so it probably has some rough edges.

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.

2 participants