OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Display DOI on abstract view of articles

OJS development discussion, enhancement requests, third-party patches and plug-ins.

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

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Display DOI on abstract view of articles

Postby vgabler » Tue Nov 09, 2010 1:53 pm

Hi,

Our System Administrator found a way to have the DOI display automatically above the title when viewing the abstract page of an article. Could this be included in a future release? I know it is fairly standard for scientific journals to display the DOI in this manner. His fix is pasted below:

In the directory templates/article:

*** article.tpl.orig Tue Nov 9 15:08:26 2010
--- article.tpl Tue Nov 9 15:13:32 2010
***************
*** 69,74 ****
--- 69,75 ----
<div id="articleCoverImage"><img src="{$coverPagePath|escape}{$coverPageFileName|escape}"{if $coverPageAltText != ''} alt="{$coverPageAltText|escape}"{else} alt="{translate key="article.coverPage.altText"}"{/if}{if $width} width="{$width|escape}"{/if}{if $height} height="{$height|escape}"{/if}/>
</div>
{/if}
+ {if $article->getDOI()}<div id="doi">doi:&nbsp;{$article->getDOI()|escape}</div>{/if}
{call_hook name="Templates::Article::Article::ArticleCoverImage"}
<div id="articleTitle"><h3>{$article->getLocalizedTitle()|strip_unsafe_html}</h3></div>
<div id="authorString"><em>{$article->getAuthorString()|escape}</em></div>


All best,

Vanessa Gabler
vgabler
 
Posts: 93
Joined: Thu Feb 18, 2010 1:22 pm

Re: Display DOI on abstract view of articles

Postby jmacgreg » Thu Nov 11, 2010 4:12 pm

Hi Vanessa,

It turns out this has already been requested -- so I've rescheduled to our current development release, so it should be added in the (relatively) near future. See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4194. Thank for the comments!

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Display DOI on abstract view of articles

Postby aleskl » Thu Jul 07, 2011 2:02 am

Is this now possible? To enable display of DOI on abstract page? I can edit the article.tpl, but if that is already possible via some setting, it would be great!
-Ales
aleskl
 
Posts: 105
Joined: Mon Apr 11, 2011 7:08 am

Re: Display DOI on abstract view of articles

Postby aleskl » Thu Jul 07, 2011 4:50 am

Thank you, I added the line in article.tpl, and I also added a DOI resolving link to it:
Code: Select all
{if $article->getDOI()}<div id="doi">doi:&nbsp;<a href="http://dx.doi.org/{$article->getDOI()|escape}">{$article->getDOI()|escape}</a></div>{/if}


In addition, I added the following into the theme CSS, to hide the line below the DOI link:
Code: Select all
#doi a {
   text-decoration: none;
}
aleskl
 
Posts: 105
Joined: Mon Apr 11, 2011 7:08 am

Re: Display DOI on abstract view of articles

Postby thebigaym » Sun Sep 18, 2011 2:35 pm

is this going to be added as an option for Journal Managers to implement? Our install is at 2.3.6. I updated our journal with the DOI, I reassigned all articles DOIs, and I even used the CrossRef export to submit an issue to CrossRef. But I'm not sure how to get the DOI to display in the abstract view.
thebigaym
 
Posts: 45
Joined: Thu Apr 09, 2009 8:25 am

Re: Display DOI on abstract view of articles

Postby jmacgreg » Wed Sep 21, 2011 3:30 pm

Hi thebigaym,

This has not yet been added to OJS, so you will have to manually edit the code as aleski suggests.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Display DOI on abstract view of articles

Postby ivolt » Tue Mar 05, 2013 7:56 am

I gather this is still not implemented? I find this quite surprising, as DOIs are very frequently used nowadays.
ivolt
 
Posts: 7
Joined: Tue Mar 05, 2013 7:55 am

Re: Display DOI on abstract view of articles

Postby solty » Tue Jan 07, 2014 11:42 am

