DOI on Table of content page

@ctgraham Hello,

As suggested by you, I got someone having PHP experience, he is asking for some model code so as to fix the issue. Should I make him directly mail you (your email ID will be needed) or you will guide him via this forum. If via this forum, Pl guide. My developer will be following your posts in the thread.


Please point your developer to my previous post. That should give the information needed.

A full implementation could mirror the display of pubIds along the lines of the article page:

But if you are just interested in the DOI, simply a call to $article->getPubId('doi') should do.

In the next few days we will publish a plugin that shows the DOIs on Table of content.

Here is an example of the plugin in action:

As soon as we make it available for download we will update this thread to let you know.

Lepidus Tecnologia
Periódicos em Nuvens

1 Like


You can download the plugin on .

To install, access Journal Manager → System Plugins → Install A New Plugin and select the package downloaded from the link above.

Have a fun. :smile:

1 Like

Hi @abadan,

Excellent! Thanks for contributing.

Would you consider creating an independent github repository for this plugin? We’re managing a lot of our own plugins that way and it makes finding and discussing the latest version a lot easier.

Alec Smecher
Public Knowledge Project Team

Hello abadan. I am so interesting with this plugin. I have downloaded the plugin from the link above, and i have saved in my computer. the problem comes when i try to install it to the ojs. The error mesage said “Errors occurred processing this form:
Plugin was not successfully copied. This may be a permissions problem. Please make sure that the web server is able to write to the plugins directory (including subdirectories) but don’t forget to secure it again later”. Would you like to help me to solve this problem?
Thankyou very much.
Tarmizi Taher

@Tarmizi, see my response here:

Is the plugin compatible with ojs 3.x.x?

unfortunately not yet.

when I install new plugin show error:
“The tar command is not available. Please correctly configure it in your “”.”

Please help me.

See the discussions here:

and here:


what is Purpose “correct destination”?

It is needed for the plugin package to be extracted and the files copied at the correct destination

Every plugin has a specific type or classification. The plugins are segmented by type under the plugins folder. For example, the Quick Submit plugin is an “importexport” plugin, so it needs to live in in the plugins/importexport folder.

How can we show DOI of each article on Table of content page in OJS 3.1.1 ?

Hi, I successfully installed the same pluging in and enabled it but not working. No DOI is displaying on the table of content.

Any suggestion please!

Please submit the journal link to try to identify the issue, please.


Hi @esciencepress.

I have identified what is happening.

Our plugin looks for a OJS default DIV <div class="tocAuthors">.

See on line 58:
$split = preg_split('#(<div class="tocAuthors">.*?</div>)#s', $output, 2, PREG_SPLIT_DELIM_CAPTURE);

The template that you use has been modified, and does not present this DIV. You will need to adjust the template so that you can use it successfully in your journal. Or maybe adjust the plugin for the modified template.

Dear @abadan

Thank you so much for your response. I am not familiar with changing the plugin. Can you please mention changes I need to do to resolve this issue?


Unfortunately I do not have the knowledge. I sent you private message in case you want to hire a specialist to make the modifications.