DOI in citation tools

Hi there,

we have a problem with BibTeX and RIS (formats for citations tools): They can’t handle DOIs, they do not show them. Is there a way to change this? Or maybe it’s a bug?

Kind regards
Daniela Wolf

Hi @UBWolf,

That would be a fairly small addition, and would certainly be useful. Do you mind sending in a pull request? You’d need to edit plugins/citationFormats/bibtex/citation.tpl and plugins/citationFormats/refMan/citation.tpl. To get the DOI from the article object, you’d use $article->getPubId('doi'); – see e.g. plugins/citationFormats/abnt/citation.tpl.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

thanks for your answer. What do you mean with “sending in a pull request”? I’ll certainly do it if I know what I have to do :smile:
Kind regards
Daniela

Hi @UBWolf,

We use git and github.com for our source code management (and also git for our hosting); it allows users of OJS to fork the code and make their own modifications, but also to send a modification back up to the official project. It’s the most common way for people to contribute code to the project.

Regards,
Alec Smecher
Public Knowledge Project Team