richie icon indicating copy to clipboard operation
richie copied to clipboard

Add a "licence" filter on the search page

Open sampaccoud opened this issue 4 years ago • 2 comments

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe. On the search page, we would like to able to filter courses by the licence of their content.

Describe the solution you'd like

  • [ ] Add a "short_name" field to the Licence model for use on the filter. (we could set it to values of the form CC-BY, CC-BY-NC, etc.)
  • [x] Add license field on the course search index using "short_name" as a token
  • [x] Add a licence filter to the search page

sampaccoud avatar Nov 04 '21 12:11 sampaccoud

Done in #1728

mbenadda avatar Jun 17 '22 08:06 mbenadda

As it turns out, we might really need to add a short name just for use as a human name instead of the actual title. As for the token, we can keep using the ID.

mbenadda avatar Jun 17 '22 10:06 mbenadda