OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



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 http://forum.pkp.sfu.ca

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.

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: http://revistes.eapc.gencat.cat/index.p ... .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!!!

Ana
anagisbert
 
Posts: 12
Joined: Fri May 17, 2013 4:12 am
Location: Escola d'Administració Pública de Catalunya (EAPC)

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?

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


Return to OJS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests