Week Beginning 27th January 2025
I divided most of my time this week between three projects: The Anglo-Norman Dictionary, the Dictionaries of the Scots Language and the redevelopment of the Berwickshire place-names resource. For the AND I continued to work on the new links from entries to references in other online dictionaries – the ‘cognate references’. Last week I’d created a test version of the entry page that included links out to listings about the entry on many more online resources and Geert, the editor of the AND tested it out and got back to me with some suggestions.
There was an issues in some entries that link to entries in the DEAF resource, specifically where there are both headwords and multiple sub-headwords in brackets. For example ‘Escharn’ (https://anglo-norman.net/entry/escharn) has the DEAF headword ‘escharnir (eschar, escharne)’. My new linking system doesn’t render such links correctly, and in fact this reference in the entry XML should have been split into two separate DEAF links, one for ‘escharnir (eschar)’ and one for ‘escharnir (escharne)’ as follows:
<DEAF_refs siglum="DEAF" linkable="no"> <link_form>escharnir (eschar)</link_form><link_loc/> <link_form>escharnir (escharne)</link_form><link_loc/> </DEAF_refs>
I therefore wrote a little script to find all entries that feature a DEAF headword that contained a comma or a semi-colon, outputting the entry slug and DEAF headword in a spreadsheet. There are 295 such entries, and some have a lot of different versions in the brackets. We agreed that some manual checking of these will need to be done as a few I checked don’t seem to exist on the DEAF site. E.g. ‘Message#1’ links to ‘metre 2’ (https://deaf.hadw-bw.de/lemme/metre2) with subheadwords ‘message 1’ and ‘message 2’ but neither of these appear in the DEAF entry (‘message’ doesn’t appear in the text of the page at all). Similarly the entry ‘perpetuelment’ links through to ‘perpetüel’, but while the second subheadword in brackets works (https://deaf.hadw-bw.de/lemme/perpet%C3%BCel#perpet%C3%BCellement) the first doesn’t.
We agreed that Geert would use my spreadsheet as a starting point you would add the correct forms one per column from column C onwards. I would then be able to run a script to update the existing DEAF item in the XML with multiple links. Geert worked on the spreadsheet during the week and I’ll write a script to process it next week. Geert also requested a spreadsheet listing all entries that don’t feature a DEAF link as these will probably need some further work. There are 10,831 such entries.
For the DSL I spent some time liaising with the DSL’s email supplier and our IT Services to update some DSN entries. I also removed the results filtering options from the search results of our test instance of the site as the team want to delay the rollout of this feature. I was also alerted to an issue with the new data that was added to the test instance before Christmas. Items that should have been deleted from the data in the recent update were still appearing in the search results, something that shouldn’t have been happening as I’d updated the Solr index to wipe all data prior to the recent upload.
After some communication with our IT people, it turned out that the online Solr index does not match the Solr index I have on my laptop. In the run-up to Christmas I realised I needed to completely wipe the Solr index prior to uploading the new dataset in order to clear out records for any entries that had been deleted from the dataset. I ran some tests on my local instance of Solr running on my laptop to empty and then import the data and all went fine. I don’t have direct access to Solr on our server and I have to ask our IT people to run any commands for me, so I contacted them and asked them to run the delete and import commands. It looks like the delete command (which worked on my laptop) didn’t work on the server, despite the command being exactly the same as the one I successfully ran on my laptop. We re-ran it on the server again and it failed to delete anything. However, after restarting Solr the data was cleared, so I’ll just need to bear this in mind the next time. After deleting all of the data from the indexes we re-uploaded the last dataset from December and thankfully that this has fixed all of the issues. Whilst investigating this I also noticed that some entries have URLs in their XML that won’t work in the front-end due to them having characters that don’t work in URLs such as full stops, commas and spaces. Thankfully there are only a handful of these and I’ve passed them onto the team who will update the XML.
For the new Berwickshire map interface I added in some explanatory text, fixed a couple of typos and made some other minor tweaks to the interface. I received some further feedback from another member of the team on Friday and I’ll need to make some further tweaks next week, but we’re almost ready to launch the new interface now.
In addition to the above I arranged my travel and accommodation for the DH2025 conference in the summer. I also fixed an issue with the library stats pages on the Books and Borrowing site. Unfortunately a bug must have been introduced when I reworked the facts and figures page in October last year. Prior to this each library had its own ‘top ten’ list and this meant that when viewing facts for multiple libraries only items in each top ten were being included (so if Book A at Library X appeared at position 9 but it was at position 11 in Library Y then the latter wasn’t being included in the figures). To get around this I updated the individual library lists to return the full data, then when multiple libraries were selected on the site-wide ‘Facts’ page the system could do a proper count and generate an accurate the overall top tens. What I failed to spot is that where a single library is selected (either on the site-wide ‘Facts’ page or the library’s own page) the list wasn’t being limited to ten, as in these views the code expected there to only be 10 items returned in the dataset and was just displaying all items. I’ve fixed this now. I also created screenshots for our article about the development of the resource for the Victorian’s Institute journal.