Bibsonomy/Zotero plugin for managing refernces in APIS framework
Project description
APIS Bibsonomy
APIS Bibsonomy is a small addon to the APIS system. It allows to store references in Bibsonomy instances and use these references in APIS. It is very generic and should work with most Django installations/projects.
Installation
-
Install the package:
pip install apis-bibsonomy
-
Add the package to your installed apps:
INSTALLED_APPS = [ ... 'apis_bibsonomy' ]
-
And migrate your DB:
python manage.py migrate
Configuration
APIS Bibsonomy needs an URL of the bibsonomy or zotero instance, a username, a API token and an (optional) collection to search in.
You need to add a configuration section to your APIS settings:
APIS_BIBSONOMY = [{
'type': 'bibsomomy', #or zotero
'url': 'http://url.at', #url of the bibsonomy instance or zotero.org
'user': 'username', #for zotero use the user id number found in settings
'API key': 'api_key',
'group': 'group'
}]
If you want the plugin to add the reference buttons to certain fields you need to add these fields to the config:
APIS_BIBSONOMY_FIELDS = ['name', 'first_name', 'profession']
Restart your server and you are good to go.
Usage
not needed if you are using standard APIS templates
- Include the base template somewhere in the header of your template:
{% include 'apis_bibsonomy/apis_bibsonomy_include.html' %}
- Load the templatetag:
{% load bibsonomy_templatetags %}
- Include the form somewhere in your template (set hidden=True if you intend to use buttons):
{% bibsonomy_form content_type='person' hidden=True %}
- And finally add html tags as anker element for the reference forms to your template (dont forget to set "bibsonomy-anker" as class):
<button class="bibsonomy-anker" data-bibs-contenttype="person" data-bibs-object_pk={{instance.pk}} data-bibs-attribute="Attribute name (optional)">Ref</button>
- If you want to batch add reference forms to attribute fields in a whole form add a hidden anker element. You need to additionally add the names of the form fields you want to have reference forms for to
data-bibs-form-elements=""
<button class="bibsonomy-anker-hidden" data-bibs-contenttype="person" data-bibs-object_pk={{instance.pk}} data-bibs-form-elements="first_name|name|gender|start_date_written|lat">Ref</button>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file apis_bibsonomy-0.9.1.tar.gz
.
File metadata
- Download URL: apis_bibsonomy-0.9.1.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1228a375d0a4ed649d11a38c1e1c16558caa4f8f8e6a23ace2f0d001f0130712 |
|
MD5 | f3d9844ea2bc8a93db59535dc9b7d4ab |
|
BLAKE2b-256 | 21850f34292373ec33729a16fa46717fc81d058dcfd84240813503bdd79bd829 |
File details
Details for the file apis_bibsonomy-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: apis_bibsonomy-0.9.1-py3-none-any.whl
- Upload date:
- Size: 49.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a440635035b136a9d86ec8ea0890981dcbfffc4e754b90b26caf993bd22791c |
|
MD5 | 28b419b42f623c692f93120eac197922 |
|
BLAKE2b-256 | 755a8d17b9308df761751581ac0f3431c0260eb294c3b98bc035856c1d6cbc1a |