Skip to content

Commit

Permalink
Merge pull request #1040 from SlovakNationalGallery/WEBUMENIA-2110
Browse files Browse the repository at this point in the history
[item] add missing filterable fields
  • Loading branch information
rastislav-chynoransky authored Dec 10, 2024
2 parents 5f14767 + 4310967 commit 9851bdd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions resources/js/components/catalog-new/ItemsFilterController.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ function stringifyUrlQuery(params) {
topic,
medium,
color,
credit,
related_work,
contributor,
is_free,
has_image,
has_iip,
has_text,
is_for_reproduction,
sort,
q,
} = filter || {}
Expand All @@ -66,10 +70,14 @@ function stringifyUrlQuery(params) {
gallery: gallery,
medium: medium,
color: color,
credit: credit,
related_work: related_work,
contributor: contributor,
is_free: is_free,
has_image: has_image,
has_iip: has_iip,
has_text: has_text,
is_for_reproduction: is_for_reproduction,
},
sort: {
[sort]: SORT_DIRECTIONS[sort],
Expand Down Expand Up @@ -107,6 +115,9 @@ const EMPTY_QUERY = {
technique: [],
medium: [],
tag: [],
contributor: [],
credit: [],
related_work: [],
color: null,
yearRange: null,
}
Expand Down Expand Up @@ -167,6 +178,9 @@ export default {
'object_type',
'tag',
'gallery',
'credit',
'related_work',
'contributor',
'color',
'yearRange',
].includes(filterName)
Expand Down

0 comments on commit 9851bdd

Please sign in to comment.