Project

General

Profile

« Previous | Next » 

Revision 6912

-generate system meta for all docids, even those not originating on the server (replicas from the past)
-generate ORE docs and download remote data only for those documents that originated on this server being upgraded.
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5522

View differences:

GenerateSystemMetadata.java
44 44
	
45 45
    public boolean upgrade() throws AdminException {
46 46
        boolean success = true;
47
        // include ORE?
47
        
48
        // do not include ORE or data, but can generate SystemMetadata for ALL records
48 49
        boolean includeOre = false;
49 50
        boolean downloadData = false;
50

  
51
        int serverLocation = -1;
52
        
51 53
        try {
52
        	//get the list of ids with no SM
53
            //List<String> idList = IdentifierManager.getInstance().getLocalIdsWithNoSystemMetadata(true);
54
            List<String> idList = DBUtil.getAllDocidsByType(null, true);
54
        	// get list of ALL docids at ALL server locations
55
            List<String> idList = DBUtil.getAllDocidsByType(null, true, serverLocation);
55 56
            Collections.sort(idList);
56 57

  
57 58
            // generate based on this list

Also available in: Unified diff