...spent helping Stew figure out some more of Mike's XQuery code.
Took what I'd learned in previous posts and applied it to other instances of the id() method call on FrancoToile: specifically the bookmarks, search-in-page and transcripts files. Martin helped, particularly with the two-level call needed in the search-in-page instance.
With Greg also investigated differences in eXist configuration files between the lansdowne and FrancoToile instances - can't find any that explain the different behaviour, so now the mystery is how the lansdowne video site is working.
Have tested fairly thoroughly now against the lansdowne site and appear to be getting identical behaviour.
Still haven't investigated whether any of this will help with the problem encountered on the Map Of London site.
Next will be adding the advanced search GUI for filtering videos including grabbing the legal values for each control, and writing the xquery based on the state of those GUI controls
Compared php, javascript and eXist db files on FrancoToile and Lansdowne video sites. Eventually discovered that the code I'd written to replace Mike's id() calls included some explicit calls to the TEI namespace which had not been declared. This caused eXist to return an error. We have fixed the problem in helpers/get_events.php, but I'll have to go through all the other instances of id() and my replacement code to ensure they're properly written, either with the namespace declaration and namespace prefix, or with neither. Thanks to Martin for spotting the problem, see his post.
Not yet sure if it will also solve the problem with the Map of London site reported here.
...spent trying helping Stew figure out why one site (Lansdowne) works and the other one (FrancoToile) doesn't. After a lot of diffing between the sites, eventually discovered that the helpers/get_events.php file had a namespace error; the default namespace was being set to the tei namespace, but the query was being done with a namespace prefix of tei: which wasn't mapped to anything.
I answered a couple of questions from Catherine and MarieClaude (who were in for usual Thursday morning session) on how to encode attributes and timestamps for when and utterance elements.
They wanted to identify regions of a country in the language tag (e.g. New Brunswick rather than Quebec), so I checked into details of legal formats for the ident attribute of the language element, reported that information back to Catherine and MarieClaude and gave them a solution that meets their needs.
Catherine generously offered to include my name in a presentation she is considering proposing to the edmedia conference in Vancouver next June.
Succeeded with Martin's help in rewriting the search query on the search.php page to avoid the errors generated by the id($var) call. Now successfully gets number of hits of search string in each article in collection. Yet to do: return list of timestamps corresponding to hits - requires editing another piece of code that uses the id($var) construction
Applied that knowledge to similar problem in player.php page, so that now successfully gets list of videos in collection and plays video file. Yet to do: get the transcript to appear. No error message appears, but I suspect it is another instance of the id($var) construction.
Nov 29 add link to related post on MapOfLondon in Depts blog
I prepared a template data file and went through it with Catherine and Marie-Claude. We decided which elements to use to capture necessary information and I demonstrated how to start a new file from the template, find the necessary places to enter information, and enter information in the oXygen editor.
Based on meeting, I updated the template file and sent a copy to them, but I have yet to update the rng file to restrict tags available to only those we want to use.
They have rng and template xml files on their laptops.
The project consists of a collection of video files with XML transcript files. Catherine and MarieClaude need to learn to create standardized video files, get timestamps for each utterance (iMovie and QTPlayer) and then create an XML file in Oxygen which validates against the FrancoToile.rng file. Task will be considered done when they have produced their first complete video clip and valid data file.
Declared complete 19 Dec when Catherine said they had completed and validated one data file with video.
Code for this project is based on Mike Elkink's code for Lansdowne lectures. It uses PHP to generate xqueries which are evaluated against an eXist database. I need to learn enough xquery to add search filters needed for this project, and to overcome the id($var) calls, which work in lansdowne but are generating errors here.