Project

General

Profile

« Previous | Next » 

Revision 7121

only 2.1.0 EML docs for ORE generation right now...

View differences:

GenerateORE.java
54 54

  
55 55
        try {
56 56
        	// get only local ids for this server
57
            List<String> idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_0_0NAMESPACE, true, serverLocation);
58
            Collections.sort(idList);
59
            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
57
            List<String> idList = null;
60 58
            
61
            idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_0_1NAMESPACE, true, serverLocation);
62
            Collections.sort(idList);
63
            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
59
//            idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_0_0NAMESPACE, true, serverLocation);
60
//            Collections.sort(idList);
61
//            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
62
//            
63
//            idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_0_1NAMESPACE, true, serverLocation);
64
//            Collections.sort(idList);
65
//            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
64 66
            
65 67
            idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_1_0NAMESPACE, true, serverLocation);
66 68
            Collections.sort(idList);
67 69
            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
68 70
            
69
            idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_1_1NAMESPACE, true, serverLocation);
70
            Collections.sort(idList);
71
            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
71
//            idList = DBUtil.getAllDocidsByType(DocumentImpl.EML2_1_1NAMESPACE, true, serverLocation);
72
//            Collections.sort(idList);
73
//            SystemMetadataFactory.generateSystemMetadata(idList, includeOre, downloadData);
72 74
            
73 75
		} catch (Exception e) {
74 76
			String msg = "Problem generating missing system metadata: " + e.getMessage();

Also available in: Unified diff