Revision 4213
Added by daigle over 15 years ago
DocumentImpl.java | ||
---|---|---|
105 | 105 |
String eml201NameSpace = null; |
106 | 106 |
String eml200NameSpace = null; |
107 | 107 |
try { |
108 |
eml210NameSpace = PropertyService.getProperty("eml2_1_0namespace"); |
|
109 |
eml200NameSpace = PropertyService.getProperty("eml2_0_1namespace"); |
|
110 |
eml201NameSpace = PropertyService.getProperty("eml2_0_0namespace"); |
|
108 |
eml210NameSpace = PropertyService.getProperty("xml.eml2_1_0namespace");
|
|
109 |
eml200NameSpace = PropertyService.getProperty("xml.eml2_0_1namespace");
|
|
110 |
eml201NameSpace = PropertyService.getProperty("xml.eml2_0_0namespace");
|
|
111 | 111 |
} catch (PropertyNotFoundException pnfe) { |
112 | 112 |
System.err.println("Could not get property in static block: " |
113 | 113 |
+ pnfe.getMessage()); |
... | ... | |
2631 | 2631 |
PreparedStatement pstmt = null; |
2632 | 2632 |
String documenttype = getDocTypeFromDBForCurrentDocument(accnumber); |
2633 | 2633 |
try { |
2634 |
String packagedoctype = PropertyService.getProperty("packagedoctype"); |
|
2634 |
String packagedoctype = PropertyService.getProperty("xml.packagedoctype");
|
|
2635 | 2635 |
Vector packagedoctypes = new Vector(); |
2636 | 2636 |
packagedoctypes = MetaCatUtil.getOptionList(packagedoctype); |
2637 | 2637 |
String docIdWithoutRev = MetaCatUtil.getDocIdFromAccessionNumber(accnumber); |
... | ... | |
2661 | 2661 |
// if it is an access file |
2662 | 2662 |
else if (documenttype != null |
2663 | 2663 |
&& MetaCatUtil.getOptionList( |
2664 |
PropertyService.getProperty("accessdoctype")).contains( |
|
2664 |
PropertyService.getProperty("xml.accessdoctype")).contains(
|
|
2665 | 2665 |
documenttype)) { |
2666 | 2666 |
dbconn = DBConnectionPool.getDBConnection( |
2667 | 2667 |
"DocumentImpl.runRelationAndAccessHandeler"); |
... | ... | |
3032 | 3032 |
EntityResolver eresolver; |
3033 | 3033 |
DTDHandler dtdhandler; |
3034 | 3034 |
// Get an instance of the parser |
3035 |
String parserName = PropertyService.getProperty("saxparser"); |
|
3035 |
String parserName = PropertyService.getProperty("xml.saxparser");
|
|
3036 | 3036 |
parser = XMLReaderFactory.createXMLReader(parserName); |
3037 | 3037 |
if (ruleBase != null && ruleBase.equals(EML200)) { |
3038 | 3038 |
logMetacat.warn("Using eml 2.0.0 parser"); |
Also available in: Unified diff
qualify xml and eml properties with an xml. prefix