Found and fixed some problems with bio encoding and display:
- Some empty (incomplete) bios were lacking a type attribute to indicate that they were incomplete, causing them to display no message when clicked on. Fixed the source XML.
<div>tags generated from empty<p>tags in the XML source were often self-closed. This is not terribly wrong, but can cause problems in some browsers, so I added a non-breaking space to the end of the output from any<p>or<ab>tag to prevent them from being self-closed by the serializer.- Links from one bio to another were not working when bios appeared on document pages, because they were simply showing up as in-document links. Added some code to the handling of
<ref>tags so that in that context, a link to the bios document is constructed.