New version of 'The Chymistry of Isaac Newton', using XProc pipelines to generate a website based on TEI XML encodings of Newton's alchemical manuscripts, and Apache Solr as a search engine.
2
stars
0
forks
source link
Sort order for documents in Browse-Documents listing #36
On the current (XTF-P4) site, when the user clicks on "Browse Manuscripts," the queryParser.xsl sheet determines the order of results in template match ="/", at or around line 48.
It uses three components, sort-settlement, sort-collection, and sort-shelfmark, which all defined in preFilter.xsl. The preFilter definitions draw from the settlement, collection, and shelfmark elements in the document TEI headers.
Basically a few years we decided that the documents would sorted by location, collection, and then shelfmark. The collection and shelfmark are fairly straightforward, but the location can present some problems because there are two Cambridge settlements, one in the UK, the other in Massachusetts, and the UK should come first, UK < USA.
On the current (XTF-P4) site, when the user clicks on "Browse Manuscripts," the queryParser.xsl sheet determines the order of results in template match ="/", at or around line 48.
It uses three components, sort-settlement, sort-collection, and sort-shelfmark, which all defined in preFilter.xsl. The preFilter definitions draw from the settlement, collection, and shelfmark elements in the document TEI headers.
Basically a few years we decided that the documents would sorted by location, collection, and then shelfmark. The collection and shelfmark are fairly straightforward, but the location can present some problems because there are two Cambridge settlements, one in the UK, the other in Massachusetts, and the UK should come first, UK < USA.