Islandora-Labs / islandora_solution_pack_oralhistories

Adds all required Fedora objects to allow users to ingest and retrieve Oral Histories (video/audio) files through the Islandora interface
GNU General Public License v3.0
13 stars 23 forks source link

indexing multiline TRANSCRIPT xml #81

Closed kimpham54 closed 7 years ago

kimpham54 commented 7 years ago

Description For content in the TRANSCRIPT xml that uses line breaks, INDEXMEDIATRACK doesn't transform content past the first line

Steps to Reproduce

  1. Have an oral history with TRANSCRIPT xml that includes line breaks, like:
    <cue>
        <speaker>Test Speaker One </speaker>
        <start>31</start>
        <end>36</end>
        <transcript>It’s six o clock in the morning on the farm of Elton Woodside, near Clinton,
            Prince Edward Island. </transcript>
        <translation_fr>Il est six heures du matin dans la ferme d'Elton Woodside, près de Clinton, Île-du-Prince-Édouard.</translation_fr>
        <translation_ch>早上六点钟在Elton Woodside的农场附近,靠近克林顿,爱德华王子岛。</translation_ch>
        <translation_hi>यह क्लिंटन के पास एल्टन वुडसाइड के खेत पर सुबह छह बजे है, प्रिंस एडवर्ड द्वीप।</translation_hi>
  1. View INDEXMEDIATRACK datastream

Expected Behaviour All content is transformed into , it would look something like this:

<cue>
<start>31</start>
<end>36</end>
<speaker>Test Speaker One </speaker>
<vtt_text>It’s six o clock in the morning on the farm of Elton Woodside, near Clinton,
            Prince Edward Island. </vtt_text>
</cue>

Actual Behaviour All content after the first line is cut off in INDEXMEDIATRACK's element.

Notes Discovered when testing https://github.com/digitalutsc/islandora_solution_pack_oralhistories/issues/75

kimpham54 commented 7 years ago

original issue resolved with https://github.com/digitalutsc/islandora_solution_pack_oralhistories/pull/82