Had a closer look at the fotonotes spec. It is just an XML schema. So implementing fotonotes requires parsing a fotonotes xml document, search for imreg tags that specify a region on the image, convert that to image map tags in HTML. Then pull out the description for a popup region from the fotonotes spec and pass that to the javascript tooltips function. That should cover the presentation implementation of fotonotes. As to what you want to do with the meta-data associated with the fotonote, well that can be pulled out and inserted into LORS.