add DOI to article template

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 12
Joined: Fri May 17, 2013 4:12 am
Location: Escola d'Administració Pública de Catalunya (EAPC)

add DOI to article template

Postby anagisbert » Mon Feb 03, 2014 1:31 am

Hi there!

I would like to display the DOI in the article template, between the author and the abstract information (DOI: xxxx) . example: ... .8030.01.9

Reading other topics, I know that I have to add {$article->getDOI()|escape} to \templates\article\article.tpl.

The problem is that I don't know how to program in PHP so I'd like to know how the exact instruction should be and I would copy it just after this part of the code: <div id="authorString"><em>{$article->getAuthorString()|escape}</em></div>
<br />

Thanks a lot for your help!!!


Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 am

Re: add DOI to article template

Postby JasonNugent » Mon Feb 03, 2014 7:17 am

Hi Ana,

You've pretty much figured out how to do it. Just add that string to the template file in the spot you want the DOI to appear. Have you tried it?


Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 3 guests