Project

General

Profile

Revision 7511

refactor using ezid-client changes that split field names and values into separate enums. http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5513

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
101 101
import edu.ucsb.nceas.ezid.EZIDException;
102 102
import edu.ucsb.nceas.ezid.EZIDService;
103 103
import edu.ucsb.nceas.ezid.profile.DataCiteProfile;
104
import edu.ucsb.nceas.ezid.profile.DataCiteProfileResourceTypeValues;
104 105
import edu.ucsb.nceas.ezid.profile.ErcMissingValueCode;
105 106
import edu.ucsb.nceas.ezid.profile.InternalProfile;
107
import edu.ucsb.nceas.ezid.profile.InternalProfileValues;
106 108
import edu.ucsb.nceas.metacat.DBQuery;
107 109
import edu.ucsb.nceas.metacat.EventLog;
108 110
import edu.ucsb.nceas.metacat.IdentifierManager;
......
1277 1279
			metadata.put(DataCiteProfile.CREATOR.toString(), ErcMissingValueCode.UNKNOWN.toString());
1278 1280
			metadata.put(DataCiteProfile.PUBLISHER.toString(), ErcMissingValueCode.UNKNOWN.toString());
1279 1281
			metadata.put(DataCiteProfile.PUBLICATION_YEAR.toString(), ErcMissingValueCode.UNKNOWN.toString());
1282
			metadata.put(InternalProfile.STATUS.toString(), InternalProfileValues.RESERVED.toString());
1283
			metadata.put(InternalProfile.EXPORT.toString(), InternalProfileValues.NO.toString());
1284

  
1280 1285
			try {
1281 1286
				// call the EZID service
1282 1287
				String ezidServiceBaseUrl = null;
......
1583 1588
				metadata.put(DataCiteProfile.CREATOR.toString(), sysMeta.getRightsHolder().getValue());
1584 1589
				metadata.put(DataCiteProfile.PUBLISHER.toString(), node.getName());
1585 1590
				metadata.put(DataCiteProfile.PUBLICATION_YEAR.toString(), year);
1591
				metadata.put(DataCiteProfile.RESOURCE_TYPE.toString(), DataCiteProfileResourceTypeValues.DATASET.toString() + "/" + sysMeta.getFormatId().getValue());
1586 1592
				metadata.put(InternalProfile.TARGET.toString(), node.getBaseURL() + "/v1/object/" + identifier);
1593
				metadata.put(InternalProfile.STATUS.toString(), InternalProfileValues.PUBLIC.toString());
1594
				metadata.put(InternalProfile.EXPORT.toString(), InternalProfileValues.YES.toString());
1587 1595
	
1588 1596
				// set using the API
1589 1597
				if (create) {

Also available in: Unified diff