Week Beginning 23rd March 2026

I continued to mainly work on the Playbills and Burns Supper projects this week, but also spent some time on several other projects.  For the Playbills project I re-ran my venue and printer merge scripts as previously the scripts only merged records and didn’t update their names and locations.  I hadn’t realised that Deven was going to edit some of these, but thankfully we spotted this and my updated scripts incorporated the edits.

I also began work on a script that will create canonical records for plays.  These records will track the appearance of plays across multiple playbills, even if the actual names of the plays differ.  Deven has been updating a spreadsheet to note which plays are actually the same and I’ll be using this to create the canonical records.  Unfortunately Deven encountered a bit of an issue with Teams, which resulted in her losing a tranche of updates she had made, and this set us back a bit.  I have the new database and script in place, so hopefully I’ll be able to run the data through this next week.

I then began to tackle the performers – splitting the names up into constituent parts, reformatting them and assigning gender.  It all went pretty well, and my script successfully processed 48,227 performers (34420 male, 13807 female), leaving 1271 that will need further work.  The majority of the problematical rows are due to there being multiple performers and it should be possible to refine my script to further process these and create separate performer records for each.  This is something I’m going to look into next week.  The remainder are either blank, have text such as ‘[Actor not named]’ or are problems with the AI output (e.g. ‘celebrated clowns’ is not a performer name).

For the 48,227 that have been processed my script extracts the first word of the full name and checks it against lists of male and female titles.  If the title is in one of the lists the script processes the performer, assigning it the relevant gender and removing bracketed text and saving this in a separate field (any forms of ‘junior’ and ‘senior’ such as ‘Jun.’ are also extracted and stored in this field as standardised ‘Junior’ and ‘Senior’ text).

Some names have exclamation marks and these are removed, and names are converted to lower case with upper case letters for each word.  If the name (minus title and other text) is multiple words the final word is treated as a surname and the rest as forenames, otherwise the name is set as surname.  Finally, if the surname starts with Mc, M’ or O’ the following letter is capitalised.  In the case of M’ this is also standardised to Mc.  Note that ‘Mac’ is not changed as names like ‘Macauly’ are not written as ‘MacAuly’ (at least, not usually!).

With the names split like this we’ll be able to have alphabetical lists of performers, which will be useful, as will having gender.  It will also help with identifying the same performer across multiple plays.

I also spent a bit of time researching the locations of venues, so we have a few to use for test purposes when it comes to developing a map-based interface to the data.  Unfortunately this proved to be quite difficult.  Google is pretty hopeless when searching for historical theatre names and just fills its results with random current ‘theatre’ links and ‘book tickets now’ adverts when trying to find actual historical information.  It was all very frustrating and I’m sure Google never used to be this rubbish.  I did manage to find the locations for around 20 venues, which is a good start, but there are still around 80 left to do.

For the Burns Supper project I mostly spent my time processing data.  This included uploading images that had been converted from PDF files and associating them with supper records and running another import of the survey and public domain spreadsheets.  This resulted in a further 141 suppers being added to the system, and I also took the opportunity to create a document that lists the steps needed to import new suppers, and this documentation should ensure that future data imports are easier to manage.  As part of this process I also dealt with new images for the suppers, running scripts to convert, resize and rename image files and create image records in the database.  I also manually split one supper record into three distinct records as it actually covered three different events at different locations.

I also added in links to videos that RA Cleo had uploaded to YouTube.  It was a little trickier than I anticipated to get the embedded videos working properly.  There were then some issues with the videos not taking up the correct amount of space in the carousel, but I rectified this.  I then noticed that the carousel’s ‘next’ and ‘previous’ buttons were obscuring the YouTube player buttons, so if you tried to enter full screen or pressed the play button you’d just change slide.  I managed to fix this, but needed to tweak it further when I realised Chrome-based browsers display a different player to Firefox.

