St Pete: XSLT output tweaks, and automated extraction of abstract
Posted by mholmes on 30 Mar 2015 in Activity log
On JT's instructions, added handling for quoted material and following punctuation, as well as titles. Also, it turns out students were not asked to create abstracts, and their initial paragraphs are too long to function as abstracts in the popup context, so I've added code to automatically extract the first X characters (preserving their markup context) to form an abstract automatically; this is serialized, escaped and encoded into the JSON file as a desc field. This is a re-usable technique. I rely on saxon:serialize, but XPath 3 brings a formal equivalent that we should switch to at some point.