TASK: migrate to Greg's new look
Posted by mholmes on 08 Mar 2007 in Activity log, Tasks
As part of the move to the new design, we should refactor a lot of the original site code. Here are things we should do:
- The index XML generated through
index.xq
is not TEI XML; it's a temporary format just used for rendering. Now that we have explicit biblStruct elements for each document, we should actually construct a proper TEI document containing a<listBibl>
element which simply lists the<biblStructs>
. The only question is, when there is more than one, do we include both? We could include both using thecorresp
attribute to link them both to the same document id, and then process only the first. - This is an appropriate document format:
<TEI xmlns="http://www.tei-c.org/ns/1.0"> <teiHeader> <fileDesc> <titleStmt><title>test</title> </titleStmt> <publicationStmt><p></p></publicationStmt> <sourceDesc> <listBibl> <bibl></bibl> </listBibl> </sourceDesc> </fileDesc> </teiHeader> <text><body><div></div></body></text> </TEI>
- There is also the problem of the classCode element, which is not in the
<biblStruct>
. We need to find a way to get that information into the<biblStruct>
(where it should presumably be encoded anyway). - Having updated index.xq, we'll then need to update index.xsl to process the results.
- The XML will then serve as a useful bibliographical reference for the whole collection, and can be made available directly.
- The JavaScript inserted by the index.xsl file should be abstracted into a separate file (if it's actually needed -- it's to do with the menu display, which is changing anyway).
This is urgent -- we need the design working next week before the showcase.