Static build process: more progress
I've implemented the page content menu for XHTML output pages, and it's working well; results are slightly different than for the current output, but I believe they're actually more logical. Much use made of tunnelled parameters. I've also implemented a sortKey system for bibls, so that when they're imported into documents as references, they get ordered correctly. There are a number of things I need to fix, though, relating to the display of footnotes (which are not hidden by default), and I also somehow need to handle the problem of bibls displayed in the document not having their titles converted into links. The issue is that I was thinking ahead to the single-page display, where the title obviously shouldn't be a link, but I probably have this backwards: the AJAX fragment should have a link, pointing to the static page, and when that is processed into the embedded reference it should be retained, but when the static page is created, it can be removed. However, the in-page instance of the link needs to generate the popup, in order to show the "cited in" bit, whereas the popup needs to jump off to the single page view. Too complicated for my simple brain today; come back to it next week. Meanwhile, the new stuff is working well.