Fixed a bug in date display
Posted by mholmes on 30 Sep 2009 in Activity log
We're now making a habit out of marking up all dates wherever they occur in the documents, and this caused a problem with the XSLT processing dates, which assumed that they were block-level elements (as they are in the openers and closers of despatches and minutes). I'm now processing them only when they occur outside <p> and <ab> tags, to avoid rendering them as <div> elements in the output when they're actually inline. At some point I may refine this to detect when they're inline, and also perhaps add some extra processing to produce a title attribute which could display the full date in a tooltip (since many dates are partial, and thus ambiguous if you're scanning or searching a document rather than reading it sequentially).