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

Add utility functions: For bulk upload of zotero/bibsonomy entries and/or importing/writing of references #21

Open
gregorpirgie opened this issue Mar 21, 2023 · 3 comments
Labels
enhancement New feature or request question Further information is requested usability The issue /pr relates to a usability enhancement or bug

Comments

@gregorpirgie
Copy link
Contributor

Currently, you can only upload works from within apis-bibsonomy / your project either through the frontend forms or by writing your own custom script.

Also, you can only add references through the form or through a custom script.

Suggestion:

As these are common tasks in many projects, it would be helpful to have utility functions (or a class or classes) for those tasks, that you only need to pass your data.

@gregorpirgie gregorpirgie added enhancement New feature or request question Further information is requested usability The issue /pr relates to a usability enhancement or bug labels Mar 21, 2023
@gregorpirgie
Copy link
Contributor Author

gregorpirgie commented Mar 21, 2023

This current state is especially undesirably, because when saving references, you need to fill the "bibtex" field (a django TextField) in the Reference model with a json.dumps - string, that you need to build from a request to zotero, that contains an escaped sequence. This is obscure and hidden in the api_views.py - code. A utility function would/should handle this implementation detail in the background.

@gregorpirgie
Copy link
Contributor Author

gregorpirgie commented Mar 21, 2023

Maybe it would also be good to change the TextField that actually stores a json.dumps - string to a JsonField.

@gregorpirgie
Copy link
Contributor Author

I am also only familiar with the Zotero implementation of apis-bibsonomy, this might need special attention regarding how the apis-bibsonomy works with Zotero and Bibsonomy respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested usability The issue /pr relates to a usability enhancement or bug
Projects
None yet
Development

No branches or pull requests

1 participant