Class MODSDisseminationCrosswalk

java.lang.Object
org.dspace.core.SelfNamedPlugin
org.dspace.content.crosswalk.MODSDisseminationCrosswalk
All Implemented Interfaces:
DisseminationCrosswalk, NameAwarePlugin

public class MODSDisseminationCrosswalk extends SelfNamedPlugin implements DisseminationCrosswalk
Configurable MODS Crosswalk

This class supports multiple dissemination crosswalks from DSpace internal data to the MODS XML format (see http://www.loc.gov/standards/mods/.)

It registers multiple Plugin names, which it reads from the DSpace configuration as follows:

Configuration

Every key starting with "crosswalk.mods.properties." describes a MODS crosswalk. Everything after the last period is the plugin name, and the value is the pathname (relative to dspace.dir/config) of the crosswalk configuration file.

You can have two names point to the same crosswalk, just add two configuration entries with the same value, e.g.

    crosswalk.mods.properties.MODS = crosswalks/mods.properties
    crosswalk.mods.properties.default = crosswalks/mods.properties
 
The first line creates a plugin with the name "MODS" which is configured from the file dspace-dir/config/crosswalks/mods.properties.

Since there is significant overhead in reading the properties file to configure the crosswalk, and a crosswalk instance may be used any number of times, we recommend caching one instance of the crosswalk for each name and simply reusing those instances. The PluginService does this by default.

Author:
Larry Stone, Scott Phillips
  • Field Details

    • communityService

      protected final CommunityService communityService
    • collectionService

      protected final CollectionService collectionService
    • itemService

      protected final ItemService itemService
    • handleService

      protected final HandleService handleService
    • configurationService

      protected static final ConfigurationService configurationService
    • MODS_NS

      public static final org.jdom2.Namespace MODS_NS
      MODS namespace.
    • MODS_XSD

      public static final String MODS_XSD
      URL of MODS XML Schema
      See Also:
  • Constructor Details

    • MODSDisseminationCrosswalk

      public MODSDisseminationCrosswalk()
  • Method Details