You are viewing the PKP Support Forum | PKP Home Wiki

Taking Reading tools off just for abstracts

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.

Taking Reading tools off just for abstracts

Postby selahi » Thu Sep 20, 2007 1:49 am

Dear all,

I am trying to take Reading Tools off when a user is viewing abstract but not when actuall artcile is being viewed. I know I can disable RT but that doesn't serve my purpose because it disables the RT totally. I tried to look into templates but couldn't find where /article/view.tpl (which I think renders rt) is being called in /article/article.tpl (which shows the content)... so that I could remove this call or could develop another template without that call to show abstract.

Anyways I actually want to ask how to disable RT only for abstract not for full article view, through changing something in template or hanlder classes?
Best regards,

Posts: 31
Joined: Mon Nov 20, 2006 9:09 am

Re: Taking Reading tools off just for abstracts

Postby asmecher » Thu Sep 20, 2007 7:48 am

Hi Salman,

You'll need to modify pages/article/ArticleHandler.inc.php to accomplish this. Find the line in the "view" function that looks like:
Code: Select all
if (!$journalRt->getEnabled()) {
...and change it to...
Code: Select all
if (!$journalRt->getEnabled() || !$galley) {
Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Technical Support

Who is online

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