Skip to content

feat: add herbruikbaarheid filter support in elasticsearch query builder #646

Open
RobbeBierebeeck wants to merge 3 commits into
release/cluster-234from
feature/ARC-3601--reusability-filter
Open

feat: add herbruikbaarheid filter support in elasticsearch query builder #646
RobbeBierebeeck wants to merge 3 commits into
release/cluster-234from
feature/ARC-3601--reusability-filter

Conversation

@RobbeBierebeeck
Copy link
Copy Markdown
Contributor

No description provided.

CONSULTABLE_ONLY_ON_LOCATION = 'isConsultableOnlyOnLocation',
CONSULTABLE_MEDIA = 'isConsultableMedia',
CONSULTABLE_PUBLIC_DOMAIN = 'isConsultablePublicDomain',
REUSABILITY = 'herbruikbaarheid',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer english

Suggested change
REUSABILITY = 'herbruikbaarheid',
REUSABILITY = 'reusability',

Comment on lines +203 to +221
export const REUSABILITY_CATEGORY_URIS: Record<string, string[]> = {
'vrij-herbruikbaar': [
'https://creativecommons.org/public-domain/pdm/',
'https://creativecommons.org/publicdomain/zero/1.0/',
],
'herbruikbaar-onder-voorwaarden': [
'https://rightsstatements.org/page/NoC-CR/1.0/',
'https://creativecommons.org/licenses/by/4.0/',
'https://creativecommons.org/licenses/by-nc-nd/4.0/',
'https://creativecommons.org/licenses/by-sa/4.0/',
'https://creativecommons.org/licenses/by-nc/4.0/',
],
'misschien-herbruikbaar': [
'https://rightsstatements.org/page/UND/1.0/',
'https://rightsstatements.org/page/InC/1.0/',
'https://rightsstatements.org/page/CNE/1.0/',
'https://rightsstatements.org/page/InC-OW-EU/1.0/',
'https://rightsstatements.org/page/InC-RUU/1.0/',
],
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer enum for categories, and use either the exact values from the database
eg:

  • Vrij herbruikbaar
  • Herbruikbaar onder voorwaarden
  • Misschien herbruikbaar

, or english values for the enum + translate table for the database values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants