PrincetonPEMM / 7Span-Phase2

For build of PEMM website
2 stars 1 forks source link

7Span: Story Index page: Search, Filter Buttons, Sliders 9/22/23 #291

Closed WendyLBelcher closed 1 year ago

WendyLBelcher commented 1 year ago

Search Titles and Translations

Note: This needs to search Translation table translation_text field

Problem Search for "dog" gets 14 results: dog search But search in Directus for "dog" gets 36 results: dogs 36

7Span Query SELECT canonical_stories.id FROM story_instance INNER JOIN canonical_stories ON story_instance.canonical_story_id = canonical_stories.id WHERE LOWER(canonical_stories.canonical_story_title) LIKE '%dog%' GROUP BY canonical_stories.id

WendyLBelcher commented 1 year ago

Filter Check Boxes

filter top

Clear All

WendyLBelcher commented 1 year ago

Filter Check box: With Paintings

Ignore the below

Blaine: They are doing a join to the story instance sheet for this query. The story instance table doesn't have the 7000s but the canonical story table does, which is why I think they are appearing as more in directus and not on the website. Also 33 is the number of stories with paintings greater than 19 and this includes four IDs from the 7000s. 33-4 = 29 (the figure appearing on the website

Note: Seemed like there was is a problem, website has 108 results (108 stories have paintings): paintings wrong web

But Directus says that stories with greater than 0 total_story_id_paintings is 157 paintings wrong directus

7Span Query SELECT canonical_stories.id FROM story_instance INNER JOIN canonical_stories ON story_instance.canonical_story_id = canonical_stories.id WHERE canonical_stories.total_story_id_paintings > 0 GROUP BY canonical_stories.id

WendyLBelcher commented 1 year ago

Filter Check box: Most Illustrated

Ignore the below

Blaine: Blaine: They are doing a join to the story instance sheet for this query. The story instance table doesn't have the 7000s but the canonical story table does, which is why I think they are appearing as more in directus and not on the website. Also 33 is the number of stories with paintings greater than 19 and this includes four IDs from the 7000s. 33-4 = 29 (the figure appearing on the website.

There is a slight discrepancy; I'm not sure why. Web results = 33 stories with 29 or more stories most ill

Directus results = 37 stories with 28 or more stories (or for 19 or more stories) most ill Directus

7Span Query SELECT canonical_stories.id FROM story_instance INNER JOIN canonical_stories ON story_instance.canonical_story_id = canonical_stories.id WHERE canonical_stories.total_story_id_paintings > 19 GROUP BY canonical_stories.id

WendyLBelcher commented 1 year ago

Filter Check box: With English Translations

Ignore the below

7Span Query SELECT canonical_stories.id FROM story_instance INNER JOIN canonical_stories ON story_instance.canonical_story_id = canonical_stories.id INNER JOIN "translation" ON "translation".canonical_story_id = canonical_stories.id WHERE ("translation".language_translated_to = 'English' OR "translation".language_translated_from = 'English') GROUP BY canonical_stories.id

Add to query WHERE canonical_translation_recension = True WHERE translation_status ≠ Summary Only OR WHERE translation_status ≠ Translation of a Translation OR WHERE translation_status ≠ Partial Translation

OR>>>>>>>>>>>>>>>>>>> WHERE canonical_translation_recension = True WHERE translation_status = Published Translation OR WHERE translation_status = Complete Unpublished Translation OR WHERE translation_status = Complete Translation OR WHERE translation_status = Rough (unedited) Translation

Additional Note: You can tell English translation is not working because when you change the dates with the slider, the number doesn't change

WendyLBelcher commented 1 year ago

Filter Checkbox: Ethiopian Stories

7Span Query SELECT canonical_stories.id FROM story_instance INNER JOIN canonical_stories ON story_instance.canonical_story_id = canonical_stories.id WHERE LOWER(canonical_stories.origin) LIKE '%ethiopia%' GROUP BY canonical_stories.id

WendyLBelcher commented 1 year ago

Filter Checkbox: Miracle of Mary Stories/Life of Mary stories

But Directus has Miracle of Mary stories = 696, Life of Mary stories = 297, Homilies = 59 miracle of mary directus life of mary directus homily directus

WendyLBelcher commented 1 year ago

Filter Checkbox: Earliest Stories/ Recent Stories

earliest attested 75

WendyLBelcher commented 1 year ago

Filter Checkbox: Popular/Rare

WendyLBelcher commented 1 year ago

Filter Sliders and Buttons

filter bottom

WendyLBelcher commented 1 year ago

Sliders

Story's Date of Origin

Sliders

WendyLBelcher commented 1 year ago

Story's Place of Origin

Africa

Directus correctly gives 810 stories from Africa africa origin

Ethiopia

Egypt

Europe

France

Correct, no problem

Spain

Correct, no problem

Levant

Not sure 13 website 15 Directus

Unknown

okay

Origin Additions

We need to add locations that are in our data but were not previously captured by the filters

Display on Website

WendyLBelcher commented 1 year ago

Languages of Story

WendyLBelcher commented 1 year ago

Languages of Story Multi-Select

Explanation: If there are 10 stories in French and 10 stories in Italian and 5 stories that appear in BOTH languages, the results should be 5 (NOT 10 or 20 or 0)

If there are 181 stories in French and 46 stories in Italian and 24 stories in Latin and x stories that appear in all three languages, the results should be x (NOT 181 or 46 or 24 or 251)

WendyLBelcher commented 1 year ago

Languages of Story and Story's Place of Origin

Example: When Europe AND Levant are selected, the result is 0 records. This is correct. europe levant

But, if you ALSO select Italian, the result is 9 records. This is wrong. No stories were composed in both Europe and Levant, so adding language should NOT increase the number levant 9

WendyLBelcher commented 1 year ago

And Logic

When using more than one filter (e.g., Story's Date of Origin AND Story's Place of Origin) all filters should be Venn Diagram type Must overlap