Office printer supplies:
Ordered 4 toner cartridges, 1 collection unit for HP printer.
Sent web requisition.
On late duty.
Today I've started work on a completely new web application for the Despatches project. The first stage has been to get a good working build script; I'm using the one Greg created in the svn/hcmc/utils repo, but I've tweaked it a bit (and recommitted the changes) so that it will include the Scheduler extension, which I think we may use for building OAI files.
I've decided to build this app (initially at least) in the form of an eXist .xar file, so I've been learning how xar files work and how they're built. I've configured the ant build.xml script so that it can update the svn copy of the data and copy that into the xar file from the original svn location, excluding certain files. This is a good start, and it means we should be able to create an easily-updated, easily-deployed version of the webapp for testing with new builds of eXist as we move forward with the rewrite. There's a lot of stuff from the standard xar setup that I'm not going to follow, and I definitely won't be using any of the templating stuff, but I see no reason not to use the basic xar deployment functionality.
I'm also going to reconfigure the SVN file structure a little too, to make it more friendly for XQuery targetting the despatches. I'll move the "year" directories into a single "despatches" directory.
I took Greg's script for building eXist and messed around with it quite a bit so that it can now include the job scheduler, which I think I'm going to use for the new build of the Despatches.
Leaving early.
I've made a few tweaks to the Page contents and Credits menu CSS. Firstly, I noticed that the contents menu was throwing up a horizontal scrollbar, so I've fixed that. I've also added nesting indents to the Page contents menu, as KMF asked me to do ages ago. Finally, I reduced the left padding just a little in both menus so that they make slightly better use of space.
I've made a number of changes this morning in order to xinclude the contents of the editorialDecl_mayoral.xml file into the headers of each of the mayoral show documents:
editorialDecl_mayoral.xmlhas been moved from/info/to/litref/library/a_lord_mayor/, so that it's alongside the files it applies to.- The odd file and schema has been updated to allow the use of XInclude elements in the appropriate places in
<editorialDecl>and its children (as shown below). - Each of the mayoral show files now has an an
<editorialDecl>element inside encodingDesc that looks like this:<editorialDecl> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="editorialDecl_mayoral.xml" xpointer="xpointer(//div[@xml:id='editorialDecl_mayoral_preface']//p)" parse="xml"> <xi:fallback><p>Unable to find required sections from the editorialDecl_mayoral.xml file.</p></xi:fallback> </xi:include> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="editorialDecl_mayoral.xml" xpointer="xpointer(//div[@xml:id='editorialDecl_mayoral_text_structure']//p)" parse="xml"> <xi:fallback><p>Unable to find required sections from the editorialDecl_mayoral.xml file.</p></xi:fallback> </xi:include> <normalization> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="editorialDecl_mayoral.xml" xpointer="xpointer(//div[@xml:id='editorialDecl_mayoral_regularization']//p)" parse="xml"> <xi:fallback><p>Unable to find required sections from the editorialDecl_mayoral.xml file.</p></xi:fallback> </xi:include> </normalization> <interpretation> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="editorialDecl_mayoral.xml" xpointer="xpointer(//div[@xml:id='editorialDecl_mayoral_interpretative']//p)" parse="xml"> <xi:fallback><p>Unable to find required sections from the editorialDecl_mayoral.xml file.</p></xi:fallback> </xi:include> </interpretation> </editorialDecl>
Any new mayoral show documents should be created with the same component in the header. I've updated the template TEMP3.xml as well.
The editorialDecl_mayoral.xml file has been slightly changed in structure because <editorialDecl> and its children allow only <p> and <ab> elements inside them, so all key content must be enclosed in <p> elements. One section has a <table> element which was originally a direct child of a <div>, but I've now included that table in the <p> which introduces it, allowing it to be imported into the <editorialDecl>.
Changes to editorialDecl_mayoral.xml should be inherited by all the mayoral shows automatically.