There was also an issue with the YouTube player displaying thumbnails of other, entirely unrelated videos in the player when you paused the video.  I was shown videos of Donald Trump as a young man and a video about Epstein, which was all pretty awful.  Thankfully I found a way to disable this.  I then noticed that if you didn’t manually pause a video or watch it to the end before either navigating to another slide in the carousel, selecting one of the other tabs in the record popup or closing the popup, the video (although now hidden) kept playing so you’d still hear the audio.  This was clearly no good and I managed to sort it, although my first attempt at a fix didn’t work when a record had multiple videos (it does now).  So eventually all was working correctly and we now have 53 videos that are accessible as part of the map.

I also added in a ‘Random supper’ feature to the ‘Home’ tab.  This navigates to and (after a short delay) opens the record for a random supper, based on your currently chosen filters, so for example if you have filtered the map to only show suppers that have images or videos you can press the button to load a random supper that has media.

Also this week I had a meeting with Ophira and Renu about the HiMuJe Malabar interactive map.  It’s been a while since I met with them as they’ve been focussing on adding place data to the digital edition, which is being overseen by a partner institution.  However, we’re reaching the point where the map needs to be developed.  We had a productive meeting, discussing the data and how it might be represented on a map.  Next week I’m hoping to write a brief, non-technical specification document so we all know what will be developed.

Also this week I ran a few queries and outputted a spreadsheet of data for the Anglo-Norman Dictionary, and I made some updates to the map of dialect areas for the Dictionaries of the Scots Language based on feedback I’d been sent a while back.  I think this map is nearing completion now, although I still need to develop region search and filtering for the DSL’s advanced search, which this map will then connect to.

Week Beginning 16th March 2026

I continued to work on the Burns Supper Map this week, implementing the ‘click through’ options in the record pop-up.  The record pop-ups now feature a dotted line underneath certain information, and if you press on this the relevant filter for the selected item will display, as the following screenshot demonstrates:

Other than importing more data, integrating the videos and things like the ‘more info’ pop-up and some ‘fact and figures’ that’s pretty much all of the functionality in place now, and I therefore moved on to the user interface, a task that took a fair amount of time, but has been useful.  I developed three alternative interfaces using different colour schemes and fonts, and in some cases different layouts.  For the first version I took the head of Burns from the stained glass image and used this in the ‘Home’ tab and also as the supper icon and the browser tab icon.  The menu sections have a black background and white text and I’ve used the font ‘Quintessential’ for the site heading and also the popup headings.  You can see this in the following screenshot:

For the second version I used a traditional Scottish Blue and White colour scheme.  This version doesn’t feature the disembodied Burns head and it uses the ‘whisky glass’ icon on the map and in the browser tab.  The whole site uses the ‘Baskervville’ serif font throughout (the other versions use the sans-serif ‘Montserrat’ font for most text) with the ‘Baskervville SC’ small-caps variant used for headings:

The third version uses a sort of teal-ish colour scheme with a sort of whisky-orange colour for highlights.  For this one I incorporated the Nasmyth painting of Burns in the ‘Home’ tab and I used the cursive font ‘Tangerine’ for the ‘Burns Suppers’ text in the site heading and in the record pop-up.  Map icons use the cutlery icon with the whisky-orange background.  This is also used in the browser tab, although the icon and colour scheme are rather similar to the ‘Just Eat’ logo and this might be an issue.  Here’s a screenshot:

For this version I also redesigned the record pop-up to make it look sort of like a fancy menu.  This does take up more vertical space and the cursive font used in the headings might be difficult for some people to read, but I quite like the way it looks:

These are just work-in-progress versions and I’ll hopefully meet with the other team members next week to discuss how we should take this forward.  Also this week the project RA Cleo went through the images and reduced the number of images for each supper to a maximum of ten (some had hundreds before).  I then ran a script to resize these images to a maximum of 1600px, which has greatly reduced the file size of the images – there were some previously that were 16MB each.  I then replaced the images on the server with this smaller set, reducing the number of images from 1696 to 893 and reducing the total size of the images from more than 4GB to about 350MB.

