From 2d2d11c4c85dab8df5c720d7be6a00af286ec9d7 Mon Sep 17 00:00:00 2001 From: Andrew Polk Date: Tue, 4 Jun 2024 13:49:59 -0700 Subject: [PATCH] Replace "Spiritual" topic with "Bible" (BL-13538) --- src/connection/LibraryQueryHooksFast.test.ts | 2 +- src/localization/Topics And Features.json | 186 +++++++++---------- src/model/ClosedVocabularies.ts | 88 ++++----- 3 files changed, 138 insertions(+), 138 deletions(-) diff --git a/src/connection/LibraryQueryHooksFast.test.ts b/src/connection/LibraryQueryHooksFast.test.ts index 542bfd46..acfee32c 100644 --- a/src/connection/LibraryQueryHooksFast.test.ts +++ b/src/connection/LibraryQueryHooksFast.test.ts @@ -127,7 +127,7 @@ it("build proper parse query for no topic and tag field ending with *", () => { ); const resultString = JSON.stringify(result); expect(resultString).toContain( - '"$and":[{"tags":{"$nin":["topic:Agriculture","topic:Animal Stories","topic:Business","topic:Community Living","topic:Culture","topic:Dictionary","topic:Environment","topic:Fiction","topic:Health","topic:How To","topic:Math","topic:Non Fiction","topic:Personal Development","topic:Primer","topic:Science","topic:Spiritual","topic:Story Book","topic:Traditional Story"]}},{"tags":{"$regex":"^bookshelf:Resources for the Blind"}}],' + '"$and":[{"tags":{"$nin":["topic:Agriculture","topic:Animal Stories","topic:Bible","topic:Business","topic:Community Living","topic:Culture","topic:Dictionary","topic:Environment","topic:Fiction","topic:Health","topic:How To","topic:Math","topic:Non Fiction","topic:Personal Development","topic:Primer","topic:Science","topic:Story Book","topic:Traditional Story"]}},{"tags":{"$regex":"^bookshelf:Resources for the Blind"}}],' ); }); diff --git a/src/localization/Topics And Features.json b/src/localization/Topics And Features.json index 7ce8dec3..d9e9c5b6 100644 --- a/src/localization/Topics And Features.json +++ b/src/localization/Topics And Features.json @@ -1,93 +1,93 @@ -{ - "topic.Agriculture": { - "message": "Agriculture" - }, - "topic.Animal Stories": { - "message": "Animal Stories" - }, - "topic.Business": { - "message": "Business" - }, - "topic.Dictionary": { - "message": "Dictionary" - }, - "topic.Environment": { - "message": "Environment" - }, - "topic.Primer": { - "message": "Primer" - }, - "topic.Math": { - "message": "Math" - }, - "topic.Culture": { - "message": "Culture" - }, - "topic.Science": { - "message": "Science" - }, - "topic.Story Book": { - "message": "Story Book" - }, - "topic.Traditional Story": { - "message": "Traditional Story" - }, - "topic.Health": { - "message": "Health" - }, - "topic.Personal Development": { - "message": "Personal Development" - }, - "topic.Spiritual": { - "message": "Spiritual" - }, - "topic.Community Living": { - "message": "Community Living" - }, - "topic.Fiction": { - "message": "Fiction" - }, - "topic.How To": { - "message": "How To" - }, - "topic.Non Fiction": { - "message": "Non Fiction" - }, - "topic.Other": { - "message": "Other" - }, - "feature.talkingBook": { - "message": "Talking Book" - }, - "feature.blind": { - "message": "Features for the Visually Impaired" - }, - "feature.comic": { - "message": "Comic Book" - }, - "feature.motion": { - "message": "Motion Book" - }, - "feature.signLanguage": { - "message": "Sign Language" - }, - "feature.activity": { - "message": "Interactive Activity" - }, - "level.1": { - "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", - "message": "First words & phrases" - }, - "level.2": { - "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", - "message": "First sentences" - }, - "level.3": { - "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", - "message": "First paragraphs" - }, - "level.4": { - "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", - "message": "Longer paragraphs" - } -} +{ + "topic.Agriculture": { + "message": "Agriculture" + }, + "topic.Animal Stories": { + "message": "Animal Stories" + }, + "topic.Bible": { + "message": "Bible" + }, + "topic.Business": { + "message": "Business" + }, + "topic.Dictionary": { + "message": "Dictionary" + }, + "topic.Environment": { + "message": "Environment" + }, + "topic.Primer": { + "message": "Primer" + }, + "topic.Math": { + "message": "Math" + }, + "topic.Culture": { + "message": "Culture" + }, + "topic.Science": { + "message": "Science" + }, + "topic.Story Book": { + "message": "Story Book" + }, + "topic.Traditional Story": { + "message": "Traditional Story" + }, + "topic.Health": { + "message": "Health" + }, + "topic.Personal Development": { + "message": "Personal Development" + }, + "topic.Community Living": { + "message": "Community Living" + }, + "topic.Fiction": { + "message": "Fiction" + }, + "topic.How To": { + "message": "How To" + }, + "topic.Non Fiction": { + "message": "Non Fiction" + }, + "topic.Other": { + "message": "Other" + }, + "feature.talkingBook": { + "message": "Talking Book" + }, + "feature.blind": { + "message": "Features for the Visually Impaired" + }, + "feature.comic": { + "message": "Comic Book" + }, + "feature.motion": { + "message": "Motion Book" + }, + "feature.signLanguage": { + "message": "Sign Language" + }, + "feature.activity": { + "message": "Interactive Activity" + }, + "level.1": { + "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", + "message": "First words & phrases" + }, + "level.2": { + "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", + "message": "First sentences" + }, + "level.3": { + "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", + "message": "First paragraphs" + }, + "level.4": { + "description": "This is an automated level that BloomLibrary assigns to books. This text shows up if you hover over the dots on the book thumbnail that indicate the level", + "message": "Longer paragraphs" + } +} diff --git a/src/model/ClosedVocabularies.ts b/src/model/ClosedVocabularies.ts index 37f65962..f68c62a8 100644 --- a/src/model/ClosedVocabularies.ts +++ b/src/model/ClosedVocabularies.ts @@ -1,44 +1,44 @@ -export const kTopicList = [ - "Agriculture", - "Animal Stories", - "Business", - "Community Living", - "Culture", - "Dictionary", - "Environment", - "Fiction", - "Health", - "How To", - "Math", - "Non Fiction", - "Personal Development", - "Primer", - "Science", - "Spiritual", - "Story Book", - "Traditional Story", -]; - -interface IStringMap { - [id: string]: string; -} -export const kNameToL10NKey: IStringMap = { - "topic:Agriculture": "topic.Agriculture", - "topic:Animal Stories": "topic.Animal Stories", - "topic:Business": "topic.Business", - "topic:Community Living": "topic.Community Living", - "topic:Culture": "topic.Culture", - "topic:Dictionary": "topic.Dictionary", - "topic:Environment": "topic.Environment", - "topic:Fiction": "topic.Fiction", - "topic:Health": "topic.Health", - "topic:How To": "topic.How To", - "topic:Math": "topic.Math", - "topic:Non Fiction": "topic.Non Fiction", - "topic:Personal Development": "topic.Personal Development", - "topic:Primer": "topic.Primer", - "topic:Science": "topic.Science", - "topic:Spiritual": "topic.Spiritual", - "topic:Story Book": "topic.Story Book", - "topic:Traditional Story": "topic.Traditional Story", -}; +export const kTopicList = [ + "Agriculture", + "Animal Stories", + "Bible", + "Business", + "Community Living", + "Culture", + "Dictionary", + "Environment", + "Fiction", + "Health", + "How To", + "Math", + "Non Fiction", + "Personal Development", + "Primer", + "Science", + "Story Book", + "Traditional Story", +]; + +interface IStringMap { + [id: string]: string; +} +export const kNameToL10NKey: IStringMap = { + "topic:Agriculture": "topic.Agriculture", + "topic:Animal Stories": "topic.Animal Stories", + "topic:Bible": "topic.Bible", + "topic:Business": "topic.Business", + "topic:Community Living": "topic.Community Living", + "topic:Culture": "topic.Culture", + "topic:Dictionary": "topic.Dictionary", + "topic:Environment": "topic.Environment", + "topic:Fiction": "topic.Fiction", + "topic:Health": "topic.Health", + "topic:How To": "topic.How To", + "topic:Math": "topic.Math", + "topic:Non Fiction": "topic.Non Fiction", + "topic:Personal Development": "topic.Personal Development", + "topic:Primer": "topic.Primer", + "topic:Science": "topic.Science", + "topic:Story Book": "topic.Story Book", + "topic:Traditional Story": "topic.Traditional Story", +};