Commit 4267d22
committed
Fix collection-specific search - now each category shows different artworks
PROBLEM IDENTIFIED: All collections were using the same hardcoded search query ('painting'),
so every category displayed identical results.
FIXES:
- Use collection-specific search terms from the collections object
- Update collections to use unique search terms: 'impressionist', 'renaissance', 'ancient', etc.
- Add proper URL encoding for search queries
- Add console logging to show which search term is being used
NOW EACH COLLECTION WILL SHOW DIFFERENT ARTWORKS:
- Impressionist Masters → search: 'impressionist'
- Renaissance Art → search: 'renaissance'
- Ancient Art → search: 'ancient'
- American Art → search: 'american'
- Asian Art → search: 'asian'
- Modern Art → search: 'modern'
This resolves the issue where all categories showed the same paintings.1 parent 2448669 commit 4267d22
1 file changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
330 | 335 | | |
331 | 336 | | |
332 | 337 | | |
| |||
0 commit comments