OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS 1 bug - Access to abstract of rejected articles

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

OJS 1 bug - Access to abstract of rejected articles

Postby ramon » Mon Sep 24, 2007 7:42 am

Alec et ali,

OJS 1 apparently has a bug (or is this how it's supposed to work?):

Rejected articles are accessible and indexed in search engines...

If a user knows the article ID, the abstract is visible via viewarticle.php?id=ARTICLE_ID, AND INDEXED by Google!!

Is there a way to prevent this?

examples:

http://www.ibict.br/cienciadainformacao ... php?id=956

http://www.eci.ufmg.br/pcionline/viewarticle.php?id=489
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil

Re: OJS 1 bug - Access to abstract of rejected articles

Postby asmecher » Mon Sep 24, 2007 9:45 am

Hi Ramón,

We're not maintaining OJS 1.x any longer -- but you should be able to correct this by finding the line in viewarticle.php that looks like:
Code: Select all
$articlequery = $db->query("SELECT * FROM tblarticles WHERE nArticleID = '$id'");
...and changing it to something like:
Code: Select all
$articlequery = $db->query("SELECT * FROM tblarticles WHERE nArticleID = '$id' AND bPublished = 1");
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: OJS 1 bug - Access to abstract of rejected articles

Postby ramon » Mon Sep 24, 2007 12:47 pm

Thanks Alec...

Very clean and simple... soon all journals should migrate to 2.x
ramon
 
Posts: 945
Joined: Wed Oct 15, 2003 6:15 am
Location: Brasí­lia/DF - Brasil


Return to OJS Technical Support

Who is online

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

cron