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
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.
jacquehdeza
Posts: 4
Joined: Tue Jul 15, 2014 7:09 am

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

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

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

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

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 678 times

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

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

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

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

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

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

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

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

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

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


Return to “OJS Technical Support”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest