Archives for: August 2011

29/08/11

Permalink 02:09:15 pm, by jamie, 782 words, 159 views   English (CA)
Categories: Notes; Mins. worked: 0

Notes upon my departure

The website is located at: http://pear.hcmc.uvic.ca:8081/lansdowne/site/index.xql

the Lansdowne app lives in the webapps-dev directory on Pear.

To connect to the database: see the documentation ODT.

The Website

The website is a feature-complete, sparse prototype. The site is based on a version of the FrancoToile site, albeit without a lot of the FrancoToile features such as multi-language support.

Pages

Home and About: these are two simple pages that simply display static content.

Browse: grabs a list of movies from the collection, and simply loops over and formats them into an unordered list.

Search: Upon form submission, an XPath statement is dynamically built from the options selected by the user.

The comment in the search.xql script explaining how the results are parsed and formatted:

Search for videos using the XPath filters constructed above. Because the filters are constructed dynamically and stored as an xs:string, we need to use util:eval to grab the collection because the collection() function doesn't accept variables, just a hard string for an argument.

The search uses the eXist KWIC ('keywords in content') module to parse search results:
http://demo.exist-db.org/exist/functions/kwic

Each result in the initial for ... in loop is expanded with kwic:expand(), which formats the query results and turns them into organized search hits. Then, the kwic:get-summary() function is executed on each record in the search result. This returns a <p> element with three child <span> elements: the hit itself, and the chunks of text that come before and after the hit. These results are output as a list element.

The Transcripts and Incidents

The most interesting part of the site – and the only part that differs from, or goes beyond, FrancoToile – is the incident or 'event' support. While the FrancoToile site displays the transcript – that is, tei:u (utterance) elements in the data – corresponding to the time of the video, the Lansdowne player also displays 'incidents', which are extra sets of information in the tei:body element of a data file. On the public-facing website, these incidents are called events. Gbua1.xml has an 'incident' set that looks like this:


<div type="incidents" xml:id="slideIncidents">
                <div xml:lang="en" type="lang">
                    <head>Slides</head>
                    <incident start="gbua1s0" end="gbua1s1">
                        <desc>slide 1 - <ref target="http://en.wikipedia.org/wiki/Archivo_General_de_Indias">Archives of the Indies and Seville</ref>
                        </desc>
                    </incident>
                    <incident start="gbua1s1" end="gbua1s2">
                        <desc>slide 2 - Arial view of the Rio Belen, Panama</desc>
                    </incident>
                    <incident start="gbua1s2" end="gbua1s3">
                        <desc>slide 3 - People using a <ref target="http://en.wikipedia.org/wiki/Magnetometer">magnetometer</ref> on the beach in <ref target="http://maps.google.com/maps?f=q&hl=en&q=Jamaica&ll=18.442973,-77.198009&spn=0.113828,0.190716&t=k">St. Anne's Bay, Jamaica</ref>
                        </desc>
                    </incident>
                    <incident start="gbua1s3" end="gbua1s4">
                        <desc>slide 4 - Researchers examining seabed core samples</desc>
                    </incident>Default
                    <incident start="gbua1s4" end="gbua1s5">
                        <desc>slide 5 - Underwater photo of a Byzantine wreck</desc>
                    </incident>
                    <incident start="gbua1s5" end="gbua1s6">
                        <desc>slide 6 - Turkish sponge diver standing on the deck of a boat</desc>
                    </incident>
                </div>
            </div>

Each incident's @start and @end must correspond to a timeline/when element, just like an utterance.

To make a series of events appear on the player page, one need only add the XML markup like above. Each series of events (that is, div type=”incidents”) will automatically be loaded into the page via an XSLT transformation using xslt/incidents.xsl. The full transcript of each event series will appear in the “Events” tab of the player, while the individual incidents themselves will appear below the movie at the appropriate time as defined in the timeline.

What's to be done now?

Without much data, it's tough to say what kind of changes and improvements this website needs. It's feature-complete for now, but undoubtedly will require some expansion if a full suite of data is ever added. For example, the 'browse' page could probably use pagination and sorting options, the player page may need to display the events/incidents with more bells and whistles, and so on.

25/08/11

Permalink 11:47:45 am, by jamie, 137 words, 262 views   English (CA)
Categories: Notes; Mins. worked: 0

HTML5 video element with multiple source children does not validate

According to the HTML5 spec, this is valid code:


<video controls="controls" width="320" height="256" id="gbua1"> 
                            <source src="http://lettuce.tapor.uvic.ca/~taprlans/media/gbua1.m4v" type="video/mp4; codecs="avc1, mp4a""></source> 
                            <source src="http://lettuce.tapor.uvic.ca/~taprlans/media/gbua1.ogv" type="video/ogg; codecs="theora, vorbis""></source> 
                            <p> 
                                <a href="http://lettuce.tapor.uvic.ca/~taprlans/media/gbua1.m4v">Download the video</a>.</p> 
                        </video>

According to the W3 validator, however, it's invalid. Removing one of the source elements gets rid of the validation error. This doesn't affect the performance of the video. So, it's just a case of waiting for the validator to catch up to the standard.

19/08/11

Permalink 04:54:33 pm, by jamie, 94 words, 167 views   English (CA)
Categories: Notes; Mins. worked: 0

Stopping and starting Lansdowne webapp froze Tomcat

After I successfully deployed the Lansdowne eXist app on Pear I had to make a minor change to controller-config.xml, after which I needed to stop and start the app. So, I attempted to do so in the Tomcat manager. Stopping the app worked, but upon pressing 'Start' Tomcat basically froze up, resulting in timeout errors for all Tomcat apps on pear.hcmc.uvic.ca:8081 . I submitted an urgent ticket and sysadmin restarted Tomcat within 20 minutes.

I've used the stop/start functionality before on pear (for Francotoile), so I'm not sure what happened here.

Permalink 04:07:08 pm, by jamie, 30 words, 149 views   English (CA)
Categories: Notes; Mins. worked: 0

eXist rebuild on Pear

I've put the eXist version of the Lansdowne site, which is essentially a feature-complete prototype, on Pear:

http://pear.hcmc.uvic.ca:8081/lansdowne/site/index.xql

All is running well.

Lansdowne Lectures

This pilot project which will determine best practices for the digitizing, archiving and publishing of UVic's Lansdowne lecture series. The existing collection, primarily stored on videotape, will be digitized and archived in the first phase. The second phase will address the accessibility of the material to the general UVic population. The intent is to produce a web-based application that will allow users access to all of the lectures produced within the Faculty of Humanities.

Reports

Categories

August 2011
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

XML Feeds