Project

General

Profile

« Previous | Next » 

Revision 7105

handle last group of ids (oops)

View differences:

src/edu/ucsb/nceas/metacat/admin/upgrade/dataone/GenerateSystemMetadata.java
147 147
            	toIndex++;
148 148
            	
149 149
            	// use scope.docid (without revision) to determine groups
150
            	if (prefix == null || !docid.startsWith(prefix)) {
150
            	// handle first document on its own, and a clause for the last document
151
            	if (prefix == null || !docid.startsWith(prefix) || toIndex == idList.size()) {
151 152
            		
152 153
            		// construct a sublist for this previous group of docids
153 154
					final List<String> subList = idList.subList(fromIndex, toIndex);

Also available in: Unified diff