OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



How to configure the Google Scholar Gateway Plugin

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

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

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

How to configure the Google Scholar Gateway Plugin

Postby faga » Fri Mar 09, 2007 6:14 am

Having enabled the Google Scholar Gateway Plugin, I see that the plugin requires the following information in settings:
1. Publisher Location and
2. Publisher Result Name

So far I have tried several options with negative results. The URL of the directory document (http://petroleumjournalsonline.com/jour ... olarPlugin.) does not fit within the Publisher Location field because it's too long.

Can someone advise?

Abraham Faga
faga
 
Posts: 11
Joined: Thu Mar 31, 2005 5:54 pm
Location: Beaumont, Alberta

Postby asmecher » Fri Mar 09, 2007 1:13 pm

Hi Abraham,

Here are the descriptions of these two fields according to Google:
  • Location: Location of the publisher. (OPTIONAL; no more than 32 chars.) Example: Wonderland, Kingdom of Oz
  • Publisher Result Name: Preferred name for use in Google Scholar. This name will appear in Google Scholar results for urls included in the metadata files. Please note that this name only appears if we are able to index the url for the given result. (OPTIONAL; no more than 24 chars) Example: Magical Realism

When using the Google Scholar plugin, please ensure that you have applied the patch to bugs #2415 and #2474 -- see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2415 and http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2474.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8609
Joined: Wed Aug 10, 2005 12:56 pm

Postby faga » Sat Mar 10, 2007 7:03 am

Thanks Alec: The two fixes seem to be the same - is this in error? Before and after applying the fix I continue to get the following error:
Fatal error: Call to a member function on a non-object in /home/*****/public_html/journals/plugins/gateways/googleScholar/GoogleScholarPlugin.inc.php on line 248

line 248 and onward are as follows:

XMLCustomWriter::createChildWithText($document, $articleMetaNode, 'volume', $issue->getVolume());
XMLCustomWriter::createChildWithText($document, $articleMetaNode, 'issue', $issue->getNumber());

$canonicalUriNode =& XMLCustomWriter::createElement($document, 'self-uri');
XMLCustomWriter::setAttribute($canonicalUriNode, 'xlink:href', Request::url(null, 'article', 'viewArticle', array($publishedArticle->getArticleId())));
XMLCustomWriter::appendChild($articleMetaNode, $canonicalUriNode);
foreach ($publishedArticle->getGalleys() as $galley) {
$galleyUriNode =& XMLCustomWriter::createElement($document, 'self-uri');
XMLCustomWriter::setAttribute($galleyUriNode, 'xlink:href', Request::url(null, 'article', 'view', array($publishedArticle->getArticleId(), $galley->getGalleyId())));
XMLCustomWriter::appendChild($articleMetaNode, $galleyUriNode);
}
}
faga
 
Posts: 11
Joined: Thu Mar 31, 2005 5:54 pm
Location: Beaumont, Alberta

Postby asmecher » Mon Mar 12, 2007 8:32 am

Hi Abraham,

I corrected the URL to the patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2474 (bug #2474); thanks for the heads-up.

Try the patch linked at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2696; if that doesn't solve the problem, you may have a database inconsistency, potentially arising from bugs in earlier versions of OJS 2.x. Run the following query in mysql:
Code: Select all
SELECT pa.article_id, pa.issue_id FROM published_articles pa LEFT JOIN issues i ON (pa.issue_id = i.issue_id) WHERE i.issue_id IS NULL;
If you get a result, it would explain the bug. I should be able to provide instructions for correcting it.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8609
Joined: Wed Aug 10, 2005 12:56 pm

Postby faga » Mon Mar 12, 2007 9:18 am

Alec: The error persisted after applying the patches. I then ran the SQL querry and got results back.

I guess you are right about the possibility of a database inconsistency. What to do?

Regards,
Abraham
faga
 
Posts: 11
Joined: Thu Mar 31, 2005 5:54 pm
Location: Beaumont, Alberta

Postby asmecher » Tue Mar 13, 2007 9:44 am

Hi Abraham,

Write down the article IDs for the results you got above (i.e. the first column of each row). For each of those, go into the article's Editing page and re-assign it to an issue. (You can get directly to an Editing page by entering the URL with the article ID, e.g: http://url/to/ojs2/index.php/myJournal/editor/submissionEditing/2)

If these articles are not supposed to be published, run this for each:
Code: Select all
DELETE FROM published_articles WHERE article_id = 154;
...replacing the 154 in this example with the article ID.

Please back up your database before running any of these queries on it.

Regards,
Alec Smecher
Open Journal Systems Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8609
Joined: Wed Aug 10, 2005 12:56 pm

Postby faga » Tue Mar 13, 2007 5:11 pm

Alec: That worked! Thanks a million.

Regards,
Abraham
faga
 
Posts: 11
Joined: Thu Mar 31, 2005 5:54 pm
Location: Beaumont, Alberta


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot] and 4 guests