Hi,
We use OJS 2.4.2.0.

I was obtained and setting DOI numbers.
Everything is normal except for DOI number position in the abstract page.
How do you get up from the bottom to top of the DOI number display.
http://www.neuroquantology.com/index.ph ... e/view/714

I want to place DOI number under the authors' names.
Does anyone have any advice?
My most sincere thanks,
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: Display DOI on abstract view of articles

Postby aleskl » Wed Jan 08, 2014 2:34 am

Hi solty,

edit /templates/article/article.tpl and move the following block of code (in my case lines 115-126) to the place you want:

Code: Select all
{foreach from=$pubIdPlugins item=pubIdPlugin}
   {if $issue->getPublished()}
      {assign var=pubId value=$pubIdPlugin->getPubId($pubObject)}
   {else}
      {assign var=pubId value=$pubIdPlugin->getPubId($pubObject, true)}{* Preview rather than assign a pubId *}
   {/if}
   {if $pubId}
      <br />
      <br />
      {$pubIdPlugin->getPubIdDisplayType()|escape}: {if $pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}<a id="pub-id::{$pubIdPlugin->getPubIdType()|escape}" href="{$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}">{$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}</a>{else}{$pubId|escape}{/if}
   {/if}
{/foreach}

You would probably move it after line 47 that displays the authors:
Code: Select all
   <div id="authorString"><em>{$article->getAuthorString()|escape}</em></div>

Regards,
Ales
aleskl
 
Posts: 105
Joined: Mon Apr 11, 2011 7:08 am

Re: Display DOI on abstract view of articles

Postby solty » Wed Jan 08, 2014 2:36 pm

Thank you Ales... :D :D
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: Display DOI on abstract view of articles

Postby solty » Sat Jan 18, 2014 1:18 am

Dear Ales,
Thank you very mcuh for your previous support.
I am not familiar php coding.
I want to change DOI numbers in the abstract page from long clickable link
DOI: http://dx.doi.org/10.14704/nq.2013.11.4.714

to
Clickable short link,only DOI number, like as sample
DOI: 10.14704/nq.2013.11.4.714

Could you suggest changes in the article.tpl code? How I can change?
Sincerely,
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: Display DOI on abstract view of articles

Postby aleskl » Mon Jan 20, 2014 3:01 am

Hi Solty!

The fix is easy, just replace the link text with {$pubId|escape}:
Code: Select all
      {$pubIdPlugin->getPubIdDisplayType()|escape}: {if $pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}<a id="pub-id::{$pubIdPlugin->getPubIdType()|escape}" href="{$pubIdPlugin->getResolvingURL($currentJournal->getId(), $pubId)|escape}">{$pubId|escape}</a>{else}{$pubId|escape}{/if}

Thanks for the idea, I used this for our journal too: http://www.ias-iss.org/ojs/IAS/article/view/1022

Cheers,
Ales
aleskl
 
Posts: 105
Joined: Mon Apr 11, 2011 7:08 am

Re: Display DOI on abstract view of articles

Postby solty » Mon Jan 20, 2014 5:31 am

Dear Ales,
Thank you very much for your fast response.
I think that this is good improvement.
I will aplly as soon as possible.
:D

Solty
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: Display DOI on abstract view of articles

Postby solty » Wed Jan 22, 2014 10:38 am

Thank you, worked fine! :D :D :D :D :D
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: Display DOI on abstract view of articles

Postby solty » Tue Mar 18, 2014 2:41 am

Hi,
I am finding our articles possible DOIs per references from this page:
http://www.crossref.org/SimpleTextQuery/

After find, all possible DOIs per reference, I am using copy-paste within the OJS>> Edit Metadata>>REFERENCES area.
But, all DOIs lost the clickable DOI links. I see only DOI link, but not clickable.
Is there any simple way create automatic clickable DOI links in the references area?
Sincerely,
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Next

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests