Skip to content

Commit

Permalink
Merge pull request #551 from BloomBooks/BL13538_SpiritualTopic
Browse files Browse the repository at this point in the history
Replace "Spiritual" topic with "Bible" (BL-13538) (#551)
  • Loading branch information
andrew-polk authored Jun 5, 2024
2 parents 74ab231 + 2d2d11c commit ccc3444
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 138 deletions.
2 changes: 1 addition & 1 deletion src/connection/LibraryQueryHooksFast.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}],'
);
});

Expand Down
186 changes: 93 additions & 93 deletions src/localization/Topics And Features.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
88 changes: 44 additions & 44 deletions src/model/ClosedVocabularies.ts
Original file line number Diff line number Diff line change
@@ -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",
};

0 comments on commit ccc3444

Please sign in to comment.