I now have the app pulling back a drop-down list of cities, based on the years selected, and then generating lists of tracts for each year. There is the problem, though, that some cities don't have data for all the years you submit. I'm waiting for feedback from JS-R about whether I should filter the city selection list to only those cities for which there's data for ALL the years you've selected. I think that should be the case, but I'm not quite sure.
Spent most of today creating an interface to allow the user to specify a record number they want to edit, then grab that record from the db and present the html form with all the values in the elements set based on the values for that record obtained from the db. Validated the page too.
Have written the stubs for the code to update the db from the page, but did not have time to start on the actual code.
Received the first article for the new edition of the IALLT Journal, so I started marking it up. I've nearly finished that article. Notes at this point:
- I haven't yet marked up all the names and abbreviations in the body of the document. There are lots. I'll do that tomorrow.
- This article has fournew types of bibliographical item, which I've tagged as
onlineBrochure,onlineFactSheet,onlinePublicAnnouncement, andsoftware. The first two can probably be handled identically, but I'll need to write three XSLT handlers for outputting these types in APA format, as recommended in the APA electronic guidelines supplement. - I wrote a couple of bits into the sitemap and the
contents.xqfile so that going to a specific page will show the articles uploaded into the db but not released yet; they're tagged astype="proofing"in their<teiHeader>tag. The editors will be able to view these documents through a special contents page. - I still have to ensure that searching and indexing doesn't include proofing documents. That'll need a bit of work. It might be a better approach to store them in a separate collection, and write handlers based on the collection.
Stayed very late debugging JavaScript in CityStats; I'm making progress, but needed a long uninterrupted run at it to get the basic classes written and debugged.
Created the first two stages of the wizard, which involve selecting years, then creating amalgamated groups of years+ethnicities which can function as units. Asked JS-R to see if such amalgamations can actually work in a meaningful statistical sense -- in other words, can a useful query actually be created by combining the data from different ethnicities in the same year? The answer is yes, as long as the data are added before the calculations are made. I'm not sure which calculations these are, but hopefully they're the ones we'll be making at the end, rather than the ones made when data is uploaded into the system from the CHASS files.
It's a pleasure to be working with pure JavaScript and plain hand-coded AJAX after all that JQuery nonsense. Slow but steady...
CP and I met to discuss the launch and plan our bit:
- Installed Tomcat and the ColDesp Cocoon on his laptop -- it will be our backup laptop. Had to make sure we installed to the local disk (default logon uses a remote profile), and set the JAVA_HOME correctly. Works fine.
- Wrote an outline for our ten-minute spot:
- A quick look at the original print volumes, showing how much material there is, but also how difficult it can be to find things -- these images will do the job, to save taking the set down with us:
- A look at some images of the original documents, showing that they're quite complicated and hard to read:co_60_01_00002r.jpg, and talking about the annotations/minutes etc.
- A look at the same document in the Website (V58007.scx), showing how marginalia and minutes are transcribed, and how footnotes and bios work.
- A couple of sentences (perhaps with a diagram) discussing the transmission delays and consequent difficulties in reading the documents in a threaded manner.
- How search on the web site can help this. We can do a quick search for "Royal Engineers" in 1858 to show how useful topic searching can be.
- A quick demonstration of the biographies, and how each bio links to every mention of the person in the 1858 documents.
- A list of what still needs to be done. For instance: placename markup. Cowichan is spelled at least six different ways: Cowichan, Cowichin, Cowichen, Cowitchin, Cowitchen, Cowitchan. Proper markup would enable all mentions to be tagged as the same object, and found easily.
Phone calls and backups kept me behind...
Got word from developer updating Pacific Asia site that changes were ready to be migrated from the dev account into the main server account. Did that, and also synced changes made this morning for HN and AL, so that the dept site is fully updated and the dev site has all its changes.
JH has been writing a long, detailed introduction to the documents, and I now have the first three sections. I've converted them from RTF to XHTML, using the normal conventions on the site (so that footnotes pop up, etc.). I also had to tweak the site CSS a bit in order to leave margin room for the footnotes.
I started porting JavaScript code from other projects to handle the GUI component of the wizard, and started with the AJAX stuff. These are some gotchas that held me up, and are worth blogging because I'll forget them for sure:
- Any form should have
onsubmit="return false;"if any of its form elements are going to invoke AJAX functionality, otherwise the AJAX interaction will be interrupted by a reload of the page, which you might not notice (I didn't, for ages). It just looks like the AJAX transaction fails, but what actually happens is that the page which invoked it is gone by the time it comes back. - The backend PHP must send a proper XML header:
header('Content-type: text/xml; charset=utf-8'); - The PHP must return a well-formed XML document (not a fragment).
- The root element of the document returned must have the explicit XHTML namespace:
<div xmlns="http://www.w3.org/1999/xhtml">
If you don't do that, the data can't be inserted into the receiving document by Firefox or Safari. - Any PHP error messages will destroy the well-formedness of the returned XML block, so the AJAX will fail to parse it.