I also continued with the Playbills project this week, giving advice to project PI Deven as she edited the data and processing updates to the data.  This included merging and deleting venue and printer records to remove duplicates and reassign playbills to the merged records.  I also began to investigate assigning location data (latitude and longitude) to venues, which is something we’re going to need of we want to create a map-based interface for the data.  We have around 100 venues after merging and deleting, and it’s possible that some others will also be deleted, so it’s not a huge number of records.  However, it’s likely that the location data will need to be manually researched as many of the theatres no longer exist, or at least the buildings  no longe exists as theatres.  For example, our first listed venue is ‘Royal Theatre Aberdeen’, which doesn’t exist anymore, but I found an address for it on this page, meaning I could find the building (now Aberdeen Elm Church) on Google Maps and get the latitude and longitude (57.146607938894356, -2.0920931547723085).  I’ve created a spreadsheet on the project’s Team that we can use to add this data in, and I’ll probably research a few records myself, if I have the time.

I also spent about a day this week writing an initial version of a specification for Joanna’s DOST Auld Laws front-end.  It’s a non-technical overview of what will be developed and how things will work and I created it mainly so we all know what the plan is.  The document I wrote is just a first draft and I sent it on to the team for feedback.  It’s likely that aspects of it will need to be changed and in fact there is a list of questions at the end that will need consideration.  I’ll hopefully get some feedback from the team next week and I’m hoping that we’ll have a final version of the document decided upon before Easter, so I can start development after I get back from my Easter holidays.

I also spent some time investigating a data issue on the Books and Borrowing website.  Certain records for Innerpeffray library didn’t have associated borrowers so Katie and Kit added these in, including creating new borrowers where necessary.  However, the data in the front-end wasn’t updating to show the borrowers when viewing register pages and I needed to figure out why.  It turns out that this is a consequence of the versioning system I implemented last year.  The CMS is now set to data version 2, meaning anything newly added has this version number applied to it.  The front-end is set to only display data version 1, so any new borrowers created will not get displayed as they are version 2 records.  I manually updated the new borrower records to assign them to version 1 and after that they appeared in the front-end.  We still need to fully update the data caches and Solr indexes before the new borrowers are fully integrated with the front-end (e.g. appearing in search results), and this is a task I’ll have to tackle in the next few months.

Week Beginning 9th March 2026

I divided my time between four projects this week: Playbills, the Burns Supper Map, the place-names of Armagh and the Dictionaries of the Scots Language.  For the Playbills project I spent some time processing the Playbill images.  These were stored in hundreds of directories in many different file formats, including HEIC that is an Apple-specific format, JPEG, PNG, GIF, TIFF and even PDF.  Thankfully I discovered that the command-line tool ImageMagick can process HEIC files in Windows and I wrote a script to find all image files across the hundreds of directories, move them to a single folder and convert them (where necessary) into JPEGs.  It took a while for the script to execute, but it did so during Monday evening and successfully migrated 17,406 image files.

On Tuesday I then wrote a further script that picked out just the images actually referenced in our current dataset (so 1902 images) and I uploaded these to the server.  I then worked on the page through which the image can be viewed.  I’d already created the playbill page last week, through which the textual representation of each playbill can be accessed, and it was now a matter of adding in an OpenLayers viewer that would load in the image and enable users to zoom and pan around it.  Eventually we’re hoping to connect this to a IIIF server, which will make loading the image a lot quicker, but for now the view just loads in the full, high-resolution image when the page loads.  As this can take some time I added in a loading ‘spinner’.  I also made the image pane as tall as the browser window and the text pane is the same height, with text scrolling if it’s longer than the pane.  This ensures you can still see the image as you scroll down the text.  You can also press on the icon in the top right of the image pane to view the image full screen.  The following screenshot shows how things currently look, although bear in mind that the interface is still very much a work in progress – it doesn’t work very well on mobile devices yet, for example.

I also had a chat with Deven about the process for consolidating and amalgamating records using spreadsheets, and once Deven has completed this process I’ll update the data and continue to work on the site.

