About new DOI generation format in OJS 3.5+ and In multi-journal platforms, determining which journal a DOI belongs to

Describe the issue or problem
Hi PKP Team,
I hope this message finds you well. I wish you good work and thank you for your support.

As you know, OJS 3.5 introduced a new default DOI format.

In this format, a random text string of 8 characters is inserted immediately after the publisher’s DOI prefix.

I want to switch to default DOI generation format in the DOI settings tab.

When I select the default option in the DOI Format settings, new DOIs are successfully assigned to new books, or articles.

But, I couldn’t find a way to add the abbreviation for the journal or publisher in this format.

A DOI prefix also serves as a publisher prefix and can be used simultaneously in multiple journals and books through different suffixes.

This format omits the DOI suffix (which is generated using journal or press initials) and eliminates the possibility of distinguishing which DOI belongs to which journal.

So, how can I add a DOI suffix (journal or press initials) just before 8 characters random text to this format?

Or how can I add this random text (variable) to the end of a custom DOI format?

Best Regards,
Dr Uğur Koçak

Steps I took leading up to the issue

  1. Go to Dashboard
  2. Click on ‘Settings’ button on the left menu
  3. Go to Distribution submenu, click it, open Distribution Settings page and reach DOIs tab.
  4. Scroll down to ‘DOI Format setting and select Default’
  5. Save new settings.
  6. Click to DOIs button on the left navigation menu.
  7. Select an unpublished article, or book and assign DOI to this submission.
  8. See that, the newly assigned DOIs don’t inclued the DOI suffix

What application are you using?
OJS 3.5.0-x & OMP 3.5.0-x

Additional information

Today this is not possible, as the idea of the random prefix is to follow Crossref’s recommendation: Constructing your DOIs - Crossref

Having a fixed part goes in a different direction, so I imagine PKP doesn’t want to implement it.

It would be possible to have something different via plugin, but it is expensive.

If the suffix is ​​not completely random, probably using the submission ID to ensure unique DOI is the current best option. Even so, it requires care to ensure it does not repeat. For example, if there are several journals/publications, if there are DOIs in more than one OJS or generated outside the OJS, etc.

Dear @abadan

Thank you very much for taking the time to inform me about this.

I thought about it for a while and I viewed this situation as an attempt to somehow rectify serious mistakes made in the past.

I also couldn’t resist my curiosity and checked out the following resources.

DOI Handbook

The Digital Object Identifier: From Ad Hoc to National to International By Norman Paskin

Please don’t misunderstand me, my intention isn’t to start a debate, but this seems to me like just an attempt to rectify major mistakes made in the past.

When I first connected to the internet in 1996, web pages had “Netscape Navigator compatible” or “Internet Explorer compatible” written at the bottom. Many young people these days may never have even heard of Netscape Navigator. They are the AI ​​generation.

Because the Crossref page doesn’t have any update date. But there should be.

I agree with his statement on the matter;* While it may be tempting, using a pattern, such as a sequence, can cause problems. Services and tools that use DOIs may, for example, try to predict future DOIs that are not registered and may never be (more on opaque suffixes below). However, as someone who has used OJS for many years, I can say that this is a very useful feature for publishing houses.

I understand Crossref wants to have more say in this area by funding and interfering with the OJS DOI plugin, but the question I’m looking for an answer to is this:

There are many publishing houses that publish numerous journals. When the publishing rights of a journal are transferred to another publishing house, a distinctive variable is needed to find the old DOI records of that journal and prepare the updated DOI list.

Since I’m not a software developer, I can’t do an in-depth analysis of OJS code. Therefore, I need to use a DOI format to distinguish between DOI records belonging to different journals.

Best regards,
Dr Uğur Koçak

I understand your need.

A plugin that generates reports of registered DOIs per journal (or press in OMP, and server in OPS) sounds simple on the surface, but it actually requires a developer or someone who knows how to extract this data directly from the database—using a tool like Metabase, for example.

Regarding the chances of PKP adopting your request: they tend to prioritize features that are widely requested by the community or aligned with established standards (such as best practices recommended by Crossref, SciELO, or DOAJ). Every new feature has a development cost and increases the long-term maintenance burden as the software gets updated.

You will definitely increase your chances of getting a plugin or feature built if this turns out to be a more generalized demand among other users.

