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
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

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: 848
Joined: Tue Jan 10, 2006 6:20 am


Return to OJS Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests