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

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: 940
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: 9062
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: 940
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: No registered users and 9 guests