MyNDIR application outline
Posted by mholmes on 16 Apr 2010 in Activity log
Created a basic application framework, based around a home page which is also the search page:
- / forwards to index.htm
- index.htm calls search.xq. It may or may not provide a parameter "find" (usually not).
- search.xq provides either search results only, or (if there's no "find" parameter), all items as results, along with a welcome.xml bit to be used as a "splash".
- search.xq is processed through site_page.xsl, which will provide all the basic stuff (style and JS linking, titles, search box, footers etc.). It then depends on search.xsl to process the search results into the two main components (image band and alphabet menu) used for browsing images.
- site_page.xsl also depends on tei.xsl for rendering of basic items, and on strings.xsl for paths to images, captions, and so on.
- If search.xq is called directly by the browser, this is assumed to be an AJAX request, so the results of it are processed only by search.xsl, sending back a new version of the search result browser controls to the page for insertion.
- If item.xq is called, a single item is retrieved by id, and processed through item.xsl, for display in the main content area of the page. This would be invoked by the user clicking on one of the images in the banner across the top.
I've built this basic framework, and started on the XQuery and XSL. What's explained above is of course much easier to understand if you just read the sitemap.xmap file. That's as far as I can easily go for now, because I need from PAB:
- Square (100x100?) images for thumbnails of all the images in the set.
- @xml:id attributes to be added to the document files.