Extension Basket


Extension Basics

Title
Basket
Name
ckanext-basket
Type
Public extension
Description
The **Basket** extension for CKAN provides users with the ability to create and manage lists of dat
CKAN versions
Download-Url (zip)
Last commit
7 years ago (2018-11-21 11:17:27)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

ckanext-basket

This plugin allows users to create baskets. Users can create baskets to memorize and group datasets of special importance. Furthermore, user can download their basket data easily.

Baskets

Create Basket

Show Basket

Edit Basket

Basket symbol in the header:

Header Basket

API functions

You must be logged in in order to use any basket api function.

basket_create(context, data_dict)

Create a new basket. Normal users can only create baskets for themselves, thus Parameter “user_id” will be ignored.

Parameters: * user_id (string) - The id of the user to create the basket for (only admin) * name (string) - The name of the basket * description (string) - Description of the basket * element_type (string) - The type of the basket elements (e.g. package, resource, subset) (optional)

Returns: the newly created basket.

Return type: dictionary

basket_update(context, data_dict)

Update a basket. You can only update your own basket.

For further parameters see basket_create().

Parameters: * id (string) - The id of the basket

Returns: the updated basket.

Return type: dictionary

basket_purge(context, data_dict)

Purge a basket. You can only purge your own basket.

Parameters: * id (string) - The id of the basket

Returns: /

basket_list(context, data_dict)

List all baskets for user. Only sysadmins can see other baskets, everyone else can only list his/her own baskets.

Parameters: * user_id (string) - The id of the user for whom to list the baskets (only admin)

Returns: a user’s baskets.

Return type list of dicts

basket_show(context, data_dict)

Show basket with or without its elements. You are only allowed to do a basket_show of your own basket.

Parameters: * id (string)

Version
Version release date
(not set)
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
basket
CKAN Settings (ckan.ini)
# ckanext.basket.some_setting = some_default_value
DB migration to be executed
(not set)
<< back to Extensions