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.
AJAX is cool and all, but in this particular case, staying on the same index.htm page and retrieving documents into the body of it was causing navigation problems; state would be lost if you navigated away to another site. I've now reworked the site so that when you call up a document, you get a hard distinct link to that document (using URL parameters), so that you can navigate away and then come back using the browser's Back button. This required ensuring that the find and kwId parameters used for searching were also preserved across pages, so that the retrieved subset of images is retained as you move from image to image.
Meeting with PAB to finalize the remaining work for phase 1:
<back> matter of the file. The back contains <div type="bibliography">, containing one or more <listBibls>, each with a head and some <bibl>s. These need to be expanded into working lists. A Bibliography heading should appear after "Rights", and there should be a little button after it with the caption "View", which expands the biblio in place.Currently, when you click on an item in the image array, the item is retrieved by AJAX and dumped into the current page. This is not ideal, because if you navigate to another page, the Back button takes you back to index.htm without your selection. It is possible instead to navigate to the XHTML view of the document, including the search parameters, by using a URL like this: index.htm?id=SAM66-074v&kwId=auger01. This should be the default behaviour, removing the need for the "XHTML" link on the document view, and making browser navigation more intuitive.
This should go inside the title box, and have the following links:
About, Contact and Links all correspond to pages in subcollections in the db, so these will need one or more rendering pipelines and probably some XSLT.
I have been away on a research trip for the past month and returned on Sunday evening. In the past two days, I have:
<biblStruct> so that they are all <bibl> now. This will simplify rendering the code.
<availability> for the sites for Nks1867 and SAM66. I would like to have these links open in a new window so that closing or using the back arrow would take the viewer back to the original MyNDIR page.
Note - I created a new schema on May 26th that includes @global.linking in order to enable <availabilitycorresp> on each bibliography item. Will update MH's when we meet today.
PAB updated the biblio and a couple of other documents, and sent some queries which I've answered. The biblio display seems to be working OK -- some formatting tweaks are needed, but those are in the XML. It's now standardized on <bibl> rather than <biblStruct>, which is a relief. PAB has more plans for a JavaScript image viewer, which I took a look at, but this was not in the original plan, and unless it's dead simple I don't think there'll be time for it. I don't see any value added from it either, at the moment, given the standalone nature of each of the images in this project.
Noticed a validation error due to the use of @corresp on <bibl>, and traced it to the fact that the schema I have doesn't include the Linking module. Checking whether PAB's does; if not, we can generate another one tomorrow.
Wrote the XQuery to retrieve the biblio file (one line, basically), and added some new handlers and modifications to tei.xsl, as well as two new pipelines to sitemap.xmap, so that the bibliography XML and XHTML can be retrieved and rendered. This is working down to the individual items, but the items themselves are not being rendered yet because PAB hasn't decided whether to use <bibl> or <biblStruct> (currently both appear in the file); and once that decision is made, we need to know what style guide to target.
I came across a bug due to competing template matches in the XSLT for titles, when clicking on the XHTML link for individual documents. This was presumably caused by my quick ad-hoc fix for the previous <title> problem. I've now simplified the handling of <title>s, dividing them into those which have @ref attributes (which need to be turned into links), and those which don't. The former are handled as part of a larger template that deals with the whole class of elements which need to be linked from their @ref attributes, and the latter handles all other <title> elements.
I've also added retrieval code for the bibliography in each document -- for each <bibl> in the bibliography in back, the the XQuery now pulls back the corresponding <biblStruct> element from biblio.xml. These are not yet being rendered, though; I'm waiting for PAB to tell me where and how they should be displayed.
I worked yesterday and today on:
I uploaded the xml files, the full images and the thumbs for all of the above. The image count now stands at 94.
I am considering taking the titles of resources out of the names.xml file and making the biblio.xml file into an annotated bibliography.
Did a couple of ad-hoc fixes so that the default message explaining that an image is unavailable has now been replaced by the appropriate text content from the <availability> tag in the header. Also implemented formatting for titles (m, j and a), but this is only working in a limited way because default handling for style conflicts with other templates elsewhere which are picking out specific titles for special handling (linking etc.). This will have to be dealt with in more detail later.
I marked up and uploaded Jakob Sigurdsson's "Deluding of Gylfi" illustration from IB 299 and linked all four of his illustrations of this scene to each other.
I also marked up and uploaded Louis Moe's illustration of Thor from Danmarks Kronige.
The image count stands at 91 items. The last 9 will include 5 more illustrations of "The Deluding of Gylfi" from different sources; 3 more illustrations from IB 299; and 1 more from Danmarks Kronige.
Louis Moe's work will not be in the public domain until 2015. I need to revise the message on MyNDIR for unavailable images. It currently states: This image is only available from the Arni Magnusson Institute in Iceland" which at the moment is only relevant to the illustrations from SAM 66.
I removed the keyword item for Thor from SAM66-078v. He is not identifable in this illustration but is in the related image in Nks1867-098v
Images from Danmarks Kronige have to include a book number in their ids because the pages begin at the start of each book, i.e. chapter. For example the id for Thor is: DnKrn-1898-UVic-bk03-070-01