Package org.cdlib.mrt.core
Class DC
java.lang.Object
org.cdlib.mrt.core.DC
retrieve data if type is a manifest
- Author:
- loy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
dataCite2dc
(String dataCite, LoggerInf logger) Convert DataCite format to standard dcstatic void
static LinkedHashList
Build a LinkedHashList containing DC values extracted from METSstatic void
getDCFromModsMets
(LinkedHashList<String, String> returnList, Document mets, LoggerInf logger) From a DOM METS containing MODS return list of DC valuesstatic void
Extract DC from METSstatic void
Extract DC from METSstatic String
getMetsMods
(Document mets, LoggerInf logger) Create a MODS xml extracting from METSstatic LinkedHashList<String,
String> From a string DC build list of DC valuesstatic boolean
static String
Convert a MODS XML into a DC XML Stringstatic String
Set a V3 name space in the MODS xml
-
Field Details
-
NAME
- See Also:
-
MESSAGE
- See Also:
-
DEBUG
protected static final boolean DEBUG- See Also:
-
-
Constructor Details
-
DC
protected DC()
-
-
Method Details
-
getDC
public static LinkedHashList getDC(Document metsDoc, int maxDMDSec, LoggerInf logger) throws TException Build a LinkedHashList containing DC values extracted from METS- Parameters:
metsDoc
- METS DocumentmaxDMDSec
- number of DMDSec elements allowed for processinglogger
- file logger- Returns:
- list of (repeating) DC values
- Throws:
TException
- process exception
-
isDC
- Throws:
TException
-
getMetsDC
public static void getMetsDC(LinkedHashList<String, String> returnList, Document mets, LoggerInf logger) throws TExceptionExtract DC from METS- Parameters:
mets
- METS recordlogger
- file logger- Throws:
TException
-
getMetsDC
public static void getMetsDC(LinkedHashList<String, String> returnList, NodeList list, LoggerInf logger) throws TExceptionExtract DC from METS- Parameters:
mets
- METS recordlogger
- file logger- Throws:
TException
-
getOAIDC
public static LinkedHashList<String,String> getOAIDC(LinkedHashList<String, String> returnList, String dc, LoggerInf logger) throws TExceptionFrom a string DC build list of DC values- Parameters:
dc
- String form of DClogger
- file Logger- Returns:
- list of dc values
- Throws:
TException
- process exception
-
getDCFromModsMets
public static void getDCFromModsMets(LinkedHashList<String, String> returnList, Document mets, LoggerInf logger) throws TExceptionFrom a DOM METS containing MODS return list of DC values- Parameters:
mets
- METS for MODS/DC extractionlogger
- file logger- Throws:
TException
-
getMetsMods
Create a MODS xml extracting from METS- Parameters:
mets
- METS DOMlogger
- file logger- Returns:
- MODS as XML String
- Throws:
TException
- process exception
-
dumpList
public static void dumpList(String header, Element root, String path, LoggerInf logger) throws TException - Throws:
TException
-
mods2dc
Convert a MODS XML into a DC XML String- Parameters:
mods
- MODS xml stringlogger
- file logger- Returns:
- OAI dc xml String
- Throws:
TException
- process exception
-
setModsNS
Set a V3 name space in the MODS xml- Parameters:
xml
- MODS xml that might not contain a name space- Returns:
- xml with V3 name space
- Throws:
TException
- process exception
-
dataCite2dc
Convert DataCite format to standard dc- Parameters:
dataCite
- DataCite metadatalogger
- file logger- Throws:
TException
- process exception
-