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.

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: 8316
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: 67
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: 8316
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: 139
Joined: Mon Mar 16, 2009 12:47 am
Location: Turkiye, İzmir

Previous

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests
http://pkp.sfu.ca/support/forum/viewtopic.php?p=45312
pkp.sfu.ca
crawl=CC-MAIN-2014-23
27232
application/http; msgtype=response
sha1:6OXNZZF7RIMIL7KRLYBQBV5B65UIG75N
<urn:uuid:3da55277-fbee-4853-9ffe-b2132dd4e81b>
2014-07-25T18:27:41Z
142.58.129.159
sha1:3UWPLZ4JNQCVMRU7BARNKEBITVS34N6E
<urn:uuid:4eae385f-6745-4176-8658-0353593ab762>
http://pkp.sfu.ca/support/forum/viewtopic.php?p=45312
length
response
<urn:uuid:dde3deed-af5f-45d0-95a1-f26a1d7747aa>
robots: classic
hostname: ip-10-33-131-23.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-23
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for July 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf