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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

apis_bibsonomy-0.2.1-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apis_bibsonomy-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 36.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a85da980f4bced4d20f309eece711332c302c1d66c5de96665ae03ea9bb49fd4
MD5 a8cfc958ff99e3d863dc9d992f4cd280
BLAKE2b-256 e246ced329f3d35f326f92864bb692fc0af048a0fabcb2bded534052807685c7

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