# DOI Plugin for OJS 2.4.8 display problems

**URL:** <https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950>\
**Category:** Software Support\
**Tags:** ojs2\
**Created:** [October 3, 2018, 8:07pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950 "2018-10-03T20:07:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sstapleton](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/sstapleton/32/9991_2.png) [@sstapleton](https://forum.pkp.sfu.ca/u/sstapleton)\
**Post date:** [October 3, 2018, 8:07pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/1 "2018-10-03T20:07:28Z")

</div>

We are configuring our first use of DOI settings in OJS 2.4.8 and encountered problems with the display of page numbers in the doi. We host a number of journals and will be configuring the DOI Suffix differently. We have a few questions (below). For this test journal, the settings for the doi suffix is: %j%v%p

1. why does “%20” display before each page number in the doi generated in OJS 2? How can we remove it?

2.how can we edit the default characters in the doi generated? For instance instead of “pp.” that precedes page numbers we prefer to have only the period (no letters) precede the page numbers. We want to add a period in between the journal abbreviation and the year or volume.

1. where do we define the custom terms for the doi? For instance, we want to use %x to represent Part(i), Part(iv) for one of our journals. I cannot find a place in DOI Settings or in Setup 4.3 to define “x”

Display problems: %20 appears in front of the actual page numbers, as in DOI: [http://dx.doi.org/10.32473/uft2000pp.%2014%20-%2018](http://dx.doi.org/10.32473/uft2000pp.%2014%20-%2018)

In the export of the XML, the doi appears correctly as in the screenshot below.

Thank you for advice!  
Suzanne

![DOI_Explort_XML_test](https://forum.pkp.sfu.ca/uploads/default/original/2X/6/6ea82bf51662303abeeab4d4ca91914e2feab902.jpeg)

---

<div class="post-metadata">

**Author:** ![primozs](https://forum.pkp.sfu.ca/letter_avatar/primozs/32/5_5575768a8748004e209b776fc1b2916d.png) [@primozs](https://forum.pkp.sfu.ca/u/primozs)\
**Post date:** [October 5, 2018, 11:10am UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/2 "2018-10-05T11:10:49Z")

</div>

Hi @sstapleton,

The %20 means ‘space’. That is configured in the CrossReff plugin settings - there you must have ‘space’ typed in the setting string. The same as other settings. If I recall correctly that is under Public Identifier Plugins.

Best regards, Primož

---

<div class="post-metadata">

**Author:** ![sstapleton](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/sstapleton/32/9991_2.png) [@sstapleton](https://forum.pkp.sfu.ca/u/sstapleton)\
**Post date:** [October 12, 2018, 8:03pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/3 "2018-10-12T20:03:41Z")

</div>

Hi Primozs,

We found a work-around by entering only the beginning page number of each article into the table of contents. Then the doi suffix assigned did not include any unwanted 'space" (%20). It seems that the hyphen in the page number range was causing the %20 to appear.

We also figured out that using Roman numerals for front matter excluded them from automatic doi assignment, which is good.

I’m still interested to learn from others with experience how/where to define the custom terms for the doi using %x.

Thanks,  
Suzanne

---

<div class="post-metadata">

**Author:** ![randtke](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/randtke/32/6532_2.png) [@randtke](https://forum.pkp.sfu.ca/u/randtke)\
**Post date:** [November 27, 2018, 1:55pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/4 "2018-11-27T13:55:24Z")

</div>

%20 is because of the space. %20 is not in any way related to the hyphen.

Best,

-Wilhelmina

---

<div class="post-metadata">

**Author:** ![randtke](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/randtke/32/6532_2.png) [@randtke](https://forum.pkp.sfu.ca/u/randtke)\
**Post date:** [November 27, 2018, 1:59pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/5 "2018-11-27T13:59:56Z")

</div>

I am also seeing that DOIs are still created when the page numbers are in roman numerals. Am I missing something?

Best,

-Wilhelmina

---

<div class="post-metadata">

**Author:** ![sstapleton](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/sstapleton/32/9991_2.png) [@sstapleton](https://forum.pkp.sfu.ca/u/sstapleton)\
**Post date:** [November 27, 2018, 2:29pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/6 "2018-11-27T14:29:18Z")

</div>

Wilhelmina,

I am working on several time-sensitive projects now, so I cannot look into this immediately. I will review our doi workflow that we developed in early October later this week. It would be great to learn that the problems we encountered then are resolved.

Suzanne

---

<div class="post-metadata">

**Author:** ![randtke](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/randtke/32/6532_2.png) [@randtke](https://forum.pkp.sfu.ca/u/randtke)\
**Post date:** [March 11, 2019, 8:51pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/7 "2019-03-11T20:51:38Z")

</div>

I’ve dug into this. Crossref’s requirements for DOI identifiers are listed at [Constructing your identifiers – Support Center](https://support.crossref.org/hc/en-us/articles/214669823) . One requirement is "Only use approved characters: “a-z”, “A-Z”, “0-9” and “-.\_;()/” "

OJS should normalize the DOI, when generating from article, issue, page numbers, and should remove characters that are not allowed by Crossref. The hyphen is allowed by Crossref, but the percent sign is not.

---

<div class="post-metadata">

**Author:** ![dios98](https://forum.pkp.sfu.ca/letter_avatar/dios98/32/5_5575768a8748004e209b776fc1b2916d.png) [@dios98](https://forum.pkp.sfu.ca/u/dios98)\
**Post date:** [January 7, 2021, 4:10am UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/8 "2021-01-07T04:10:03Z")

</div>

Hello, Randtake  
Can you help me please with a problem with DOI?  
 ![pnehlhnkloldfdcl](https://forum.pkp.sfu.ca/uploads/default/original/3X/0/2/02067b9f98f5504387e2614fc426e543eb05af27.png)

---

<div class="post-metadata">

**Author:** ![asmecher](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/asmecher/32/3_2.png) [@asmecher](https://forum.pkp.sfu.ca/u/asmecher)\
**Post date:** [January 7, 2021, 8:29pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/9 "2021-01-07T20:29:26Z")

</div>

Hi @dios98,

Please don’t post the same content multiple times; someone will respond to [your other post](https://forum.pkp.sfu.ca/t/al-colocar-el-doi-en-un-articulo-me-aparece-este-mensaje-o-solo-una-ventana-en-blanco/65092).

Regards,  
Alec Smecher  
Public Knowledge Project Team

---

<div class="post-metadata">

**Author:** ![randtke](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/randtke/32/6532_2.png) [@randtke](https://forum.pkp.sfu.ca/u/randtke)\
**Post date:** [January 7, 2021, 11:45pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/10 "2021-01-07T23:45:02Z")

</div>

dios98,

Your current problem is not related to this thread about allowed characters in DOIs. With the DOIs, I believe (this is from memory and I have not just now recreated) that what had happened was: OJS will generate a DOI based on information stored in OJS about the journal article. Crossref limits what characters are allowed in a DOI. Sometimes that information stored in OJS that is used to make the DOI will have a character that is not allowed in a DOI. When a not-allowed-in-Crossref-DOI character is in OJS in one of the fields that goes to make the DOI, then OJS will normalize it and not include that not-allowed-in-Crossref-DOI character. I do not believe that there was any error message. It just had seemed odd that the pattern for automatically making the DOIs sometimes removed characters, until we looked into it and saw that this was intentional and to meet Crossref’s requirements.

Anyway, your error looks to be totally unrelated. I hope you will make progress on the other thread.

Best,

-Wilhelmina Randtke

---

<div class="post-metadata">

**Author:** ![ijrer\_editor](https://forum.pkp.sfu.ca/user_avatar/forum.pkp.sfu.ca/ijrer_editor/32/15536_2.png) [@ijrer\_editor](https://forum.pkp.sfu.ca/u/ijrer_editor)\
**Post date:** [January 9, 2022, 5:50pm UTC](https://forum.pkp.sfu.ca/t/doi-plugin-for-ojs-2-4-8-display-problems/48950/11 "2022-01-09T17:50:34Z")

</div>

Why the following link does not work?  
10.20508/ijrer.v11i4.12115
