Skip to content

Commit ed04c0f

Browse files
committed
Merge branch 'main' into test-refactoring
2 parents f964fe3 + fa684fe commit ed04c0f

File tree

23 files changed

+918
-206
lines changed

23 files changed

+918
-206
lines changed

CHANGES.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
5.3.1 (unreleased)
2+
------------------
3+
4+
New features:
5+
6+
7+
- update the spanish translations missing @macagua (#242)
8+
- add more improvements about i18n support @macagua (#241)
9+
10+
111
5.3.0 (2025-10-08)
212
------------------
313

README.rst

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ collective.collectionfilter
1212

1313
Faceted navigation filter for collection or contentlisting tiles.
1414

15-
This Plone 5 addon allows you to filter listing results for fields which are indexed in the catalog
16-
(Plones internal search tool).
15+
This Plone addon for 5.x/6.x versions, allows you to filter listing results for fields which are indexed in the catalog
16+
(Plone internal search tool).
1717
For example, you can add a subject filter, but also a filter for authors or portal types.
1818

1919
The filter types can be extended (see: ``collective.collectionfilter.vocabularies``).
2020

21-
There are three portlets/tiles available for filtering:
21+
There are five portlets/tiles available for filtering:
2222

2323
``Collection Filter``
2424
a list with values (select, radio, checkbox, link) you can filter on
2525
``Collection Search``
2626
a SearchableText input field to do a fulltextsearch on the collection results
2727
``Collection Maps``
28-
a LeafletJS map which shows and filters ``IGeolocatable`` items on it
28+
a `LeafletJS`_ map which shows and filters ``IGeolocatable`` items on it
2929
(this feature is available if ``collective.geolocationbehavior`` is installed and the behavior
3030
is activated on a contenttype. See installation notes below)
3131
``Collection Result Listing Sort``
@@ -52,7 +52,9 @@ option will redirect you to the collection.
5252
Mosaic Integration
5353
------------------
5454

55-
Use the package extra to install the required dependencies::
55+
Use the package extra to install the required dependencies:
56+
57+
::
5658

5759
[buildout]
5860
...
@@ -71,17 +73,18 @@ If you want to use filter tiles with a collection then add a content listing til
7173
It is also possible to use the ``Embed content`` tile if there is a unique selector on your collection view.
7274

7375

74-
7576
Geolocation filter support
7677
--------------------------
7778

78-
If ``collective.geolocationbehavior`` is installed, this package provides a LeafletJS Maps tile/portlet
79+
If ``collective.geolocationbehavior`` is installed, this package provides a `LeafletJS`_ Maps tile/portlet
7980
which shows each item of a collection result if the ``IGeolocatable`` information is available.
8081
In addition you can activate the ``Narrow down results`` checkbox to narrow down the collection result and
8182
other available filter tiles/portlets if the user moves or zooms the map.
8283

8384
We provide a package extra to install all required dependencies with their according versions.
84-
Simply do this somewhere in your buildout::
85+
Simply do this somewhere in your buildout:
86+
87+
::
8588

8689
[buildout]
8790
...
@@ -118,7 +121,9 @@ Within this adapter, you can modify the already populated ``_groupby`` attribute
118121

119122
This is how.
120123

121-
Write an adapter::
124+
Write an adapter:
125+
126+
::
122127

123128
# -*- coding: utf-8 -*-
124129
from collective.collectionfilter.interfaces import IGroupByCriteria
@@ -147,11 +152,13 @@ Write an adapter::
147152
groupby._groupby['Subject']['sort_key_function'] = subjectsort
148153
groupby._groupby['my_new_index'] = {
149154
'index': 'my_new_index',
150-
'metadata': 'my_new_index_metadata_colum',
155+
'metadata': 'my_new_index_metadata_column',
151156
'display_modifier': lambda it, idx: u'this is awesome: {0}'.format(it)
152157
}
153158

154-
Register the adapter::
159+
Register the adapter:
160+
161+
::
155162

156163
<configure xmlns="http://namespaces.zope.org/zope">
157164
<adapter factory=".collectionfilter.groupby_modifier" name="modifier_1" />
@@ -168,12 +175,17 @@ Compatibility
168175
- Version 4.x is compatible with Plone 5.2+
169176
- Version 3.x is compatible with Plone 5.0.x and 5.1.x
170177

171-
If your theme doesn't work well with AJAX loading this can be overridden in the registry or via diazo.
178+
If your theme doesn't work well with `AJAX` loading this can be overridden in the registry or via `diazo`_.
172179

173180
Author
174181
------
175182

176183
- Johannes Raggam
177184
- Peter Holzer
178185

179-
This package is based on ``collective.portlet.collectionfilter`` and ``collective.portlet.collectionbysubject``.
186+
This package is based on `collective.portlet.collectionfilter`_ and `collective.portlet.collectionbysubject`_.
187+
188+
.. _LeafletJS: https://leafletjs.com/
189+
.. _diazo: https://docs.diazo.org/en/latest/index.html
190+
.. _collective.portlet.collectionfilter: https://pypi.org/project/collective.portlet.collectionfilter/
191+
.. _collective.portlet.collectionbysubject: https://pypi.org/project/collective.portlet.collectionbysubject/

build_i18n.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,12 @@
22
I18NDUDE=i18ndude
33
I18NPATH=./src/collective/collectionfilter
44
DOMAIN=collective.collectionfilter
5+
PLONE_DOMAIN=plone
6+
7+
# For collective.collectionfilter.pot file
58
$I18NDUDE rebuild-pot --pot $I18NPATH/locales/$DOMAIN.pot --create $DOMAIN $I18NPATH
69
$I18NDUDE sync --pot $I18NPATH/locales/$DOMAIN.pot $I18NPATH/locales/*/LC_MESSAGES/$DOMAIN.po
10+
11+
# For plone.pot file
12+
$I18NDUDE rebuild-pot --pot $I18NPATH/locales/$PLONE_DOMAIN.pot --create $PLONE_DOMAIN $I18NPATH/portlets/profiles/portlets_with_maps/ $I18NPATH/portlets/profiles/default/
13+
$I18NDUDE sync --pot $I18NPATH/locales/$PLONE_DOMAIN.pot $I18NPATH/locales/*/LC_MESSAGES/$PLONE_DOMAIN.po

src/collective/collectionfilter/configure.zcml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,19 @@
7979

8080
<genericsetup:registerProfile
8181
name="default"
82-
title="collective.collectionfilter base"
83-
description="Extension profile for Plone."
82+
title="collective.collectionfilter: 'base' install profile"
83+
description="Install 'base' profile for collective.collectionfilter addon."
8484
provides="Products.GenericSetup.interfaces.EXTENSION"
8585
directory="profiles/default"
8686
/>
8787
<genericsetup:registerProfile
8888
name="uninstall"
89-
title="collective.collectionfilter base uninstall"
90-
description="Extension profile for Plone."
89+
title="collective.collectionfilter: 'base' uninstall profile"
90+
description="Uninstall 'base' profile for collective.collectionfilter addon."
9191
provides="Products.GenericSetup.interfaces.EXTENSION"
9292
directory="profiles/uninstall"
9393
/>
94+
9495
<utility
9596
factory=".setuphandlers.HiddenProfiles"
9697
name="collective.collectionfilter-hiddenprofiles"

src/collective/collectionfilter/locales/collective.collectionfilter.pot

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
7-
"POT-Creation-Date: 2025-10-06 10:40+0000\n"
7+
"POT-Creation-Date: 2025-11-17 20:09+0000\n"
88
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
99
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1010
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -91,9 +91,16 @@ msgstr ""
9191
msgid "Edit Collection Search Portlet"
9292
msgstr ""
9393

94-
#: collective/collectionfilter/configure.zcml:86
94+
#: collective/collectionfilter/portlets/configure.zcml:86
95+
msgid "Install 'Portlets (with maps)' profile for collective.collectionfilter addon."
96+
msgstr ""
97+
9598
#: collective/collectionfilter/portlets/configure.zcml:77
96-
msgid "Extension profile for Plone."
99+
msgid "Install 'Portlets' profile for collective.collectionfilter addon."
100+
msgstr ""
101+
102+
#: collective/collectionfilter/configure.zcml:86
103+
msgid "Install 'base' profile for collective.collectionfilter addon."
97104
msgstr ""
98105

99106
#: collective/collectionfilter/vocabularies.py:99
@@ -122,11 +129,19 @@ msgstr ""
122129
msgid "This portlet shows sorting options for the result listing."
123130
msgstr ""
124131

132+
#: collective/collectionfilter/portlets/configure.zcml:94
133+
msgid "Uninstall 'Portlets' profile for collective.collectionfilter addon."
134+
msgstr ""
135+
136+
#: collective/collectionfilter/configure.zcml:93
137+
msgid "Uninstall 'base' profile for collective.collectionfilter addon."
138+
msgstr ""
139+
125140
#: collective/collectionfilter/vocabularies.py:98
126141
msgid "Yes"
127142
msgstr ""
128143

129-
#: collective/collectionfilter/tiles/__init__.py:192
144+
#: collective/collectionfilter/tiles/__init__.py:188
130145
msgid "You will need to add a Content Listing tile or target a collection to make Filters work"
131146
msgstr ""
132147

@@ -136,20 +151,24 @@ msgstr ""
136151
msgid "button_search"
137152
msgstr ""
138153

139-
#: collective/collectionfilter/configure.zcml:86
140-
msgid "collective.collectionfilter base"
141-
msgstr ""
142-
143-
#: collective/collectionfilter/configure.zcml:93
144-
msgid "collective.collectionfilter base uninstall"
154+
#: collective/collectionfilter/portlets/configure.zcml:86
155+
msgid "collective.collectionfilter: 'Portlets (with maps)' install profile"
145156
msgstr ""
146157

147158
#: collective/collectionfilter/portlets/configure.zcml:77
148-
msgid "collective.collectionfilter portlets"
159+
msgid "collective.collectionfilter: 'Portlets' install profile"
149160
msgstr ""
150161

151162
#: collective/collectionfilter/portlets/configure.zcml:94
152-
msgid "collective.collectionfilter portlets uninstall"
163+
msgid "collective.collectionfilter: 'Portlets' uninstall profile"
164+
msgstr ""
165+
166+
#: collective/collectionfilter/configure.zcml:86
167+
msgid "collective.collectionfilter: 'base' install profile"
168+
msgstr ""
169+
170+
#: collective/collectionfilter/configure.zcml:93
171+
msgid "collective.collectionfilter: 'base' uninstall profile"
153172
msgstr ""
154173

155174
#. Default: "Default map layer"

src/collective/collectionfilter/locales/de-ch/LC_MESSAGES/collective.collectionfilter.po

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
msgid ""
55
msgstr ""
66
"Project-Id-Version: PACKAGE VERSION\n"
7-
"POT-Creation-Date: 2025-10-06 10:40+0000\n"
7+
"POT-Creation-Date: 2025-11-17 20:09+0000\n"
88
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
99
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1010
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -91,9 +91,16 @@ msgstr "Kollektionssortierung bearbeiten"
9191
msgid "Edit Collection Search Portlet"
9292
msgstr "Portlet zur Suche in Kollektionen bearbeiten"
9393

94-
#: collective/collectionfilter/configure.zcml:86
94+
#: collective/collectionfilter/portlets/configure.zcml:86
95+
msgid "Install 'Portlets (with maps)' profile for collective.collectionfilter addon."
96+
msgstr ""
97+
9598
#: collective/collectionfilter/portlets/configure.zcml:77
96-
msgid "Extension profile for Plone."
99+
msgid "Install 'Portlets' profile for collective.collectionfilter addon."
100+
msgstr ""
101+
102+
#: collective/collectionfilter/configure.zcml:86
103+
msgid "Install 'base' profile for collective.collectionfilter addon."
97104
msgstr ""
98105

99106
#: collective/collectionfilter/vocabularies.py:99
@@ -122,11 +129,19 @@ msgstr "Dieses Portlet zeigt gruppierte Kollektionsergebnisse und erlaubt eine w
122129
msgid "This portlet shows sorting options for the result listing."
123130
msgstr "Dieses Portlet zeigt Sortieroptionen für die Ergebnisliste an."
124131

132+
#: collective/collectionfilter/portlets/configure.zcml:94
133+
msgid "Uninstall 'Portlets' profile for collective.collectionfilter addon."
134+
msgstr ""
135+
136+
#: collective/collectionfilter/configure.zcml:93
137+
msgid "Uninstall 'base' profile for collective.collectionfilter addon."
138+
msgstr ""
139+
125140
#: collective/collectionfilter/vocabularies.py:98
126141
msgid "Yes"
127142
msgstr "Ja"
128143

129-
#: collective/collectionfilter/tiles/__init__.py:192
144+
#: collective/collectionfilter/tiles/__init__.py:188
130145
msgid "You will need to add a Content Listing tile or target a collection to make Filters work"
131146
msgstr "Die Mosaic Seite benötigt ein \"Contentlisting Tile\" damit das Filterergebnis dargestellt werden kann."
132147

@@ -136,20 +151,24 @@ msgstr "Die Mosaic Seite benötigt ein \"Contentlisting Tile\" damit das Filtere
136151
msgid "button_search"
137152
msgstr "suchen"
138153

139-
#: collective/collectionfilter/configure.zcml:86
140-
msgid "collective.collectionfilter base"
141-
msgstr ""
142-
143-
#: collective/collectionfilter/configure.zcml:93
144-
msgid "collective.collectionfilter base uninstall"
154+
#: collective/collectionfilter/portlets/configure.zcml:86
155+
msgid "collective.collectionfilter: 'Portlets (with maps)' install profile"
145156
msgstr ""
146157

147158
#: collective/collectionfilter/portlets/configure.zcml:77
148-
msgid "collective.collectionfilter portlets"
159+
msgid "collective.collectionfilter: 'Portlets' install profile"
149160
msgstr ""
150161

151162
#: collective/collectionfilter/portlets/configure.zcml:94
152-
msgid "collective.collectionfilter portlets uninstall"
163+
msgid "collective.collectionfilter: 'Portlets' uninstall profile"
164+
msgstr ""
165+
166+
#: collective/collectionfilter/configure.zcml:86
167+
msgid "collective.collectionfilter: 'base' install profile"
168+
msgstr ""
169+
170+
#: collective/collectionfilter/configure.zcml:93
171+
msgid "collective.collectionfilter: 'base' uninstall profile"
153172
msgstr ""
154173

155174
#. Default: "Default map layer"
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# --- PLEASE EDIT THE LINES BELOW CORRECTLY ---
2+
# SOME DESCRIPTIVE TITLE.
3+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
4+
msgid ""
5+
msgstr ""
6+
"Project-Id-Version: PACKAGE VERSION\n"
7+
"POT-Creation-Date: 2025-11-17 20:09+0000\n"
8+
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
9+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10+
"Language-Team: LANGUAGE <[email protected]>\n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=utf-8\n"
13+
"Content-Transfer-Encoding: 8bit\n"
14+
"Plural-Forms: nplurals=1; plural=0\n"
15+
"Language-Code: de-ch\n"
16+
"Language-Name: English\n"
17+
"Preferred-Encodings: utf-8 latin1\n"
18+
"Domain: plone\n"
19+
20+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
21+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
22+
msgid "Collection Filter"
23+
msgstr "Kollektionsfilter"
24+
25+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
26+
msgid "Collection Filter Reset"
27+
msgstr "Kollektionsfilter zurücksetzen"
28+
29+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
30+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
31+
msgid "Collection Filter Result Sorting"
32+
msgstr "Kollektionsfilter Ergebnis-Sortierung"
33+
34+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
35+
msgid "Collection Maps"
36+
msgstr "Kollektionskartenfilter"
37+
38+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
39+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
40+
msgid "Collection Search"
41+
msgstr "Kollektionssuche"
42+
43+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
44+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
45+
msgid "Portlet that groups collections items by criteria."
46+
msgstr "Dieses Portlet gruppiert Kollektionselemente nach Kriterien."
47+
48+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
49+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
50+
msgid "This portlet allows fulltext search in collection results."
51+
msgstr "Dieses Portlet erlaubt eine Volltextsuche in Kollektionsergebnissen und schränkt diese weiter ein."
52+
53+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
54+
msgid "This portlet allows map filtering in collection results."
55+
msgstr "Dieses Portlet erlaubt eine Kartenfilterung in Kollektionsergebnissen."
56+
57+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
58+
msgid "This portlet allows resetting all filters"
59+
msgstr "Dieses Portlet erlaubt das Zurücksetzen aller Filter."
60+
61+
#: collective/collectionfilter/portlets/profiles/default/portlets.xml
62+
#: collective/collectionfilter/portlets/profiles/portlets_with_maps/portlets.xml
63+
msgid "This portlet allows sorting of the filtered result listing."
64+
msgstr "Dieses Portlet erlaubt das Sortieren der gefilterten Ergebnisliste."

0 commit comments

Comments
 (0)