Project

General

Profile

Revision 7503

disable EZID/DOI minting by default since we do not yet have a means of tracking minted DOIs and augmenting metadata for them when we actually receive the object in a subsequent create() or update() call. http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5753

View differences:

lib/metacat.properties
572 572

  
573 573
############# Global Identifiers Assignment Section ######################
574 574
guid.assignGUIDs=false
575
guid.enabled=false
575 576
guid.ezid.username=apitest
576 577
guid.ezid.password=apitest
577 578
guid.ezid.doishoulder.1=doi:10.5072/FK2
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
1236 1236
			String shoulder = null;
1237 1237
			String ezidUsername = null;
1238 1238
			String ezidPassword = null;
1239
			boolean doiEnabled = false;
1239 1240
			try {
1241
	            doiEnabled = new Boolean(PropertyService.getProperty("guid.enabled")).booleanValue();
1240 1242
				shoulder = PropertyService.getProperty("guid.ezid.doishoulder.1");
1241 1243
				ezidUsername = PropertyService.getProperty("guid.ezid.username");
1242 1244
				ezidPassword = PropertyService.getProperty("guid.ezid.password");
......
1244 1246
				throw new InvalidRequest("2193", "DOI shoulder is not configured at this node.");
1245 1247
			}
1246 1248
			
1249
			// only continue if we have the feature turned on
1250
			if (!doiEnabled) {
1251
				throw new InvalidRequest("2193", "DOI scheme is not enabled at this node.");
1252
			}
1253
			
1247 1254
			// TODO: enter metadata about this identifier?
1248 1255
			HashMap<String, String> metadata = null;
1249 1256
			try {

Also available in: Unified diff