General Purpose

Rosetta is packaged with many bundled plug-in implementations, all described in the Plug-in Management section of the Rosetta Configuration Guide.

This page provides information for users who wish to extend Rosetta functionality by developing additional implementations.

Plugin Methods

Rosetta supports two plugin methods:

Java Plugin: A Java code plug-in wrapped as a JAR file
Script Plugin: An executable shell script plug-in (wrapped in a JAR package). Scripting language should be specified using the Shebang line.

Please refer to the Interface section for each plug-in type to learn which method is supported for the respective plug-in.

Plugin Types

Name Type Module Examples
Access Rights ARPlugin Repository javadoc ORCID
Archive Decomposer DecomposerPlugin Preservation javadoc Unzip
Converter (Publishing) ConverterRegistryPlugin Repository javadoc XEpicur
Custom Fixity CustomFixityPlugin Repository javadoc Dummy
Field Validator FieldValidatorPlugin Repository javadoc Regex
File Comparison (5.1+) FileComparisonPlugin Preservation PSNR
Format Identifier FormatIdentificationPlugin Repository javadoc Dummy
Format Validator FormatValidationPlugin Preservation javadoc
Full Text Extractor FullTextExtractionPlugin Repository javadoc
Migration Tool MigrationToolPlugin Preservation PDF to JPG
Persistent Identifier PIGenerator Repository javadoc
Publisher (Publishing) PublisherRegistryPlugin Repository javadoc Custom NFS
Repository Task RepositoryTaskPlugin Repository javadoc DC Replace
Risk Extractor RiskExtractor javadoc DRMLINT
Start-up Check StartUpCheckPlugin Repository javadoc DiskSpace
Storage Handler StoragePlugin Repository javadoc Amazon S3
NFS in-place
NFS Pair-tree
Technical Metadata Extractor TechnicalMDExtractorPlugin Preservation javadoc
Technical Metadata Extractor and Format Validator MDExtractorPlugin Preservation javadoc Jpylyzer
Format Library Extractors
Viewer Pre-Processor VPPPlugin Delivery javadoc FilePath
Customized Jpeg
IA BookReader (with ALTO)
IA BookReader (no ALTO)
Virus Check VirusCheckPlugin Repository ClamAV
ClamAv (V2)

For a full functional description of each of the Plug-in types, please see the Rosetta Configuration Guide – Plug-in Management.

Error Handling


Developers can log errors to the server log using log4j or system.out.


In case of a script error (or an initiated exit with a return value other than 0) – the script’s echo messages will be printed to the log as an ERROR message in the following format:

Execution of  {script_full_path} failed: {echo_message}


Each plugin JAR file must contain a metadata XML file in the /PLUGIN-INF/ directory. The filename should contain ‘metadata’ and have an xml extension (e.g. metadata_myFirstPlugin.xml).

General Attributes

Attribute Description (values) Mandatory
pluginTypeName The plugin type (see above table). Yes
module The plugin module (see above table) Yes
displayName The name that will be displayed in the UI. Yes
className The Java full path class name. Yes (java plug-in only)
initParameters An x-form defining the plugin parameters and default parameter values (see table below). No
description A short description of the plugin. No
version The plugin version (double-precision floating-point format). Yes
materialType always ‘DIGITAL’. Yes
implType Plugin implementation type (script/java). Yes
contactPerson Contact Info (see table below). Yes

Example (script):

<pl:metadata-config xmlns:pl="" xmlns:xsi="">
      <fr:x_form xmlns:fr="http://com/exlibris/digitool/common/forms/xmlbeans" />
      <contact_info xmlns="" />

X-form Attributes

Attribute Description (values) Mandatory (default)
x_fields Parameter declaration Yes
x_field Parameter configuration Yes
label Parameter name in the UI Yes
ui_tool_tip Label tool-tip No
default_value A default value for the field No
mandatory Indication whether the parameter is mandatory (true/false) No (false)
x_logic_type String Yes
x_ui_type Determines the UI component type Yes
css_class Determines the CSS class of the field label No

Please see the x_form.xsd for more details.


<fr:x_form xmlns:fr="http://com/exlibris/digitool/common/forms/xmlbeans">
          <ui_tool_tip>record type</ui_tool_tip>
Make sure your plugin contains a method with the following signature:
Public void initParams(Map<String, String> initParams)
Retrieve the parameter values from the map by the field name and initialize the plugin members. For a field named ‘recordType’:
String recordType = initParams.get(“recordType”);

Contact Info Attributes

Attribute Description Mandatory
contactType A description of the administrative job No
firstName First name No
lastName Last name No
telephone1 Primary telephone number No
telephone2 Additional telephone number No
email E-mail address No
address1 Address No
address2 Address No
city City No
zipCode Zip No
country Country No


    <contact_info xmlns="">
      <address1>1 Agodat Hasport Hapoel</address1>
      <address2>Building 9</address2>

Deployment and Installation

To deploy the plug-in, copy the jar file to $op_dir/plugins/custom. The dps user should have rw permissions on your file. Rosetta will display the plug-in in the list of custom plug-ins available for installation. If you are installing a new plugin, there is no need to restart Rosetta. If you are upgrading an existing plugin a restart is necessary, and you must be sure to increment the plugin version (see above, ‘General Attributes’).