-
Notifications
You must be signed in to change notification settings - Fork 0
Story/cite 163 - We need a bulk upload for files. #24
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
base: develop
Are you sure you want to change the base?
Conversation
| HttpEntity<ArrayNode> data = new HttpEntity<ArrayNode>(jsonArray); | ||
|
|
||
| try { | ||
| return restTemplate.exchange(buildUri(url, false), HttpMethod.POST, data, ItemCreationResponse.class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should use the buildGroupUri method or is there a reason it is not used here?
|
|
||
| JsonNode dataAsJson = mapper.createObjectNode() | ||
| .put("name", collectionName) | ||
| .put("parentCollection", parentCollection); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if there is no parent collection? will this be null or should it just be omitted? the Zotero API documentation doesn't seem to say anything about that, have you tried it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested this, when there's parent collection, the new collection gets added as child to parent collection. Else the new collection is added directly to group. I have kept this because as there might be cases when parent collection is present.
| } | ||
|
|
||
| @Override | ||
| public ItemCreationResponse createCollection(String groupId, String collectionName, String parentCollection) throws ZoteroConnectionException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs javadoc (especially addressing my question below)
Guidelines for Pull Requests
If you haven't yet read our code review guidelines, please do so, You can find them here.
Please confirm the following by adding an x for each item (turn
[ ]into[x]).Please provide a brief description of your ticket
https://diging.atlassian.net/browse/CITE-163
We need a bulk upload for files.
...Put description here...
The user would create a BibText export that includes files via Zotero (Zotero -> export collection -> BibTex format with "include files" checked). They would then zip the folder that Zotero exports and upload it to Citesphere. Citesphere would send it to the Citesphere Importer component (via Kafka like the other imports) and the importer would then create references in the zotero group the user specifies for the import (like for the web of science import that has no files) and send the files to Giles for processing (similar to how Giles sends individual files to Giles for processing).
Anything else the reviewer needs to know?
... describe here ...