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

provide vtt index similar to xml index #90

Closed Natkeeran closed 7 years ago

Natkeeran commented 7 years ago

What does this Pull Request do?

This PR indexes VTTs in a similar way as XML transcripts.

How should this be tested?

kimpham54 commented 7 years ago

hi @Natkeeran, I'm still getting one vtt_content element:

<arr name="vtt_content">
      <str>3136Test Speaker One यह क्लिंटन के पास एल्टन वुडसाइड के खेत पर सुबह छह बजे है, प्रिंस एडवर्ड द्वीप।3643Test Speaker Two पहले दौर का काम किया जाता है और अब एल्टन के लिए अपना पेपर करने का समय है4449Test Speaker Three यह कोई साधारण कागज मार्ग नहीं है, क्योंकि उसे पूरे द्वीप प्रांत को एक सप्ताह में कई बार कवर करना पड़ता है,5055Test Speaker Four एक सफल खेत चलाने के अलावा वह पायलट, मैकेनिक, और ग्राउंड क्रू, सभी हैं5658Test Speaker Five उसने अपने ही हैंगर का निर्माण भी किया।6473Test Speaker Six डेयरी झुंड अब जब वह अपने क्षेत्र से बाहर ले जाता है और शार्लेटटाउन के लिए साफ समुद्री इलाकों के ऊपर मक्खियों का कोई ध्यान देता है।8588Test Speaker Seven वह हवाई अड्डे पर समाचार पत्र के ट्रक को मिलने के लिए कुछ मिनटों में है।8992Test Speaker One नवीनतम विमान के बंडल अपने विमान पर आते हैं,9397Test Speaker Two छोटे द्वीप के बाहरी हिस्सों के लिए बाध्य100104Test Speaker Three कागज़ात अच्छी तरह से बंधे रहें, क्योंकि यह एक एयर ड्रॉप डिलीवरी सेवा है।105112Test Speaker Four अखबार द्वारा रखे गए लड़कों और पुरुषों को बंडलों को लेने के लिए चयनित बिंदुओं पर इंतजार कर रहे हैं और प्रतियों को ग्राहकों के दरवाजे तक पहुंचाते हैं।117128Test Speaker Five वर्षा या शाइन, वुडसाइड अपने मार्ग को कवर करते हैं। उत्तर के अंत में मछुआरों, होग द्वीप, मास्कोऊस और पोर्ट हिल में ग्रामीणों को सुबह शाम मिलती है, शार्लटटाउन शहर के लोगों की तुलना में ज्यादा देर नहीं।138147Test Speaker Six ब्रूसिड शायद दुनिया में विजेता हाथ बमबारी है किसी भी दर पर, वह हमेशा खुले प्रतिस्पर्धा में स्थानीय हवाई मिलने पर पुरस्कार जीतता है।148153Test Speaker Seven वह एक घंटे में 95 मील की दूरी पर उड़ने वाले बीस फुट सर्कल के अंदर पैकेज के बाद पैकेज डाल सकता है154164Test Speaker One कागजात देने के अलावा, उसका हवाई जहाज हमेशा दया के लिए उपलब्ध है उड़ानें वह कई बार अस्पताल के लिए स्टॉर्क की तरफ निकलता है और चिकित्सकों को रोगियों से बाहर निकालता है।165171Test Speaker Two द्वीप पर हर कोई अपने विमान को जानता है, और वह हमेशा के लिए हैलो कहने या एक संदेश नि: शुल्क लेने का समय है।172180Test Speaker Three जब सर्दियों ने सड़कों को रोक दिया और खेत के आसपास ज्यादा काम नहीं किया, तो वह एक पूर्णकालिक एयरलाइन है, चार्टर यात्री उड़ानें कर रही है191200Test Speaker Four लेकिन आज सुबह, एक या दो घंटे में उड़ान खत्म हो गई है। 8 वें दिन तक कागजात वितरित किए जाते हैं, और एविएटर फिर से एक किसान बन जाता है।207214Test Speaker Five वह भीड़ के साथ, वह हवाई अड्डे पर उर्वरक का एक बैग लेने के लिए नहीं भूल गया। आखिर, यह प्रिंस एडवर्ड आइलैंड है,215300Test Speaker Six और आलू की देखभाल करने के बाद।</str>
      <str>3136Test Speaker One 早上六点钟在Elton Woodside的农场附近,靠近克林顿,爱德华王子岛。3643Test Speaker Two 第一轮的家务活动已经完成了,现在是埃尔顿做文章的时候了4449Test Speaker Three 这不是普通的纸路,因为他每星期要覆盖整个岛屿省,.5055Test Speaker Four 除了经营一个成功的农场。 他是飞行员,机械师和地勤人员5658Test Speaker Five 他甚至建造了自己的机库。6473Test Speaker Six 当他从田野起飞时,奶牛群不再受到任何关注,飞过整齐的海上乡村到夏洛特敦。8588Test Speaker Seven 他在几分钟内到达机场的报纸卡车。8992Test Speaker One 最新一期的捆绑包在他的飞机上,9397Test Speaker Two 限于小岛的外围部分。100104Test Speaker Three 这些文件必须很好地捆绑在一起,因为这是一个送气服务。105112Test Speaker Four 报纸上雇用的男孩和男子正在等待选定的点拿起捆绑包,并将副本发送到订户门。117128Test Speaker Five 雨或闪耀,伍德赛德涵盖了他的路线。 北端的渔民,霍格岛的村民,马斯科什和港口山都有早上的报纸,比夏洛特敦的城市人还要晚。 02:18.000 --> 02:27.000 布鲁克赛德可能是世界冠军手中的轰炸者。 无论如何,他总是在公开竞争的当地空气会议上获奖。148153Test Speaker Seven 他可以把包裹放在一个二十英尺的圆周内以95英里的速度飞行。154164Test Speaker One 除了提供文件外,他的飞机总是可以怜悯飞行。 他多次把鹳给医院,把医生带到离境的病人身上。165171Test Speaker Two 岛上的每个人都知道他的飞机,他总是有时间打个招呼或免费发送信息。172180Test Speaker Three 当冬季封闭道路,农场周围没有太多工作时,他几乎是全职的航空公司,正在开展特许乘客航班。191200Test Speaker Four 但是今天早上,飞机在一两个小时内就结束了。 8点钟的纸张全部交付,飞行员再次成为农民。207214Test Speaker Five 随着这一切,他并没有忘记在机场拿起一袋化肥。 毕竟这是爱德华王子岛,215300Test Speaker Six 有土豆要照顾。</str>
      <str>3136It’s six o clock in the morning on the farm of Elton Woodside, near Clinton, Prince Edward Island.3643The first round of chores is done and now it’s time for Elton to do his paper route4449It’s no ordinary paper route, for he has to cover the entire Island province several times a week,5055besides running a successful farm. He’s pilot, mechanic, and ground crew, all rolled up into one.5658He even built his own hangar.6473The dairy herd no longer pays any attention when he takes off from his field and flies over the neat maritime countryside to Charlottetown.7488He’s there in a matter of minutes to meet the newspaper truck at the airport8992Bundles of the latest issue come aboard his plane9397bound for the outlying parts of the small island.98104The papers must be well tied, for this is an air drop delivery service.105112Boys and men hired by the newspaper are waiting at selected points to pick up the bundles and deliver the copies to the subscribers doors.113128Rain or Shine, Woodside covers his route. Fishermen at the north end, Villagers at Hogg Island, Masqoosh and Port Hill get there morning papers not much later than the city people in Charlottetown.129147Brookside is probably the champion hand bombardier in the world. At any rate, he always wins the prize at local air meets in open competition.148153He can put package after package inside a twenty foot circle flying at 95 Miles an hour.154164Besides delivering papers, his airplane is always available for mercy flights. He’s raced the stork to the hospital plenty of times and taken doctors to outlying patients.165171Everybody on the island knows his plane, and he always has time to say hello or take a message free of charge.172180When winter blocks the roads and there’s not much work around the farm, he’s practically a full time airline, doing charter passenger flights.181200But this morning, the flying is over in an hour or two. by 8 o clock the papers are all delivered, and the aviator becomes a farmer once again.201207With all that rush he didn’t forget to pick up a bag of fertilizer at the airport. After all, this is Prince Edward Island,208240and there are potatoes to be looked after.</str>
    </arr>
kimpham54 commented 7 years ago

works as expected, thank you. default vtt will always be indexed under the field regardless of language/suffix added to VTT filename.