Week Beginning 30th September 2024
I continued to work on the interactive map of Burns correspondence this week, focussing on the timeline feature. This feature will take the data and pin it to the map one correspondence at a time, building up a picture of connections over time. I managed to complete an initial version this week and while there are still some issues with it, it’s mostly working. I had originally intended that the timeline would automatically animate through each correspondence after a user presses ‘play’, with the option to pause things also offered. However, as I began working on the feature I came to the conclusion that this would be rather tedious to use: if you’re interested in a particular item you’ll likely not have enough time to consider it before the view whooshes off to the next item, and if you’re not interested in it you have to wait for the next item to trigger. Instead, I’ve decided to make users manually navigate through the items themselves, which gives users much more control. I could still potentially investigate adding in the fully automated approach, but I would personally find it a bit annoying to use.
For now the situation is you define the map data (either all of it or limiting the data using the filter option) then you press on the ‘Timeline’ menu item (a good example for testing is selecting ‘Historians’ in the filter options as this gives a manageable 15 correspondence). When the timeline first loads it clears the map and loads the first item chronologically, centring the map on the ‘from’ location. After 5 seconds the map automatically flies to the ‘to’ location. The location markers are highlighted in red, as is the dotted joining line. The following screenshot demonstrates the timeline with the earliest correspondence in the category ‘Historians’ selected:
The timeline pane features next and previous buttons (previous is greyed out in the screenshot above as we’re looking at the earliest correspondence). A number is assigned to the item and the total number of items is displayed to give people and idea of where they are (e.g. Item 1 of 15). The correspondence data is displayed in a box below this, with information about when the item was sent, the sender and recipient and their locations. For now there is no link to open the bibliography but I’ll add this in. This is another reason for not automating the runthrough as if we did then opening the bibliography pop-up would potentially mess things up, or it may be difficult to press on a link before it disappears.
Pressing on the ‘Next’ button loads the next item, flying the map to the new ‘from’ location and then flying onto the new ‘to’ location after 5 seconds. The new markers and line are highlighted in red and the previous markers and line remain on the map, but are turned grey. Note that for now if you press the ‘Previous’ button the markers and lines for subsequent items continue to be visible on the map (in grey). I’m not sure whether this is an issue or not, really. It would be somewhat complicated to remove the items entirely. It can be done, but it would take some time and I’m not really sure it’s worth it, but I’ll see what people think.
There are some issues that I still need to deal with. If you press on a marker when in the timeline view this currently loads the correspondence pane but it displays all of the data for the location. Plus if you go to the filters your current selection is not remembered. There are also issues with the ‘fly to’ in that often the map tiles don’t load quick enough so until the flying stops you might not see the map. Also when the distance from the previous ‘to’ location to the current ‘from’ location is quite far the map can begin to fly to the current ‘to’ location before you get much of a glimpse of the ‘from’ location. Also all of the zooming and panning can get a bit much. It’s possible a simple jump to the new location might make for a nicer and less queasy experience.
Also this week I spend some time refreshing the cached data for the Books and Borrowing project, as the final researcher has completed work on the data. It takes some time to generate all of the various caches, but the new data was fully in place by Tuesday. Matt had also noticed some discrepancies with the statistics in the facts and figures page (specifically the ‘top ten’ lists) and the actual data returned in the search results and I spent some further time investigating this.
The top ten counts were still using the database rather than the Solr index so I updated this, but while this had minor implications for the numbers listed it didn’t bring them into line with the search results. It turns out that the issue was caused by data truncation. Top ten summaries are stored for each library and to create an overall top ten these individual lists are then combined. But if a book does not appear in the top ten for a library (for example if it is number 11) then it’s not found when calculating the overall total so its borrowings are missed and the overall total is therefore incorrect. I’m sure we’d discussed this issue previously and I thought I’d done something to fix it, but apparently not. However, I’ve now updated the ‘all libraries’ cache so that it generates and stores top tens directly from across the whole dataset rather than by combining the caches for each library and the default top tens on the facts and figures page should now accurately reflect the number of search results returned. One thing I spotted is that if a user selects multiple libraries (but not all libraries) on the facts and figures page the results are still an amalgamation of each library’s individual top ten lists so there will likely be discrepancies. We agreed that this would also need addressing so I’m going to look into this next week, all being well.
Also this week I met with Matt to discuss a response to reviewer feedback to an AHRC proposal I’m involved with. I can’t really say too much more about it, but I needed to spend some time before the meeting reading through the materials and then formulating a response to issues that were relevant to me. I also met with Thomas Clancy and Simon Taylor to discuss a possible BA application. We’re going to meet in person next week to take this forward.
I also made a few tweaks to the Place-names of Iona map interface and attended the English Language and Linguistics research seminar on Thursday, which was a very interesting discussion of visualising ‘lone wolf’ terrorists in the British press.
