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
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.

Re: Display DOI on abstract view of articles

Postby asmecher » Tue Mar 18, 2014 11:18 am

Hi solty,

Depending on your workflow, citations may not automatically be linked -- as you've described.

Previously, the suggested workflow was to use the Citation Markup Assistant tool, configured in Journal Setup. However, we're no longer supporting that and it may require a fair amount of extra work so I'd suggest a work-around while we're completing our new XML workflow.

I would suggest using something like the regular expression suggested here:
http://stackoverflow.com/questions/4452 ... into-links

Applying that code to templates/article/article.tpl, where references are displayed:
Code: Select all
{iterate from=citationFactory item=citation}
     <p>{$citation->getRawCitation()|strip_unsafe_html}</p>
{/iterate}
...would look something like this...
Code: Select all
{iterate from=citationFactory item=citation}
     <p>{$citation->getRawCitation()|strip_unsafe_html|regex_replace:"/\b((https?):\/\/([-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|]*))\b/i":"<a href='$1' target='_blank'>$3</a>"}</p>
{/iterate}
Note that I have not tested this -- I've just taken the regular expression directly from the above link. Your mileage may vary.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Display DOI on abstract view of articles

Postby primozs » Tue Mar 18, 2014 12:43 pm

Hi Alec,

If I understand correctly you are saying that you are no longer supporting the Citation markup Assistant tool and changing it with something new. Is my understanding correct? When do you expect the new tool will be ready?

Regards, Primož
primozs
 
Posts: 89
Joined: Tue Feb 05, 2013 7:07 am

Re: Display DOI on abstract view of articles

Postby asmecher » Tue Mar 18, 2014 3:16 pm

Hi Primož,

We're working on a replacement that will make use of an automatic document transformation service, like what Lemon8-XML used to do, but with better results. The document parsing and transformation landscape has come a long way since Lemon8 and we hope a second try at this approach will get greater uptake.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Display DOI on abstract view of articles

Postby solty » Wed Mar 19, 2014 12:13 am

Hi Alec,
I will try as soon as possbile.
Best,
solty
 
Posts: 140
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Re: Display DOI on abstract view of articles

Postby vmarinj » Tue Mar 24, 2015 2:51 am

Hi,

I am trying to make active links in the references list so that users can click and go to the URL in the references (abstract page of the article).
I have tried to edit the article.tpl document but it did not work. Someone has tried it and made it work?
Do you have another suggestion to enable active links (not necessarily only DOI) in the references list?

Thank you very much.
vmarinj
 
Posts: 10
Joined: Mon Nov 10, 2014 8:07 am

Re: Display DOI on abstract view of articles

Postby asmecher » Tue Mar 24, 2015 8:03 am

Hi vmarinj,

What trouble are you having editing the template?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Display DOI on abstract view of articles

Postby vmarinj » Wed Mar 25, 2015 4:14 am

Hi Alex,

Thanks for your answer. I have changed the line above and the result was that URLs in the references disappeared...

Victoria
vmarinj
 
Posts: 10
Joined: Mon Nov 10, 2014 8:07 am

Re: Display DOI on abstract view of articles

Postby vmarinj » Mon Apr 13, 2015 11:34 am

Perhaps is it the code above wrong? How should I adapt it in my template?

Thanks.
vmarinj
 
Posts: 10
Joined: Mon Nov 10, 2014 8:07 am

Previous

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests