Closed WendyLBelcher closed 3 weeks ago
[ ] If alternate_translation_priority_order = 1 for a translation, change headings on first translation page to SUMMARY OF FIRST TRANSLATION FIRST TRANSLATION TO CITE THIS FIRST TRANSLATION
[ ] If a canonical story id
has alternate_translation_priority_order
NOT null, display sentences in the info box
The sentence(s) should appear in the Story Detail
top info box part
In fact, this story is available in [3] English translations. [Read another English translation of this story here.] [Read the previous English translation of this story here.]
[ ] Use the programming for the current translation buttons for the sentence(s)
[ ] Also, add the total number of translations to the sentence at "in [] English translations
Programming: For the number for a canonical story id
insert the highest alternate_translation_priority_order
number
For example, for story ID 153, which has four English translations:
In fact, this story is available in 4 English translations. Read another English translation of this story here.
The sentence on Story Detail page https://pemm.princeton.edu/en-us/stories/153?translationSeq=2 and https://pemm.princeton.edu/en-us/stories/153?translationSeq=3 should be
In fact, this story is available in 4 English translations. Read the previous English translation of this story here. Read yet another English translation of this story here.
The sentence on Story Detail page https://pemm.princeton.edu/en-us/stories/153?translationSeq=4 should be
In fact, this story is available in 4 English translations. Read the previous English translation of this story here.
Do NOT display sentence if alternate_translation_priority_order is NULL
Insert the sentence after this sentence It is available in the following languages: ....
Problem: Mobile view prevents one solution. But, I don't like the button under the Translation head, it is too confusing.
One possible solution to alternate translation issue, remove buttons at bottom of translation, and add a sentence in the top info box part
[ ] If Alternate priority field is not empty, display this sentence
This story is available in multiple English translations. To see the various translations, you can go to their dedicated pages: First Translation [link], Second Translation [link].
[ ] Sentence should be modified based on the numbers in the alternate translation priority field. Some stories have three translations or even four translations For three translations , the sentence should be:
This story is available in multiple English translations. To see the various translations, you can go to their dedicated pages: First Translation [link], Second Translation [link], Third Translation [link].
If do above, then I would probably should add another sentence for the other two buttons (but, without replacing the buttons)
This story has multiple parts, some of which don’t appear on this page. To see the various parts, consult the buttons at the bottom of the English translation.
Read next part of story
and Read another translation of this story
appearing next to each other, conflicting. so, to solve this, let's move one.Currently we have the Read another translation of this story
buttons low on the page:
Let us move them up to the TRANSLATION head
If alternate_translation_priority_order = 1 for a translation, change headings on first translation page to SUMMARY OF FIRST TRANSLATION FIRST TRANSLATION TO CITE THIS FIRST TRANSLATION
Also, add a sentence in the Story Detail top info box part If alternate_translation_priority_order is NOT empty for this story, display this sentence
This story is available in multiple English translations. Read the next translation here. Read the previous translation here.
First Translation [link], Second Translation [link].
If it has three translations, display
First Translation [link], Second Translation [link], Third Translation [link].
etc.
Do NOT display sentence if alternate_translation_priority_order is NULL
This story is available in multiple English translations. To see the various translations, you can go to their dedicated pages. Read the next translation here. Read the previous translation here.
If the Translation table Summary field is empty, sometimes the word Summary appears and sometimes it doesn't? Here it doesn't appears Here it does appear
To see the various translations, you can go to their dedicated pages: First Translation [link], Second Translation [link], Third Translation [link], Fourth Translation [link], Fifth Translation [link], Sixth Translation [link], Seventh Translation [link], Eighth Translation [link], Ninth Translation [link].
First Translation [link], Second Translation [link].
If it has three translations, display
First Translation [link], Second Translation [link], Third Translation [link].
etc.
Problem
Two buttons should not be in the same place, and look the same, one about next part story and one about translations of story See 141-A and 76 and 100, etc.
Also, information that there are multiple translations should appear higher on the page