OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



After 2.1 upgrade: "Home" TOC not working

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.

After 2.1 upgrade: "Home" TOC not working

Postby dewet » Thu Feb 16, 2006 12:50 am

After updating to 2.1, when I click on "HOME", I get a TOC link as follows:

http://www.safpj.co.za/index.php/safpj/ ... 26/showToc

This does not work; it just shows the same page again. However, clicking on "CURRENT" gives met a TOC link as follows, which works correctly:

http://www.safpj.co.za/index.php/safpj/ ... nt/showToc

Also, going in via "ARCHIVES", I get another working TOC link:

http://www.safpj.co.za/index.php/safpj/ ... 26/showToc

So it would seem that the link from the HOME-page must have "issue" instead of "index", but I am not quite sure where to start searching for that.
dewet
 
Posts: 3
Joined: Thu Feb 16, 2006 12:45 am

Postby asmecher » Thu Feb 16, 2006 10:31 am

Hi Dewet,

This is indeed a bug; see http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2077 for the bugzilla entry and a patch to correct the problem against OJS 2.1.0-1.

If you're not familiar with the patching process, here's how to correct the problem step by step:
  • Edit templates/issue/view.tpl
  • Find the line that looks like this (around line 15):
    Code: Select all
    <li><a href="{url op="view" path=$issueId|to_array:"showToc"}">{translate key="issue.toc"}</a></li>
  • Change it to:
    Code: Select all
    <li><a href="{url page="issue" op="view" path=$issueId|to_array:"showToc"}">{translate key="issue.toc"}</a></li>
    (The change is simply the addition of page="issue" to the URL generator.)
Regards,
Alec Smecher
Open Journal Systems Team
Last edited by asmecher on Wed Dec 13, 2006 12:21 pm, edited 1 time in total.
asmecher
 
Posts: 7698
Joined: Wed Aug 10, 2005 12:56 pm

Postby dewet » Sun Feb 19, 2006 11:22 pm

asmecher wrote:
  • Edit templates/issue/view.tpl
  • Find the line that looks like this (around line 15):


Alec, thanks -- works beautifully. You might also want to apply it on line 18, which is the coverpage image link.

Regards,
Dewet
dewet
 
Posts: 3
Joined: Thu Feb 16, 2006 12:45 am

Postby tneumann » Sun Apr 09, 2006 9:02 am

...and I just noticed that the Table of Contents link in the Reading Tools takes you back to the issue cover page, not to the TOC. But this is easy to correct by inserting the orange text into line 35 of templates/rt/rt.tpl:

Line 35
<p><a href="{url page="issue" op="view" path=$issue->getBestIssueId($journal)|to_array:"showToc"}" target="_parent" class="rtAction">{translate key="issue.toc"}</a></p>

Cheers,
Tim
tneumann
 
Posts: 8
Joined: Fri Oct 28, 2005 11:20 am

Postby asmecher » Mon Apr 10, 2006 9:40 am

Thanks, Tim; this will be part of the next incremental release of OJS.

Regards,
Alec Smecher
Open Journal Systems Team
asmecher
 
Posts: 7698
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

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

cron