I've now implemented all the features from our plan this morning:
page.htm?page=about, which causes a lookup in the database like this: collection(concat('/db/myndir/', $sitePage, '/'))//TEI[@xml:id=$sitePage], where $sitePage comes from the page URL parameter.Then went onto bug-fixing, and one obvious bug was in the popups, in which all the text appeared to be a link to something irrelevant. After an hour of trying to figure this out, I realized it was caused by there being an empty self-closed link in the keywords box; this turned out to be caused by the fact that PAB had invented a new class of thing called "nouns" in the names.xml file (which she let me know about back in May), and then commenced linking to them using the <term> element. My code knew nothing about either of these things, because I had neglected to implement the handling code, so the relevant "noun" was not being retrieved, hence there was no text to form the link in the keywords box. Fixed now, but mighty puzzling for a while.
No Pingbacks for this post yet...