Tested presentation at Govt House, and built portable ColDesp
Posted by mholmes on 16 Jun 2010 in Activity log
Went down to GH with GN and tested our presentation played from the laptop through their large TV. Looks pretty good, although it can't do widescreen and it's CRT TV res. Might not do for showing the website, but that's not a problem really. We can find out about that on the day.
Spent most of the afternoon building a portable ColDesp, and learned that:
- Paths to images in the following files need to be changed:
- docTemplates.xsl
- strings_en.xsl
- imageBrowser.xq
- I put the page-images in a subfolder /
site/jpg_scans
, and the maps in/site/maps
. - I also had to patch the sitemap.xmap file to add this:
<!--Start hacks for portable version. --> <map:match pattern="jpg_scans/**.jpg"> <map:read mime-type="image/jpeg" src="jpg_scans/{1}.jpg"/> </map:match> <map:match pattern="maps/**.jpg"> <map:read mime-type="image/jpeg" src="maps/{1}.jpg"/> </map:match> <!-- End hacks for portable version. -->
- Testing this on the laptop, I discovered that I had to set JAVA_HOME in my .bashrc file to get Tomcat to start up properly:
export JAVA_HOME=/usr/lib/jvm/java-6-sun export PATH=$PATH:/usr/lib/jvm/java-6-sun
I've also used java-6-openjdk on my main machine, and both seem to work fine for Tomcat and Cocoon. - I also discovered that Chromium refuses to access an http://localhost:8080 address unless there is an internet connection! Firefox also balks initially, but if you uncheck "Work offline" on the File menu, it works. That was unexpected.
Otherwise, everything is working fine. I also made a small change to the schedules page at JL's request.
Note to self: having paths distributed across three files makes no sense. Could they be centralized? The problem really is the XQuery file, which can't get info from an XSLT file.