Working on indexes
I've been working on reproducing the Index page and its subpages -- it's basically an index of indexes, and the subpages are sometimes hard-coded and sometimes generated automatically from the db. I've set up individual pages in /data/info
for each of the subpages, which allows them to have their own introductory text, but the rendering of all, including the main index page, is handled by index_site.xql
, which gets the content from the info page and merges it with data from the db where appropriate.
I've hit one stumbling-block of my own making. There were a lot of entries in the INDEX1.xml
file which were defined as @type="ward"
(the list is below). When these were converted over to new files in the locations
subcollection, they were not provided with <place>
elements because they had no location data in them (no <section>
or <coords>
). That means they don't have their @type
attribute. I'll have to add this info manually to the 26 records, and I should also check for other records which have lost a type attribute. There are no other type attributes which are completely missing, but there are 18 street, site and church items items which didn't have proper locations, so lost their types.
ALDE2 ALDG2 BASI1 BILL2 BISH1 BREA3 BRID3 BRID4 BROA3 CAND2 CAST2 CHEA1 COLE2 CORD1 CORN1 CRIP2 DOWN1 FARR1 FARR2 LANG1 LIME1 PORT1 QUEE3 TOWE4 VINT2 WALB2