When adding XSLT processing for the <head> tag, I had neglected to suppress its processing inside <lg> during both the <lg> scenarios (one of which uses <ul>, while the other uses <div>s and <span>s because <fw> tags appear inside <lg>s). <head> is now rendered first, and suppressed later, in both scenarios.
At ECH's request, GN added password-protection through changes in WEB-INF/web.xml and to Tomcat-dev's tomcat-users.xml. I've now updated my copy of the first file, and added it to SVN. Found a conflict in SVN with two files and one directory, but there didn't appear to be any actual differences, so I resolved by reverting before making my commit.
Following PAB's instructions based on a request from her supervisor, the MyNDIR project has been temporarily password-protected. To do that, I followed my own instructions here. One wrinkle worth documenting:
After making the required changes, I tried restarting the webapp in the Tomcat manager. This appeared to work; however, when I tried to access it, I was challenged for authentication, but the authentication was not accepted. It seems that Tomcat perhaps does not re-read its tomcat-users.xml file unless it's restarted, so although Cocoon knew authentication was required, Tomcat was unable to process it. So we tried restarting Tomcat (in this case, tomcat-dev), logged on as me using sudo on the init script as documented elsewhere. This generated a problem we have seen before: the running instance of tomcat-dev failed to stop, and when a new process was started, we ended up with two running. The only way we could find to solve this was to su to hcmc (under which the processes run), and kill both of them. The first (the new one) was effectively killed with just kill, but the other required kill -9. Once both were stopped, we were able to run the init script (as me, using sudo), and Tomcat restarted. Greg is asking sysadmin to figure out what the problem might be here; we've encountered it several times now.
The movies at http://francotoile2.uvic.ca used as a base URL: http://francotoile.uvic.ca/media/
When the eXist site was switched to francotoile.uvic.ca, however, those paths became invalid. So, I updated the movie player to use the 'real' base URL on lettuce: http://lettuce.tapor.uvic.ca/~florevid/media/
This is a decent temporary solution, but I will experiment with putting the media files on the Pear file system and then using an XQuery script to stream the videos, rather than using lettuce.
***per Jamie's idea, how about a mod_proxy def. like:
http://hcmc.uvic.ca/$projName that resolves to a /home1t/$projName/media/ folder
so projects serving media can use a URL like:
http://hcmc.uvic.ca/florevid/media/somevideo.mp4
I've spent most of today figuring out an approach for importing the old spreadsheet data discussed in previous posts. This is what I've got to so far:
- I opened the file in LibreOffice, deleted all but the first sheet (only the first sheet has corrected data), and saved it as a FODS file.
- I wrote an transformation called unwrap_fods.xsl to eliminate all elements and attributes we don't need, and to unravel colspans so that we have the same number of cells in each row. At the same time, I eliminated all instances of "na" from cells where it was the only content; this is (I assume) the same as empty.
- I've written most of a second XSLT stylesheet called nest_data.xsl which is generating a single record from each row, but which uses nesting to manage the owner, mortgage etc. blocks in a logical manner. At the moment, every row has a complete set of cells for up to eight owners, even where there's only a single owner. I'm now processing all this data into a single
<owners>element containing only one<owner>element for each owner who actually exists. (The XML format is invented just for this purpose, because it's purely transitional.) I now have to do the same for the 22 mortgage blocks.
Once I have this XML, the plan is to create four XSL stylesheets which produce SQL inserts for the property, mortgage, owner and title tables. Each of these tables will have a new field added to it which can be used to store a unique value for each source record (row in the original table); then these fields can be used to create records in the linking tables. Finally, a process will have to be worked out which can generate lists of potential duplicate records, which can then be checked by a human, and merged if appropriate. This problem is not directly related to the current one, but the issue of duplicates will be much worsened by the automated adding of data through this process.
After digging in our heels and grunting through a bunch of Apache rewrite rule combinations, Greg and I came up with a VirtualHost entry for francotoile2.uvic.ca that does the job, in that http://francotoile2.uvic.ca points to http://pear.hcmc.uvic.ca:8081/francotoile/francotoile/index.xql . Getting it to work basically just came down to trying a lot of different combinations of various RewriteRule and JKMount lines until something worked. We gave the VirtualHost stuff to ER at systems who implemented it (and expanded it a bit). Here's the working entry:
<VirtualHost *:80>
ServerName francotoile2.uvic.ca
DocumentRoot /home1t/florevid/www
RewriteEngine On
RewriteRule ^/$ /index.xql
RewriteRule ^(.*)$ /francotoile/francotoile$1 [PT]
JkMount /francotoile/francotoile/ dev
JkMount /francotoile/francotoile/* dev
ErrorLog "|/usr/local/sbin/cronolog
/usr/local/apache2/logs/francotoile.uvic.ca-error_log.%Y%m%d.%X"
CustomLog "|/usr/local/sbin/cronolog
/usr/local/apache2/logs/francotoile.uvic.ca-access_log.%Y%m%d.%X" combined
</VirtualHost>
Now we're just waiting on ER to point the Pear site to http://francotoile.uvic.ca instead of francotoile2, which'll wrap up the new version of the site.
Deposited HB's 2nd Qtr. cheque to Accounting.
The abbreviations deriving from Latin, listed in CC's post, will be handled like this:
- Each distinct abbreviation will have a
<glyph>element in the<charDecl>section of the file header, explaining it briefly. - Each instance of the abbreviation will be marked up in the original transcription following this pattern:
<choice> <abbr>Vo<hi rend="vertical-align: super;"><g ref="#theGlyphTag">9</g></hi></abbr> <expan>Vous</expan> </choice>
- The XSLT will display ONLY the rendered
<abbr>element, and will give it a@titleattribute for mouseover which is constructed from the information in the<glyph>element(s) referenced inside the<abbr>. This differs from a regular<choice>/<abbr>/<expan>, in which the<expan>is used as the@titleattribute. The actual expansion will normally be available to readers in the modernized transcription, since these all occur in the engravings.
Catching up on first day back...