Revision 5387
Added by berkley about 14 years ago
CrudService.java | ||
---|---|---|
223 | 223 |
for(int i=0; i<l.size(); i++) |
224 | 224 |
{ //for each id, add a system metadata doc |
225 | 225 |
String localId = l.get(i); |
226 |
System.out.println("Creating SystemMetadata for localId " + localId); |
|
226 |
//System.out.println("Creating SystemMetadata for localId " + localId);
|
|
227 | 227 |
//get the document |
228 | 228 |
try |
229 | 229 |
{ |
... | ... | |
449 | 449 |
params.put("returndoctype", new String[] {"http://dataone.org/service/types/SystemMetadata/0.1"}); |
450 | 450 |
params.put("qformat", new String[] {"xml"}); |
451 | 451 |
params.put("returnfield", new String[] {"size", "originMemberNode", |
452 |
"identifier", "objectFormat", "dateSysMetadataModified", "checksum", "@algorithm"}); |
|
452 |
"identifier", "objectFormat", "dateSysMetadataModified", "checksum", "checksum/@algorithm"});
|
|
453 | 453 |
params.put("anyfield", new String[] {"%"}); |
454 | 454 |
|
455 | 455 |
MetacatResultSet rs = handler.query(metacatUrl, params, sessionData.getUserName(), |
... | ... | |
510 | 510 |
ChecksumAlgorithm ca = ChecksumAlgorithm.convert(csalg); |
511 | 511 |
cs.setAlgorithm(ca); |
512 | 512 |
info.setChecksum(cs); |
513 |
//System.out.println("info.checksum: " + info.getChecksum().getValue()); |
|
513 | 514 |
info.setDateSysMetadataModified(dateSysMetadataModified); |
514 | 515 |
Identifier id = new Identifier(); |
515 | 516 |
id.setValue(d.getField("identifier")); |
Also available in: Unified diff
fixed bug in metacat that allowed attribute data to be appended to element data in returnfields