Class MCRCrossrefUtil

java.lang.Object
org.mycore.pi.doi.crossref.MCRCrossrefUtil

public class MCRCrossrefUtil extends Object
Proivides Util functions for Crossref registration.
  • Constructor Details

    • MCRCrossrefUtil

      public MCRCrossrefUtil()
  • Method Details

    • insertBatchInformation

      public static void insertBatchInformation(@NotNull @NotNull Element headElement, @NotNull @NotNull String batchID, @NotNull @NotNull String timestamp, @NotNull @NotNull String depositorName, @NotNull @NotNull String depositorMail, @NotNull @NotNull String registrant)
      Inserts informations to the crossref head element.
      Parameters:
      headElement - existing head element
      batchID - Publisher generated ID that uniquely identifies the DOI submission batch. It will be used as a reference in error messages sent by the MDDB, and can be used for submission tracking. The publisher must insure that this number is unique for every submission to CrossRef.
      timestamp - Indicates version of a batch file instance or DOI. timestamp is used to uniquely identify batch files and DOI values when a DOI has been updated one or more times. timestamp is an integer representation of date and time that serves as a version number for the record that is being deposited. Because CrossRef uses it as a version number, the format need not follow any public standard and therefore the publisher can determine the internal format. The schema format is a double of at least 64 bits, insuring that a fully qualified date/time stamp of 19 digits can be submitted. When depositing data, CrossRef will check to see if a DOI has already been deposited for the specific doi value. If the newer data carries a time stamp value that is equal to or greater than the old data based on a strict numeric comparison, the new data will replace the old data. If the new data value is less than the old data value, the new data will not replace the old data. timestamp is optional in doi_data and required in head. The value from the head instance timestamp will be used for all instances of doi_data that do not include a timestamp element.
      depositorName - Name of the organization registering the DOIs. The name placed in this element should match the name under which a depositing organization has registered with CrossRef.
      depositorMail - e-mail address to which batch success and/or error messages are sent. It is recommended that this address be unique to a position within the organization submitting data (e.g. "doi@...") rather than unique to a person. In this way, the alias for delivery of this mail can be changed as responsibility for submission of DOI data within the organization changes from one person to another.
      registrant - The organization that owns the information being registered.
    • replaceDOIData

      public static void replaceDOIData(Element root, MCRThrowFunction<String,String,MCRPersistentIdentifierException> idDOIFunction, String baseURL) throws MCRPersistentIdentifierException
      Throws:
      MCRPersistentIdentifierException