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

Make hypothes.is annotations on rendered pdfs more portable. #345

Open
felliott opened this issue Jul 24, 2018 · 0 comments
Open

Make hypothes.is annotations on rendered pdfs more portable. #345

felliott opened this issue Jul 24, 2018 · 0 comments

Comments

@felliott
Copy link
Member

Issue

Annotations added to preprints do not follow the file after downloading.

Cause

Annotations for PDFs are linked to two identifiers: the url of the file and a PDF-specific ID embedded in the file. MFR urls are quite complex and unstable and aren't suitable ids. PDF IDs might be stable for native pdfs (depending on the software used to generate them), but are not for docx files converted to pdfs. To make sure annotations stay linked to the preprints, we generate a stable identifier based on non-changing metadata and override the client to use that instead. The stable identifier is not written into the file. This ensures the stability of annotations on the preprints page at the cost of not following the downloaded file.

Possible solution

The OSF doesn't want to modify the user's uploaded file; that's not something we do anywhere else. Another possibility would be for hypothesis to add a third identifier for PDFs, so that we could link annotations by url, embedded id, AND file id.

References

See discussion on the hypothesis Slack here: https://hypothesis-open.slack.com/archives/C6Y375TT3/p1532362687000497

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