Hi,

Since the custom DOI format has been around since the very beginning of OJS/OMP 3.0 and is still in use, I hope no one will penalize me for using a random string of 8 alphanumeric characters instead of %m Monograph ID after DOIPrefix/%p Press Initials.

With my rusty PHP knowledge and the help of artificial intelligence, I was able to achieve the result with just a few line changes:

In OMP 3.4, edit file classes/doi/Repository.php

In order to to convert press/journal to lowercase using strtolower function, insert following code under the line namespace APP\doi;

use PKP\core\PKPString;

Find the lines responsible for creating a DOI for the given article/publication in Default suffix format and append the code that generates 8 alphanumeric character as shown below;

     * Create a DOI for the given publication
     */
    public function mintPublicationDoi(Publication $publication, Submission $submission, Context $context): int
    {
        if ($context->getData(Context::SETTING_DOI_SUFFIX_TYPE) === Repo::doi()::SUFFIX_DEFAULT) {
	/** For a single journal/press, I may insert a fixed string at the end of prefix */
     // $doiSuffix = 'contextInitials' . '.' . ($this->generateDefaultSuffix());

        // Generate the default suffix as you normally do
		$doiSuffix = $this->generateDefaultSuffix();

		// Fetch the journal initials (acronym) from the $context object
		$contextInitials = $context->getData('acronym', $context->getPrimaryLocale());
        
		// Convert the journal initials (acronym) to lowercase
        $contextInitials = PKPString::strtolower($contextInitials);

		// Prepend the initials (converted to lowercase) to the beginning of the suffix
		$doiSuffix = $contextInitials . '.' . $this->generateDefaultSuffix();
        
        } else {
            $doiSuffix = $this->generateSuffixPattern($publication, $context, $context->getData(Context::SETTING_DOI_SUFFIX_TYPE), $submission);
        }

        return $this->mintAndStoreDoi($context, $doiSuffix);
    }

    /**
     * Create a DOI for the given chapter
     */
    public function mintChapterDoi(Chapter $chapter, Submission $submission, Context $context): int
    {
        if ($context->getData(Context::SETTING_DOI_SUFFIX_TYPE) === Repo::doi()::SUFFIX_DEFAULT) {

	/** For a single journal/press, I may insert a fixed string at the end of prefix */
     // $doiSuffix = 'contextInitials' . '.' . ($this->generateDefaultSuffix());
     
        // Generate the default suffix as you normally do
		$doiSuffix = $this->generateDefaultSuffix();

		// Fetch the journal initials (acronym) from the $context object
		$contextInitials = $context->getData('acronym', $context->getPrimaryLocale());
        
        $contextInitials = PKPString::strtolower($contextInitials);

		// Prepend the initials (converted to lowercase) to the beginning of the suffix
		$doiSuffix = $contextInitials . '.' . $this->generateDefaultSuffix();
        
        } else {
            $doiSuffix = $this->generateSuffixPattern($chapter, $context, $context->getData(Context::SETTING_DOI_SUFFIX_TYPE), $submission, $chapter);
        }

        return $this->mintAndStoreDoi($context, $doiSuffix);
    }

So, I can insert a string consisting of 8 alphanumeric characters to the end of the DOI Prefix by using default doi format. In this way, we obtain a DOI suffix that is both unpredictable and distinguishable.
Regards,

@drugurkocak This sounds like an ingenious solution to the issue, though I do wonder about long-term sustainability as we move from version to version.

University of Kansas publishes 40+ journals on OJS. We are currently on OJS 3.4.0.10. I love the elegance of Crossref’s preferred default alphanumeric string for DOIs, but there is a problem for multi-journal publishing programs. If we use the default alphanumeric string for DOIs and it is reported to me that the DOI is not resolving, we have no way to identify which journal the DOI belongs to so that we can make sure it’s registered.

Given this problem, rather than use the default string, we’ve gone back to the old method of using the following:

*https://doi.org//*.v<volume#>i<issue#>.<submission#>**

This method also has its flaws, but at least I can fix a broken DOI.

Adding the journal abbreviation in front of the string would at least help narrow down the search for the unregistered DOI, even if it departs from Crossref’s suggested default configuration.

-- Marianne