Ojs 3.2 Multi Journal Page, Site level Search

From a multi journal page, when I user search on a site level, I do get the proper results, Although when I click to a result in order to move to the issue/article/etc I do get the message “You cannot call this operation without a context (press, journal, conference, etc).”.

Does the latest ojs version supports site level search?
Thank you

Hi @Dimitris_Sioulas,

Can you walk through the search process in a little more detail? (Screenshots might be helpful.) What specific version of OJS are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher, I am using the latest version 3.2.1.1

  1. Multi journal home page with the list of the journals.
    Capture1

  2. Search Results after pressing the search button on the header menu.
    Capture2

  3. After clicking at one of the results I got this message
    Capture3

Please let me know if you need any further details.
Looking forward to hearing from you. Thank you for your time.

Hi @Dimitris_Sioulas,

Thanks, that’s clear. What theme are you using?

Regards,
Alec Smecher
Public Knowledge Project Team

A custom child theme of bootstrap3 base theme, I do face the same issue even when I set bootstrap3 base theme as a theme.

Hi @Dimitris_Sioulas,

I’ve found the issue in the Bootstrap3 theme. The issue is filed here and there is a pull request available to fix it: Site-wide search results lead to error message · Issue #153 · NateWr/bootstrap3 · GitHub

Regards,
Alec Smecher
Public Knowledge Project Team

I commit the same change by adding the new line of code:
{include file="frontend/objects/article_summary.tpl" article=$result.publishedSubmission journal=$result.journal showDatePublished=true hideGalleys=true}
I do face the exact same issue, I am attaching a screenshot.Capture
Thank you

Hi @Dimitris_Sioulas,

I’d suggest flushing the template cache, just to make sure the templates are being recompiled. You can do this by removing all .php files from cache/t_compile. If the file permissions are set correctly, they’ll be regenerated automatically.

Regards,
Alec Smecher
Public Knowledge Project Team

Even after clearing the cache the issue remains.

After a lot of time debugging I found a solution.
Created a pull request here:

Please let me know if there is something further to consider.
Thank you

Hi @Dimitris_Sioulas,

You’re right, I missed a few areas – thanks, I’ve updated the issue entry to refer to your PR!

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like