OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Breadcrumbs doesn't show journal title

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.

Breadcrumbs doesn't show journal title

Postby jacquehdeza » Tue Jul 15, 2014 7:24 am

Hello

i'm having problems with breadcrumbs in the article view, breadcrumb is showing this way:
I.e. Home > Author, instead of :
Home > Vol 1, No 2 (2013) > Author

I've upgraded my ojs version to 2.4.2 and i dont know what's happening.

i've searched in article\header.tpl for the breadcrumb and this is the code:
Code: Select all
<div id="breadcrumb">
   <a href="{url page="index"}" target="_parent">{translate key="navigation.home"}</a> &gt;
   {if $issue}<a href="{url page="issue" op="view" path=$issue->getBestIssueId($currentJournal)}" target="_parent">{$issue->getIssueIdentification(false,true)|escape}</a> &gt;{/if}
   <a href="{url page="article" op="view" path=$articleId|to_array:$galleyId}" class="current" target="_parent">{$article->getAuthorString()|escape}</a>
</div>


thanks in advance for your time

Jacqueline
jacquehdeza
 
Posts: 4
Joined: Tue Jul 15, 2014 7:09 am

Re: Breadcrumbs doesn't show journal title

Postby asmecher » Tue Jul 15, 2014 11:31 am

Hi Jacqueline,

Is there a public URL to this journal you could share?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm

Re: Breadcrumbs doesn't show journal title

Postby jacquehdeza » Tue Jul 15, 2014 11:55 am

No, no public url. This site belongs to a local private network.
Sorry. i have attached an screenshot of the article page view. I hope you can help me.
Attachments
screenshot_breadcrumb.png
screenshot_breadcrumb.png (26.81 KiB) Viewed 232 times
jacquehdeza
 
Posts: 4
Joined: Tue Jul 15, 2014 7:09 am

Re: Breadcrumbs doesn't show journal title

Postby asmecher » Tue Jul 15, 2014 11:59 am

Hi jacquehdeza,

Is this a published article? Or are you viewing it e.g. as a pre-publication preview? Are there any modifications to the installation?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm

Re: Breadcrumbs doesn't show journal title

Postby jacquehdeza » Tue Jul 15, 2014 12:04 pm

Yes this is a published article.
We designed a new theme for this journal and we update the previous ojs version to 2.4.2
We have test it with other databases and we have the same problem.
We have not made any modifications to the code, just style.

Thanks for your time,

Jacqueline
jacquehdeza
 
Posts: 4
Joined: Tue Jul 15, 2014 7:09 am

Re: Breadcrumbs doesn't show journal title

Postby asmecher » Tue Jul 15, 2014 12:18 pm

Hi Jacqueline,

Unfortunately this will take some wading through code in order to debug. If you're handy with PHP...

The template you quoted above is where the breadcrumbs are rendered. This makes use of the $issue object, which appears in your case not to be properly set.

This variable should be set in pages/article/ArticleHandler.inc.php in the "view" function around line 183:
Code: Select all
$templateMgr->assign_by_ref('issue', $issue);
Can you check whether the $issue object is properly set at this point in the code?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm

Re: Breadcrumbs doesn't show journal title

Postby jacquehdeza » Wed Jul 16, 2014 7:47 am

Hello Alec,

I checked the code you ask me for and yes i have it in pages/article/ArticleHandler.inc.php

i don't know why $issue var is not taking any value...Is there another var i can use to set this value in article's header??

Thanks again

Jacqueline
jacquehdeza
 
Posts: 4
Joined: Tue Jul 15, 2014 7:09 am

Re: Breadcrumbs doesn't show journal title

Postby asmecher » Wed Jul 16, 2014 8:32 am

Hi Jacqueline,

Does $issue have a value when it's assigned to the template in ArticleHandler.inc.php?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8903
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: bbeghelli, Bing [Bot] and 6 guests