Working on display of reference information
Posted by mholmes on 18 May 2010 in Activity log
Today:
- Integrated retrieval of reference information into
search.xq
(which is used to create the index page, and which may have a document id specified for display). Previously I had only got this working initem.xq
, which is used for AJAX retrieval of a document for insertion into the existing page. The two XQuery files draw on the same core code inmdhUtils.xqm
, but they construct their documents slightly differently. - Added processing for all elements that can contain @ref attributes pointing to reference information, so that they turn into spans with dotted underlines, and clicking on them calls a
showReference
JS function. - Added a reference popup (HTML in the XSLT, JS and CSS to match), added to the bottom of the page, modelled on the Mariage popup (but simpler because it never retrieves info by AJAX; all info is already in the page, added through XQuery).
- Added rudimentary processing for some of the back matter references, in particular
<listPerson>
/<person>
, to test the popup. It's working.
Next I need to add handlers for all the other kinds of lists that are being retrieved, and also some processing for basic TEI tags to improve the display of the popup.