The Burns Supper Map took up much of the rest of the week.  My work included fixing an issue with ‘guests’ not working in the short URLs, relocating a New York supper that was appearing in Barcelona to its proper location and adding ‘Source’ to the table view.  I then implemented the ‘Download CSV’ option, which includes all of the fields from the table view and outputs the CSV using a purely JavaScript approach rather than connecting to the server.

I also added ‘country’ to the advanced filters, and fixed a few typos (e.g. ‘Astria’).  It took several hours to implement the update, as ‘country’ is free-text and includes spaces and characters such as the colon that don’t work well in URLs.  I’ve therefore had to create a new field that stores URL-friendly versions of the name and it is this that is then used for search purposes.

I then moved on to processing the supper images.  This was quite nicely timed as the processing was very similar to what was required for the Playbills project (lots of different image formats with files spread across countless directories) so I could adapt the script I’d written earlier in the week.  I set the script to migrate all of the images to JPEG and to copy them all to once single location with a standardised filename.

With image processing complete, I uploaded the files to the server and began work on the ‘images’ tab in the supper record pop-up, which I managed to complete.  I decided to use the Bootstrap carousel to display the images, as it works very well and has support for touch controls (e.g. swiping left and right).  Addin in Bootstrap (which the interface was not previously using) caused a few layout issues as some existing styles were overwritten by Bootstrap’s styles, but I was able to sort these issues out.

Where the supper has one image it just gets displayed, but where there is more than one image the carousel navigation buttons appear on the left and right of the image, allowing you to scroll through.  One issue I encountered is that we have a mixture of portrait and landscape images, and this causes some layout problems.  However, I’ve managed to sort this and I’ve given any extra space a black background, which I think works quite well.  Another thing to note is that all of the images are loaded into the carousel at once, so for a record that has hundreds of images, or very large image files, it can take some time before everything gets loaded in.  This won’t be an issue for long, though, as we’re going to pick out just a few imager per supper (some currently have as many as 200) and I’m going to resize the images (some are currently up to 16MB).  Below is a screenshot of the image tab showing the image tab and accordion for one Burns Supper:

I also realised that people are going to be pretty interested in seeing the images so I added an option to the advanced filters that allows you to limit the display to records that include (or don’t include) media.

For the DSL this week I added in a user feedback popup to our test site and also at a temporary URL on the live site so that the team can test out how the popup will function.  As the live and test sites use different user interface frameworks I needed to implement the popup separately for each site, but it didn’t take too long to set up.

On Friday I returned to the Place-names of Armagh resource, which I’ve not worked on for a few weeks.  The PI Mícheál had gone through the lists of parishes and baronies and had noted which needed to be merged or deleted, and I spent some time processing the data, moving place-name records to different parishes or baronies as required.  I also spent some time writing a script to extract the Irish forms and translations from the ‘analysis’ field (which is actually called ‘description’ in the database).  The outputted table displays fields for the PID, the name and the current contents of the Description field in these columns.  The ‘Irish Form’ column extracts all italic text.  As there are often multiple italicised pieces of text and in such cases each is extracted and separated with a slash, and tags are displayed rather than being rendered in this and the following two columns as I’ll need the tags when I grab the data.

The ‘Translation’ column includes all of the text from the first paragraph of the description, except where this contains ‘reference’, ‘uncertain’ and ‘details’ as these text to signify that it’s not a translation.  Any other text gets added to the ‘Remaining Text’ column.  Unfortunately it looks like the policy of using italics for Irish forms is not used in later records, and also it looks like the HTML is malformed in a number of these later records, so all text for these rows has just been added to the ‘Remaining Text’ column.  I might be able to further process things to sort some of this.  But for now I’ll need to wait until Mícheál has a chance to look through the output and decides whether he wants to use it.

Week Beginning 2nd March 2026

