Revision 7382
Added by ben leinfelder over 12 years ago
src/edu/ucsb/nceas/metacat/replication/ReplicationService.java | ||
---|---|---|
614 | 614 |
// check if we had a guid -> docid mapping |
615 | 615 |
String docidNoRev = DocumentUtil.getDocIdFromAccessionNumber(docid); |
616 | 616 |
int rev = DocumentUtil.getRevisionFromAccessionNumber(docid); |
617 |
IdentifierManager.getInstance().getGUID(docid, rev); |
|
617 |
IdentifierManager.getInstance().getGUID(docidNoRev, rev);
|
|
618 | 618 |
// no need to create the mapping if we have it |
619 | 619 |
} catch (McdbDocNotFoundException mcdbe) { |
620 | 620 |
// create mapping if we don't |
... | ... | |
864 | 864 |
try { |
865 | 865 |
// check if we had a guid -> docid mapping |
866 | 866 |
String docidNoRev = DocumentUtil.getDocIdFromAccessionNumber(docid); |
867 |
int rev = DocumentUtil.getRevisionFromAccessionNumber(docidNoRev);
|
|
868 |
IdentifierManager.getInstance().getGUID(docid, rev); |
|
867 |
int rev = DocumentUtil.getRevisionFromAccessionNumber(docid); |
|
868 |
IdentifierManager.getInstance().getGUID(docidNoRev, rev);
|
|
869 | 869 |
// no need to create the mapping if we have it |
870 | 870 |
} catch (McdbDocNotFoundException mcdbe) { |
871 | 871 |
// create mapping if we don't |
Also available in: Unified diff
use correct docid format when checking for existing mappings.