FieldDB / migmaq-lessons

Repository for website building Mi'gmaq language lessons.

Home Page:http://fielddb.github.io/migmaq-lessons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

not all lesson items show up in pagination

hisakonog opened this issue · comments

added lessons 1 and 2 and not all items (vocab or dialog) are loaded, e.g. lesson 1 has 16 items but only 8 shows up in pagination, lesson 2 has 22 and only 6 shows up.

in short, the reason was that the xsl did not reflect the data structure of the xml.
the pagination took dialog/line (or vocab/line) as a unit, but in xml data, dialog (vocab) embeds line (and line further embeds migmaq, eng, picture and soundfile), and some dialog contains more than one line. dialog and line do not have one-to-one correspondence, which caused the paginated items to look less than the actual number of items in the xml (without console error).
edited the xsl to reflect the embedded structure of the xml data. now the pagination takes dialog or voab level, and the paginated content includes all the lines (and elements underneath) embedded in one dialog/vocab. this completes the task of putting question-response type of dialogue in one modal, but opens up another issue of non-one-to-one correspondence between line and sound/picture file. see #6