Skip to content

stopopol/b2share_v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B2Share

Drupal module that implements the b2share rest api B2Share Module for Drupal 7

Dependencies

•	curl installed on server

		available under https://curl.haxx.se/

Installation

•	Copy the b2share folder directly to your modules folder

•	Enable it under /modules/

Configuration

•	Configuration menu is located under admin/config/system/b2share

•	Enter your B2Share Access Token, which can be generated by 
creating a B2Share Account

•	Enter the B2Share base_url which the module 
should address, e.g. https://trng-b2share.eudat.eu

•	Enter the domain you want the data to be uploaded 
under in the menu located under admin/config/system/b2share/metadata

Usage

•	Creates new fieldtype called „B2Share Field“ 
with the widget „B2Share Widget“

•	Add a new field with the fieldtype „B2Share Field“ and 
the widget „B2Share Widget“ to a content type

•	This will enable a file upload/file modification interface

•	Fill in the metadata fields within the B2Share field/form

•	Hit "Deposit file on B2Share"

•	The formatter will just present the deposit URL at the 
moment and likely PID of the uploaded file in the future

Features

• 	Integrates with tokens

Tested with

•	Drupal 7.39

Technical documentation Adding a new fieldtype that is called b2share AJAX MUST be used, otherwise the buttons will always reload the page. No matter what. Before submitting a file you need to fill in name, date, author, … in DEIMS, which are going to be transmitted.

Format is a regular hyperlink to the data on b2share

About

rest api version 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published