Skip to content

Commit

Permalink
Merge pull request #151 from syslabcom/scrum-1939-search-results
Browse files Browse the repository at this point in the history
Tweak search criteria and batching
  • Loading branch information
thet authored Feb 12, 2024
2 parents d796d7e + 36de9fa commit 7fc9486
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/recensio/plone/browser/listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ def translate(self, msgid):
class RecensioFacetedQueryHandler(FacetedQueryHandler, ListingBase):
"""Add recensio capabilities"""

def criteria(self, **kwargs):
"""Don't restrict language"""
criteria = super().criteria(**kwargs)
del criteria["Language"]
return criteria


class ReviewSectionsListing(ListingBase):
@property
Expand Down
2 changes: 1 addition & 1 deletion src/recensio/plone/browser/templates/results-listing.pt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
isAnon context/@@plone_portal_state/anonymous;
toLocalizedTime nocall: context/@@plone/toLocalizedTime;
Batch python:modules['Products.CMFPlone'].Batch;
b_size python:10;
b_size python:30;
b_size request/b_size | b_size;
b_start python:0;
b_start request/b_start | b_start;
Expand Down

0 comments on commit 7fc9486

Please sign in to comment.