I spent a lot of this week continuing to work on the Playbills project.  Last week I began working on a very rough first draft of a front-end through which the playbills data can be browse, and this week I completed this but creating the API call and corresponding page that displays the full data about a specific playbill.  As of yet I’ve not included the actual playbill images, so for now there’s just a placeholder section where the image will fit.  There is still a huge amount to do for the project and this is just a first draft of the ‘browse and view’ functionality only with practically no time spent on the user interface, but here’s an example of the work in progress:

We still need to do a lot of work with the data, such as amalgamating records for things like genres and venues that have similar but not identical text, plus making canonical records for things like plays.  Until this work is completed I can’t really do much more with the front-end, as we need this data before I can generate the Solr search index, and there’s the possibility that all of the existing data will need to be wiped and regenerated as proofreading progresses.

Towards the end of the week I began to download all of the playbill images from OneDrive, a process that took a long time as the downloads kept quitting with an error whenever the ZIP file became larger than around 10Gb – instead I had to download the images in smaller batches.  I also realised that a lot of the images are in the HEIC format, which is an Apple-specific format that can’t easily be opened in Windows and is unsuitable for use in websites.  At the moment I’m unable to even view the images and it’s going to take some time to figure out firstly how to open them and secondly how to batch convert them to a more widely supported format.

On Tuesday this week I met with Wendy Anderson and Carole Hough to discuss updates to the Mapping Metaphor resource.  Currently the resource is divided into separate sections for Old English and the rest of English and we’re hoping to amalgamate these (as well as continuing to give options to focus on one or the other).  As well as attending the meeting I spent most of the day preparing a document that discusses the work that will need to be carried out and some of the issues that will need to be addressed.  We discussed a lot of these issues at the meeting and the document will prove useful when I come to begin the work, which I’m hoping to do after Easter.

I also spent some time this week working on a few items for the Anglo-Norman Dictionary.  A few weeks ago I updated the entry publication workflow so that entries that are cross references are checked to ensure that their references actually refer to entries that exist in the system and the editor Geet had spotted a couple of instances where cross references were continuing to be flagged even though they were main entries rather than cross references.  I checked the data and this was happening because both xref and main entries with the slugs are active in the database.  I think this may have been caused by the issue of uploaded entries not having the existing ID in the filename, something we discussed a few weeks ago, and I manually deactivated the xref entries, which got rid of the warnings.

I also ran a query to identify duplicate active entries in the system and there were 23 of them.  22 of them were cross references to single entries so it was pretty easy to deactivate the duplicates.  One of them had one active version that is a cross reference to four entries and another that only has a single cross reference to a single, further entry, and Geert created a new amalgamated version after I flagged it.  The remaining duplicate had one live entry that’s a main and another live entry that’s an xref, but the xref version was malformed so I deleted it.

I also spent a bit of time creating a new cross-reference checker, this time rather than focussing on purely xref entries the new checker instead finds all xref elements in main entries and checks whether they actually link through to an active entry in the system.  This script takes a while to run as it needs to check the XML of several tens of thousands of entries, but it’s going to be a useful tool.  Currently it has identifies 880 broken xrefs in main entries and Geert can use the output to decide what the do about these.  It is something that will more than likely require manual editing rather than any batch processing, unfortunately.

The rest of my available time this week was spent on the Burns Supper map, which is coming along pretty nicely.  I’ve updated the records to include information about the source of the data.  If it’s a survey response the text is ‘Information about this supper was submitted as a survey response.’.  If it’s a PD supper the text is ‘Information about this supper was gathered from publicly available sources.’  I also added a new filter to the advanced filters that allows you to select the source.  I figured this would be sufficient, rather than adding another option to the standard filter options.  I also updated the map to move the side panel to the right, both to differentiate the site a little from the place-names maps and also because when zoomed out the panel only now obscures parts of Russia (and Japan, unfortunately) rather than North America.

I then moved onto a larger task: getting the map to remember filters and open records so people can bookmark / share / cite specific views of the data.  This has been a pretty major update that required a lot of changes to be made throughout the code, but it’s going to be a very useful addition.

