From 4ed2be258793e62af034e86df84cb31e90b378bc Mon Sep 17 00:00:00 2001 From: milanmajchrak Date: Thu, 28 Nov 2024 17:31:11 +0100 Subject: [PATCH] Searching by type is changed to 'type' instead of 'itemtype' because it was changed in the autocomplete enhnancement --- src/app/shared/clarin-shared-util.ts | 2 +- src/assets/i18n/cs.json5 | 16 ++++++++-------- src/assets/i18n/en.json5 | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/shared/clarin-shared-util.ts b/src/app/shared/clarin-shared-util.ts index 44b087a9910..f82987f9e0f 100644 --- a/src/app/shared/clarin-shared-util.ts +++ b/src/app/shared/clarin-shared-util.ts @@ -31,7 +31,7 @@ export function convertMetadataFieldIntoSearchType(field: string[]) { case field.includes('dc.contributor.author') || field.includes('dc.creator'): return 'author'; case field.includes('dc.type'): - return 'itemtype'; + return 'type'; case field.includes('dc.publisher') || field.includes('creativework.publisher'): return 'publisher'; case field.includes('dc.language.iso') || field.includes('local.language.name'): diff --git a/src/assets/i18n/cs.json5 b/src/assets/i18n/cs.json5 index cc12cae55f9..815b03fb4a7 100644 --- a/src/assets/i18n/cs.json5 +++ b/src/assets/i18n/cs.json5 @@ -5277,8 +5277,8 @@ // "search.filters.applied.f.original_bundle_descriptions": "File description", // TODO New key - Add a translation "search.filters.applied.f.original_bundle_descriptions": "File description", - // "search.filters.applied.f.itemtype": "Type", - "search.filters.applied.f.itemtype": "Typ", + // "search.filters.applied.f.type": "Type", + "search.filters.applied.f.type": "Typ", // "search.filters.applied.f.namedresourcetype": "Status", "search.filters.applied.f.namedresourcetype": "Status", // "search.filters.applied.f.subject": "Subject", @@ -5422,12 +5422,12 @@ // "search.filters.filter.original_bundle_descriptions.label": "Search File description", // TODO New key - Add a translation "search.filters.filter.original_bundle_descriptions.label": "Search File description", - // "search.filters.filter.itemtype.head": "Type", - "search.filters.filter.itemtype.head": "Typ", - // "search.filters.filter.itemtype.placeholder": "Type", - "search.filters.filter.itemtype.placeholder": "Typ", - // "search.filters.filter.itemtype.label": "Search type", - "search.filters.filter.itemtype.label": "Hledat typ", + // "search.filters.filter.type.head": "Type", + "search.filters.filter.type.head": "Typ", + // "search.filters.filter.type.placeholder": "Type", + "search.filters.filter.type.placeholder": "Typ", + // "search.filters.filter.type.label": "Search type", + "search.filters.filter.type.label": "Hledat typ", // "search.filters.filter.jobTitle.head": "Job Title", "search.filters.filter.jobTitle.head": "Název pracovní pozice", // "search.filters.filter.jobTitle.placeholder": "Job Title", diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5 index 41e4a05c66f..2de89608a5a 100644 --- a/src/assets/i18n/en.json5 +++ b/src/assets/i18n/en.json5 @@ -4221,7 +4221,7 @@ "search.filters.applied.f.has_content_in_original_bundle": "Contain Files", - "search.filters.applied.f.itemtype": "Type", + "search.filters.applied.f.type": "Type", "search.filters.applied.f.namedresourcetype": "Status", @@ -4315,11 +4315,11 @@ "search.filters.filter.has_content_in_original_bundle.head": "Contain Files", - "search.filters.filter.itemtype.head": "Type", + "search.filters.filter.type.head": "Type", - "search.filters.filter.itemtype.placeholder": "Type", + "search.filters.filter.type.placeholder": "Type", - "search.filters.filter.itemtype.label": "Search type", + "search.filters.filter.type.label": "Search type", "search.filters.filter.jobTitle.head": "Job Title",