Revision 4212
Added by daigle over 15 years ago
MetaCatServlet.java | ||
---|---|---|
221 | 221 |
// schema, which accidentily points to wrong version of |
222 | 222 |
// eml-resource.xsd. |
223 | 223 |
String correctedEML201Doc = PropertyService |
224 |
.getProperty("eml201_document_corrected");
|
|
224 |
.getProperty("document.eml201DocumentCorrected");
|
|
225 | 225 |
if (correctedEML201Doc != null && correctedEML201Doc.equals(FALSE)) { |
226 | 226 |
logMetacat.info("===Start to correct eml201 documents"); |
227 | 227 |
EML201DocumentCorrector correct = new EML201DocumentCorrector(); |
228 | 228 |
boolean success = correct.run(); |
229 | 229 |
if (success) { |
230 |
PropertyService.setProperty("eml201_document_corrected", TRUE);
|
|
230 |
PropertyService.setProperty("document.eml201DocumentCorrected", TRUE);
|
|
231 | 231 |
} |
232 | 232 |
logMetacat.info("====Finish to correct eml201 documents"); |
233 | 233 |
} |
... | ... | |
3654 | 3654 |
private static String appendRev(String docid) throws Exception { |
3655 | 3655 |
Logger logMetacat = Logger.getLogger(MetaCatServlet.class); |
3656 | 3656 |
String newAccNum = null; |
3657 |
String separator = PropertyService.getProperty("accNumSeparator"); |
|
3657 |
String separator = PropertyService.getProperty("document.accNumSeparator");
|
|
3658 | 3658 |
int firstIndex = docid.indexOf(separator); |
3659 | 3659 |
int lastIndex = docid.lastIndexOf(separator); |
3660 | 3660 |
if (firstIndex == lastIndex) { |
Also available in: Unified diff
Continue to qualify property names