Skip to main content

Addon to the APIS system. Allows to manage references via Bibsonomy.

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 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 = {
'url': 'http://url.at',
'user': 'username',
'API key': 'api_key',
'group': 'bibsonomy group'
}

Restart your server and you are good to go.


Usage
-----

- 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>



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apis-bibsonomy-0.2.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

apis_bibsonomy-0.2-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file apis-bibsonomy-0.2.tar.gz.

File metadata

  • Download URL: apis-bibsonomy-0.2.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for apis-bibsonomy-0.2.tar.gz
Algorithm Hash digest
SHA256 0ea266cb5b5105cb3b8d827e7547684182450441f77698ca819061e15769d61e
MD5 cf1ae65d1084807e84e4d117be0f58c8
BLAKE2b-256 462f94ff971b4ba849e002508c06a07363795ca04777423dc532b913188a0f5e

See more details on using hashes here.

File details

Details for the file apis_bibsonomy-0.2-py3-none-any.whl.

File metadata

  • Download URL: apis_bibsonomy-0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for apis_bibsonomy-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c6776c110f2d38d89c2b22b018852ebd0a45330c88b5d68cf6b8951d9b28e2f
MD5 303dd8598408638acf63e1ff2bd920cc
BLAKE2b-256 b2a5cd8784d4d87d729ae325955231109a1e1f6351d44d706a3bccf6f24d993f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page