2017 © Pedro Peláez
 

drupal-module drupal-media-mediahaven

A Drupal module to integrate MediaHaven with the Media module

image

zeticon/drupal-media-mediahaven

A Drupal module to integrate MediaHaven with the Media module

  • Tuesday, September 26, 2017
  • by nvercamm
  • Repository
  • 4 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 5 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

DISCLAIMER

This module is no longer actively supported by Zeticon. The latest version of the module is compatible with MediaHaven version 15.1, Zeticon no longer guarantees compatibility with later versions of the MediaHaven platform. You are free to use the code as a guideline for your integration implementations. The latest documentation of the API can be found at MediaHaven API documentation., (*1)

drupal-media-mediahaven

This configuration guide is based on the standard drupal installation, the current version of drupal is 7.25. Any issues can be reported to [github] (https://github.com/Zeticon/drupal-media-mediahaven/issues)., (*2)

For more information please visit www.zeticon.com or contact us at info@zeticon.com, (*3)

Server Requirements

Curl must be installed and enabled to run the Mediahaven plugin, (*4)

Install the media_mediahaven module

Download the latest release and copy the mediahaven module to "sites/all/modules" and rename the folder to "media_mediahaven" if necessary or rename the zip file to "media_mediahaven" before uploading., (*5)

Required Modules

Upload the following required modules into the folder "sites/all/modules", some modules require additional modules to operate! * [Media 2.x] (https://drupal.org/project/media) * File_entity * Views * Ctools * Styles * Plupload, (*6)

Go to the "Modules" panel in your admin view and enable the listed modules., (*7)

Required Library

Additionally to the module "plupload", the plupload library is required. Download the plupload package from: www.plupload.com/download. It is important to note that the current php plupload module does not work with the 2+ version of the library. You will need to download version 1.5.x., (*8)

Create a new folder "libraries" under "sites/all/" and upload the plupload package to this folder and extract it there. Rename the extracted folder to 'plupload', so you have a folder structure: "sites/all/libraries/plupload"., (*9)

Mediahaven Configuration Settings

MediaHaven API

MediaHaven login: The login to be used by the module to communicate with MediaHaven.
MediaHaven password: The password to be used by the module to communicate with MediaHaven.
MediaHaven url: The MediaHaven url., (*10)

MediaHaven Upload settings

Ingestspace id: The MediaHaven ingestspace that will be used to upload files to.
Auto publish: When enabled files will be automatically published after processing. If disabled a user will have to manually publish them using the mediahaven media management software.
Department id: The default department where uploaded files will belong to. This will be used when autopublishing is enabled., (*11)

MediaHaven Thumbnail settings

Thumbnail width: Width of the thumbnails (in pixels), standard is 150px
Thumbnail height: Height of the thumbnails (in pixels), standard is 150px, (*12)

These settings require a Mediahaven account, for more information please visit www.zeticon.com, (*13)


Configure a Media File Selector

Linking media items to a node requires the configuration of a Media Selector Field for mediahaven., (*14)

Select "Structure" > "Content Types" from the main menu, followed by the operation "manage fields" for the preferred content type., (*15)

Create a new field by entering a field name of your choice (eg 'Mediahaven Image'), select the field type "Multimedia Asset" (preferred) or "File". Set the widget to "Media File Selector" and confirm by subsequently clicking the "Save"-button and "Save Field"-button., (*16)

To complete the setup configure the following settings: *enable "Mediahaven" in the enabled browser plugins, *enable alle desired file types in Allowed remote media types *select "mediahaven:// (MediaHaven media)" in Allowed URI schemes, (*17)

When editing a node of the content type, a Media Selector Field should be available., (*18)


WYSIWYG

ckeditor

https://drupal.org/comment/6814058#comment-6814058, (*19)

Media Browser

To enable MediaHaven file selection form within the media browser * go to "configuration/media browser settings" and check MediaHaven., (*20)

Ajax callbacks in the media overlay cause the active tab to switch tab unexpectedly

This is a known issue and can be fixed with this patch: https://drupal.org/node/1802026, (*21)


Usage of the module

In order to include media from Mediahaven into Drupal, go to Content and click the link "Add Media from Mediahaven". Enter a search term and/or click any of the provided facets. Select an by clicking on the image. A confirmation "Successfully added media" will be shown and the media file will be available for usage under the "Files" tab., (*22)

Test environment

The module and the rest-api webservices can be tested against an integration platform: https://integration.mediahaven.com . This setup will be reset every day at 6am CET, so keep in mind that your data will be lost and that the environment will be unavailable during 10 to 15 minutes., (*23)

Following configuration settings can be used: * url: https://integration.mediahaven.com/ * login: apikey
* password: apikey * ingestspace_id : 5ebefe86-279c-4e19-857c-23ec0e975278 * department_id : cc6ea4c0-c7e9-44e3-906e-8b689d95c8f2, (*24)

The rest webservices url: https://integration.mediahaven.com/mediahaven-rest-api/, (*25)

The Versions

26/09 2017

dev-master

9999999-dev

A Drupal module to integrate MediaHaven with the Media module

  Sources   Download