Whilst working on this I realised that the advanced filter popup wasn’t working properly in Chrome-based browsers – the popup was unexpectedly closing in Chrome when filter options lower down the form were clicked on.  It would appear that there is some kind of conflict with the UI framework I was using for the filter buttons and the map popup, because links that didn’t use this framework worked fine.  I’ve therefore replaced the UI framework checkbox buttons with my own and the form now works perfectly in Chrome.  The buttons mostly look the same, but the ‘ticks’ are now the browser’s default ticks and can’t be styled.  This isn’t a big issue, though.

I also fixed an issue whereby opening records from the table view wasn’t adding the record ID to the URL, and I also implemented the short URLs and the ‘share’ options.  If you press on the ‘Share’ button in the side menu this will display a popup containing some buttons linking to sharing platforms, and the citation styles are also displayed and feature a description of the contents of the map based on filters applied.  I also updated the record popup to add the ‘details’ to a separate tab labelled ‘Further Details’, with the other textual data in a tab labelled ‘General Information’, and added in a ‘Share this record’ tab, which works in the same way as the map share option.  There is still a lot to do for the resource, but I feel like I’m making good progress.

 

Week Beginning 23rd February 2026

I continued to work on the Burns Supper Map from Monday to Wednesday this week, with my first task being to import the public domain data into the map, taking the total number of suppers on the map to 751.  I then implemented the advanced filter options.  You can now open the advanced filter popup and select any of the filters you’re interested in.  When you press the ‘apply filters’ button at the bottom of the popup it closes and the map displays only those suppers that match your criteria.  The ‘Advanced’ section of the side menu then displays the number of matching suppers, your selected filters and buttons to refine or choose new filters, as the screenshot below demonstrates:

Note that I haven’t done any work on the colour schemes for the map yet – it’s all just using the colours taken from the Iona place-names map, but this will change.  I also updated the map so that both the advanced filter and regular filter options now reposition the map to show all matching suppers when selected.  However, icons on the left of the map can get obscured by the map menu.  It has a tendency to sit on top of the US.  I’m not sure what to do about this – I could ensure the map zooms out further, or I could close the side menu, although this might just confuse people.

I also updated the non-advanced filters section so that it displays the total number of suppers.  However, a supper may have multiple filter options in a filter type so this total will not be the same figure as adding up all of the counts for individual options (e.g. one supper can have multiple toasts so will appear in the count for each individual toast that it features).  I then created the table view.  Pressing on the ‘Table view’ button will display all suppers currently found on the map in tabular form, and you can reorder the rows by pressing on a heading (e.g. ordering the rows by country).  Pressing on the venue name link closes the table view, centres the map on the supper and opens the supper’s in-map record.  Note that if you’ve performed a filter then the table only contains the filtered data.

Setting up the advanced filter option was especially time-consuming to implement so it was good to get that finished.  There’s still a lot left to do, such as ensuring filter options get added to the page URL to enable bookmarking / sharing / citing of specific results.  This is going to be another big job, and one that I’ll hopefully tackle next week.

I also spent some time this week drafting some text with Luca for a page about the technical developers across the College and the services we offer.  This is not yet live, but will be a useful information point for staff who are looking to create an online resource for their data.

On Tuesday this week I participated in a meeting to discuss a new proposal being led by Sara Pons-Sanz at Cardiff that Glasgow will be involved with.  It was a useful meeting and we all have a clearer idea about what the project will entail and how Glasgow will contribute.  I had a further meeting on Friday with Jennifer Smith and Janine Illian about statistical analysis of the Speak For Yersel data and it looks like we’ll be getting some people in statistics working with our data, which is great.

I spent the remainder of the week working on the Playbills project.  I’ve begun to set up an API and pages that will allow people to browse the playbills data.  We still have a lot of work to do with the data, such as creating single, canonical records for venues, plays and other data types, so it’s likely that all of the data will need to be replaced at some point, but as the data structures are mostly finalised I decided to start work on some aspects of the front-end.  So far I’ve created pages for browsing venues, listing playbills and browsing genres.  I hope to continue with this next week.