-
Notifications
You must be signed in to change notification settings - Fork 447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OMP category pages show duplicated published items #4411
Comments
@NateWr, mind taking a look? |
|
In my case, it's coming from this page: https://github.com/pkp/ojs/blob/master/templates/frontend/pages/catalogCategory.tpl that I'm overridden from a theme plugin. |
@asmecher that looks like it's coming from the new categories stuff. Do you still want me to look into it? |
This problem exists in OMP too. |
This seems to have been resolved for OJS with some changes made for #4446. The effective change seems to have been removing usage of However, it still impacts OMP's category page, and nothing jumped out as obviously the cause of it. I'll try to take a look at it. I'll rename the issue and assign it to 3.2, but if that change doesn't fix things in OJS, please let me know @Vitaliy-1 and I'll take another look. |
I'm able to track the problem to |
If using |
Can you try updating |
I'm getting the following SQL:
Direct execution gives me:
|
So, probably localizations are not taken into account |
e.g., when I'm adding:
just after
I'm getting:
That looks more or less normal. |
Thanks @Vitaliy-1! Re-assigned to 3.1.2. Over to you @asmecher unless you want me to dig into this one. :) |
@NateWr, this was caused by the submission query builder fetching the submission title for sorting purposes without checking the title locale. This will multiply the number of submissions returned by the number of title languages available. PRs:
Mind taking a look? |
Looks good. A couple of the mysql tests failed but it didn't look related. I've restarted them, but go ahead whenever you're ready. Does this need to be cherry-picked to |
#4411 Make submission title fetch not multiply by number of languages available
Thanks! Cherry-picked forward to |
Version: master branch
2 articles in the category but 4 is shown in the order: 1st 2nd 2nd 1st.
https://github.com/pkp/ojs/blob/master/templates/frontend/components/articleList.tpl#L10
The text was updated successfully, but these errors were encountered: