Export Plugins

From MSpace

(Difference between revisions)
Jump to: navigation, search
(New page: == Core Plugins == The core mSpace export plugins can be found at: <pre>/export/plugins</pre> When an export is performed all plugins are loaded. If no match for the requested plugin is ...)
Line 1: Line 1:
 +
== Plugin Architecture ==
 +
Each plugin is a self contained folder which must contain two files:
 +
#plugin.php
 +
#plugin.xslt
 +
 +
=== plugin.php ===
 +
This is the configuration file for the export plugin
 +
 +
Example config file:
 +
 +
<source lang="php">
 +
<?php
 +
$plugin = array();
 +
$plugin['id'] = 'CSV';
 +
$plugin['header'] = "text/plain";
 +
$plugin['stripXML'] = true;
 +
?>
 +
</source>
 +
 +
=== plugin.xslt ===
 +
This is the XSLT template that is used to transform the output from the mSpace Server into the desired output format. The server output will be a [[slicegetitems]] request and as such the export plugin's have access to MetaDataConnections aswell as DirectConnections metadata.
 +
== Core Plugins ==
== Core Plugins ==
The core mSpace export plugins can be found at:
The core mSpace export plugins can be found at:

Revision as of 15:00, 24 November 2008

Contents

Plugin Architecture

Each plugin is a self contained folder which must contain two files:

  1. plugin.php
  2. plugin.xslt

plugin.php

This is the configuration file for the export plugin

Example config file:

<?php
	$plugin = array();
	$plugin['id']				= 'CSV';
	$plugin['header'] 	= "text/plain";
	$plugin['stripXML']	= true;
?>

plugin.xslt

This is the XSLT template that is used to transform the output from the mSpace Server into the desired output format. The server output will be a slicegetitems request and as such the export plugin's have access to MetaDataConnections aswell as DirectConnections metadata.

Core Plugins

The core mSpace export plugins can be found at:

/export/plugins

When an export is performed all plugins are loaded. If no match for the requested plugin is found then the export is unsuccesful.

Site Specific Plugins

Personal tools