Skip to content

Commit

Permalink
fix: add ingredients-original facet, start to split tagtype and taxon…
Browse files Browse the repository at this point in the history
…omy (#9127)
  • Loading branch information
stephanegigandet authored Oct 10, 2023
1 parent d3754e2 commit e081ec9
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 97 deletions.
1 change: 1 addition & 0 deletions lib/ProductOpener/Display.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,7 @@ sub query_list_of_tags ($request_ref, $query_ref) {
add_country_and_owner_filters_to_query($request_ref, $query_ref);

my $groupby_tagtype = $request_ref->{groupby_tagtype};

my $page = $request_ref->{page};
# Flag that indicates whether we cache MongoDB results in Memcached
# Caching is disabled for crawling bots, as they tend to explore
Expand Down
201 changes: 106 additions & 95 deletions lib/ProductOpener/Tags.pm

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion po/tags/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ msgctxt "ingredients:singular"
msgid "ingredient"
msgstr "ingredient"

msgctxt "ingredients_original:plural"
msgid "ingredients-original"
msgstr "ingredients-original"

msgctxt "ingredients_original:singular"
msgid "ingredient-original"
msgstr "ingredient-original"

msgctxt "ingredients_from_palm_oil:plural"
msgid "ingredients-from-palm-oil"
msgstr "ingredients-from-palm-oil"
Expand Down Expand Up @@ -618,4 +626,4 @@ msgstr "nutri-score-2023"
# Please do not translate nutri-score
msgctxt "nutriscore_2023:singular"
msgid "nutri-score-2023"
msgstr "nutri-score-2023"
msgstr "nutri-score-2023"
12 changes: 11 additions & 1 deletion po/tags/tags.pot
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@ msgctxt "ingredients:singular"
msgid "ingredient"
msgstr ""

#. part of an url, put here the singular in your language, without caps, and by using hyphens instead of spaces
msgctxt "ingredients_original:plural"
msgid "ingredients-original"
msgstr "ingredients-original"

#. part of an url, put here the singular in your language, without caps, and by using hyphens instead of spaces
msgctxt "ingredients_original:singular"
msgid "ingredient-original"
msgstr "ingredient-original"

#. part of an url, put here the plural in your language, without caps, and by using hyphens instead of spaces
msgctxt "ingredients_from_palm_oil:plural"
msgid "ingredients-from-palm-oil"
Expand Down Expand Up @@ -722,4 +732,4 @@ msgstr "nutri-score-2023"
# Please do not translate nutri-score
msgctxt "nutriscore_2023:singular"
msgid "nutri-score-2023"
msgstr "nutri-score-2023"
msgstr "nutri-score-2023"
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Disallow: /ingredients-analysis
Disallow: /ingredients-from-palm-oil
Disallow: /number-of-ingredients
Disallow: /numbers-of-ingredients
Disallow: /ingredient-original
Disallow: /ingredients-original
Disallow: /ingredients-that-may-be-from-palm-oil
Disallow: /known-nutrient
Disallow: /known-nutrients
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Disallow: /number-of-ingredients
Disallow: /numbers-of-ingredients
Disallow: /nombre-d-ingredients
Disallow: /nombres-d-ingredients
Disallow: /ingredient-original
Disallow: /ingredients-original
Disallow: /ingredients-that-may-be-from-palm-oil
Disallow: /ingredients-pouvant-etre-issus-de-l-huile-de-palme
Disallow: /known-nutrient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Disallow: /number-of-ingredients
Disallow: /numbers-of-ingredients
Disallow: /nombre-d-ingredients
Disallow: /nombres-d-ingredients
Disallow: /ingredient-original
Disallow: /ingredients-original
Disallow: /ingredients-that-may-be-from-palm-oil
Disallow: /ingredients-pouvant-etre-issus-de-l-huile-de-palme
Disallow: /known-nutrient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Disallow: /ingredients-analysis
Disallow: /ingredients-from-palm-oil
Disallow: /number-of-ingredients
Disallow: /numbers-of-ingredients
Disallow: /ingredient-original
Disallow: /ingredients-original
Disallow: /ingredients-that-may-be-from-palm-oil
Disallow: /known-nutrient
Disallow: /known-nutrients
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Disallow: /ingredients-analysis
Disallow: /ingredients-from-palm-oil
Disallow: /number-of-ingredients
Disallow: /numbers-of-ingredients
Disallow: /ingredient-original
Disallow: /ingredients-original
Disallow: /ingredients-that-may-be-from-palm-oil
Disallow: /known-nutrient
Disallow: /known-nutrients
Expand Down

0 comments on commit e081ec9

Please sign in to comment.