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

Expose attachments #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Expose attachments #99

wants to merge 4 commits into from

Conversation

wetneb
Copy link
Contributor

@wetneb wetneb commented Mar 24, 2019

This is the patch suggested by @noctux in #97. It would be a very useful addition to translation-server, I think.

@wetneb
Copy link
Contributor Author

wetneb commented Mar 24, 2019

Given the test output, I wonder if a better approach would be to embed the attachments as fields of the record, as originally stored in Zotero?

@noctux
Copy link

noctux commented Mar 26, 2019 via email

@wetneb
Copy link
Contributor Author

wetneb commented Apr 2, 2019

@dstillman any preference about the desired output for this? Would you merge this if we update the tests?

@noctux
Copy link

noctux commented Aug 28, 2019

Any updates on this?

@noctux
Copy link

noctux commented Dec 4, 2019

I've now adapted the tests and fixed one minor flaw in the current implementation (not all url-attachments actually have a title).
@wetneb: Could you pull the current state from my feature-attachment-urls branch and update this pull-request with it?
@dstillman: Would that be enough to get this merged? Or do you see any further problems with this PR?

noctux and others added 4 commits December 4, 2019 18:30
Generally, it is not useful to expose regular Zotero attachments via
the API. However, url attachments are an exception: url resources are
of use to the api user, as they help locating various linked online
artifacts that can be readily accessed (in contrast to other attachment
types residing within Zotero's store). Therefore, this commit exports
them as linked items into the API-response.
The previous commit introduced url attachments, which have to be
corretly handled/expected within the tests, which this commit rectifies.
@noctux
Copy link

noctux commented Dec 5, 2019

@wetneb Thanks!

@dbolser
Copy link

dbolser commented Mar 11, 2020

Any blockers here, or is this just pending a pull? e.g. why hasn't this been pulled?

Thansk

@noctux
Copy link

noctux commented Mar 12, 2020

Just out of curiosity: @dstillman: Any new input on this? Either a definite yes or no? Would it help to make this configurable (with a default to false) to make it more acceptable to publically hosted instances or something like that? Do you want changes to be made to the output format?

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

3 participants