package org.sagebionetworks.doi;

import org.sagebionetworks.StackConfiguration;

/**
 * Constants for EZID REST APIs.
 */
public class EzidConstants {

	/**
	 * DOI prefix plus the separator (/).
	 */
	public static final String DOI_PREFIX = StackConfiguration.getEzidDoiPrefix();

	/**
	 * Synapse web portal URL with protocol and host name. Path not included.
	 */
	public static final String TARGET_URL_PREFIX = StackConfiguration.getEzidTargetUrlPrefix() + "/#!Synapse:";

	/**
	 * Publisher is always Sage Bionetworks.
	 */
	public static final String PUBLISHER = "Sage Bionetworks";

	/**
	 * Publisher is always Sage Bionetworks.
	 */
	public static final String DEFAULT_CREATOR = "(author name not available)";

	/**
	 * Base URL for the EZID REST APIs.
	 */
	public static final String EZID_URL = StackConfiguration.getEzidUrl();

	/**
	 * EZID account user name.
	 */
	public static final String EZID_USERNAME = StackConfiguration.getEzidUsername();

	/**
	 * EZID account password.
	 */
	public static final String EZID_PASSWORD = StackConfiguration.getEzidPassword();
}

@@ -339,27 +339,41 @@
 name
-. Path not included
+ and the path prefix '#!Synapse:'
 .%0A%09 
@@ -485,32 +485,36 @@
 pse:%22;%0A%0A%09/**%0A%09 *
+ DOI
  Publisher is al
@@ -615,44 +615,93 @@
 %09 * 
-Publisher is always Sage Bionetworks
+Default DOI creator (author) when the corresponding information is missing in Synapse
 .%0A%09 
@@ -782,24 +782,24 @@
 le)%22;%0A%0A%09/**%0A
-
 %09 * Base URL
@@ -798,16 +798,42 @@
 Base URL
+ (with the trailing slash)
  for the

Fix incorrect documentation