public class XSLTIngestionCrosswalk extends XSLTCrosswalk implements IngestionCrosswalk
See the XSLTCrosswalk superclass for details on configuration.
XSLTCrosswalkCONFIG_PREFIX, DIM_NS| Constructor and Description |
|---|
XSLTIngestionCrosswalk() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
getPluginNames() |
void |
ingest(Context context,
DSpaceObject dso,
org.jdom.Element root,
boolean createMissingMetadataFields)
Ingest a whole document.
|
void |
ingest(Context context,
DSpaceObject dso,
List<org.jdom.Element> metadata,
boolean createMissingMetadataFields)
Translate metadata with XSL stylesheet and ingest it.
|
static void |
ingestDIM(Context context,
DSpaceObject dso,
org.jdom.Element dim,
boolean createMissingMetadataFields)
Ingest a DIM metadata expression directly, without
translating some other format into DIM.
|
static void |
ingestDIM(Context context,
DSpaceObject dso,
List<org.jdom.Element> fields,
boolean createMissingMetadataFields) |
static void |
main(String[] argv)
Simple command-line rig for testing the DIM output of a stylesheet.
|
getTransformer, makeAliasesgetPluginInstanceName, setPluginInstanceNamepublic static String[] getPluginNames()
public void ingest(Context context, DSpaceObject dso, List<org.jdom.Element> metadata, boolean createMissingMetadataFields) throws CrosswalkException, IOException, SQLException, AuthorizeException
ingest in interface IngestionCrosswalkcreateMissingMetadataFields - whether to create missing fieldscontext - DSpace context.dso - DSpace Object (Item, Bitstream, etc) to which new metadata gets attached.metadata - List of XML Elements of metadataCrosswalkException - crosswalk errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic void ingest(Context context, DSpaceObject dso, org.jdom.Element root, boolean createMissingMetadataFields) throws CrosswalkException, IOException, SQLException, AuthorizeException
ingest in interface IngestionCrosswalkcreateMissingMetadataFields - whether to create missing fieldscontext - DSpace context.dso - DSpace Object (usually an Item) to which new metadata gets attached.root - root Element of metadata document.CrosswalkException - crosswalk errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic static void ingestDIM(Context context, DSpaceObject dso, org.jdom.Element dim, boolean createMissingMetadataFields) throws CrosswalkException, IOException, SQLException, AuthorizeException
dim element is expected to be be the root of
a DIM document.
Note that this is ONLY implemented for Item, Collection, and Community objects. Also only works for the "dc" metadata schema.
context - the contextdso - object into which to ingest metadatadim - root of a DIM expressioncreateMissingMetadataFields - whether to create missing fieldsCrosswalkException - crosswalk errorIOException - if IO errorSQLException - if database errorAuthorizeException - if authorization errorpublic static void ingestDIM(Context context, DSpaceObject dso, List<org.jdom.Element> fields, boolean createMissingMetadataFields) throws CrosswalkException, IOException, SQLException, AuthorizeException
Copyright © 2017 DuraSpace. All rights reserved.