You are viewing the PKP Support Forum | PKP Home Wiki

CrossCheck collect pdf on OJS

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

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.

CrossCheck collect pdf on OJS

Postby zwu96 » Tue Dec 13, 2011 8:48 pm


We are starting to use CrossCheck. As a precondition, we have to allow CrossCheck's crawler to collect our article's pdf file. And the crawler follows the URL in DOI (crossref xml) .
As you know, the URL in DOI (crossref xml) goes to the abstract page, not the PDF file. And then, crosscheck says their crawler can not catch the pdf file. How could I do?
This is the message from CrossCheck: "we need you to redirect our crawler from the DOI landing page (abstract) straight to the full text. Instructions for the various ways in which you can do this are on our indexing page: http://www.crossref.org/crosscheck_indexing.html "

Last edited by zwu96 on Fri Jan 04, 2013 1:01 pm, edited 1 time in total.
Posts: 25
Joined: Mon Jan 28, 2008 3:28 am

Re: CrossCheck collect pdf on OJS

Postby jmacgreg » Tue Dec 27, 2011 6:59 pm

Hi Wenwu Zhao,

Good question. We're currently in preliminary discussions with CrossRef about different ways we can better support each other, so chances are there will be a better way to do this in the future; but for the time being, you may want to try the following. If you could report back on how either of these modifications worked, we'd appreciate it.

You will have to edit templates/article/header.tpl. Below

Code: Select all
{include file="article/googlescholar.tpl"}

add the following code:

Code: Select all
{foreach from=$article->getGalleys() item=cc_galley}
   {if $cc_galley->getFileType()=="application/pdf"}
      <meta name="fulltext_pdf" content="{url page="article" op="download" path=$article->getBestArticleId($currentJournal)|to_array:$cc_galley->getBestGalleyId($currentJournal)}"/>
      <meta name="fulltext_html" content="{url page="article" op="view" path=$article->getBestArticleId($currentJournal)|to_array:$cc_galley->getBestGalleyId($currentJournal)}"/>

This should generate the

Code: Select all
<meta name="fulltext_html" content="http://www.foo.com/bar/article.html">
<meta name="fulltext_pdf" content="http://www.foo.com/bar/article.pdf">

links on all abstract and galley pages, which should suffice for the CrossCheck service. This could best be developed as a standalone CrossCheck plugin, which am happy to provide pointers for if there is enough interest. We will most likely do this at a later date as well, so keep posted.

Posts: 4191
Joined: Tue Feb 14, 2006 10:50 am

Re: CrossCheck collect pdf on OJS

Postby orcalator » Mon Feb 04, 2013 6:49 am

Are there any changes here or this is still a suggested way of doing it? Thx.


Posts: 3
Joined: Thu May 24, 2012 5:43 am

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest