Week Beginning 28th September 2026

As with last week, I spent the bulk of this week continuing with the updates to the Dictionaries of the Scots Language, and spent the remainder of the time working on the interactive map for the HiMuJe Malabar project.

For the DSL I migrated all of the WordPress content from the live site to our test site.  This brings all of the WordPress-based content (the non-dictionary pages, all of the ancillary content of the site) on our test site into line with the live site, meaning we can work on it in preparation to launching the new site in November.  Unfortunately, replacing all of the WordPress content inadvertently broke a lot of new stuff on our test server, as it carried over the old DSL theme and none of the updates made via the new theme such as the About page and the homepage content, or even the ‘Older Scots’ page then existed.  I took quite some time to sort all of this out, but I managed to do it and now the team can edit all of the ancillary content via the new site.

One of my main tasks for the week was to rework the site’s Quick Search bar.  Previously this appeared within the page body as (generally) the first item in the page.  I originally did this to make it clearer that the quick search was either for Modern or Older Scots, as the search bar appeared directly underneath the active tab.  As we no longer have Modern and Older Scots tabs, having the search bar in the page body makes less sense and I figured it would be better to have the search bar in the header, where most people would expect to find it.  I therefore removed the search bar from within all pages and updated the layout of the header to incorporate it there.

On wider screens the search bar appears directly to the right of the DSL site title, taking up no more than half of the page width, while on narrower screens the search bar appears below the site title and above the navigation bar and takes up the full page width (I can’t include screenshots of this for the moment).  I also had to change the button colour to light blue rather than dark blue to distinguish the button from the header colour, and the hover-over colour is now the purple highlight colour.  I also updated the text to replace ‘Modern Scots’ and ‘Older Scots’ with the new labels.

On most pages the search bar displays 1700-present.  On the DOST page it displays ‘Before 1700’ and on the ‘about’ pages it displays both, with the dictionary selector visible.  For the moment I’m not entirely sure what to do about the advanced search form and the search results pages, which currently just display ‘1700-present’ no matter what search result is shown.  I’ll need to get some feedback from the team about this.  I could update the search results to display the quick search option that matches the choice of dictionary (so DOST, SND or both), or I could remove the quick search bar entirely on the Advanced Search page.  I’m not so sure about this, though, as it gives an inconsistent layout, even though it’s a bit pointless having both a quick and advanced search on the same page.

I also wondered whether we should just have the ‘both’ quick search bar on all pages, rather than chopping and changing across different parts of the site.  The ‘both’ bar defaults to 1700-present and unless you specifically want to find ‘before 1700’ that’s all you ever need to see, but the option to search before 1700 is there for anyone who wants it.  Plus it’s more consistent and reduces confusion.  Also, if we always have the coverage selector visible we don’t then need to have ‘1700-present’ as placeholder text in the search box (unless we want it).  It could just say ‘Search’ or ‘Search Scots’, which would take up less space on narrow screens.  This is something to discuss at next week’s meeting.

With the new Quick Search bar in place, I then updated the homepage on the new website, although this is also something that will need discussion at new week’s meeting.  After that I continued to work through my ‘To Do’ list.  I updated the search results so that they now have the number of pages truncated and replaced with ‘…’ if there are more than 10 pages of results.  The same is also true on the bibliography page for the list of entries.  I also updated the tabs labels in the Advanced Search form, from ‘Entries’ and ‘Bibliography’ to ‘Entries’ and ‘Bibliographies’ to make them consistent.

I also fixed the old maps referenced in the ancillary content, as util now these never worked in the new site, and I replaced the hideous Paypal ‘Donate’ button on the ‘Donate’ page with one more in keeping with the new design.  I then went through the JS and CSS files to remove stuff that was left over from the old design.  This removed about 500 lines of code from the JS file, hopefully without affecting the functionality of the new site.  I also went through the site on a narrow screen and tweaked things to make better use of the available space (e.g. there is less white space to the left and right of the search results lists), and I fixed the bug on the entry page where the sparkline tooltip wasn’t displaying until it was clicked on.  It now works when you hover over it.

My final big task of the week for the DSL was to update the three lengthy essays about Scots so they display properly.  The essays feature side panels for navigation and ‘cite’ options that were never properly migrated to the new site design and it took quote a long time to get everything updated and working.  Two of the essays were split over multiple pages, and the side panel provided navigation through the pages, while the third essay was presented on one huge, long page, with the site panel acting as links to the various sections of the page.  I somewhat foolishly decided to rework the latter to bring it into line with the structure of the other two.  This was a much bigger job than I initially thought, as things like footnotes and inter-paragraph references needed to be updated, but I managed to get it done.  I also added in ‘next’ and ‘previous’ buttons to the end of each essay page to help with the navigation.

Whilst working through this I realised that an issue with empty lines appearing as links in the entry page search results browser between entries had reappeared.  This is something I’d fixed weeks ago and I realised that one of the updated I’d made this week must have broken something.  After further investigation it turned out to have been caused by a tweak I’d made to save space on narrow screens, and I was able to fix the problem.

For the Malabar project I continued to work on the travel routes.  I updated the code so that if multiple travel routes are selected they now have different line colours.  I also removed the coloured border around locations in the routes as they could be misleading when a location is found in multiple active routes (e.g. if one is highlighted in green and the other red then highlighting the location in red isn’t helpful).  I also addressed the issue where multiple routes are selected and different routes connect the same places.  Previously in such cases one route’s line was positioned directly on top of the other’s, but now I’ve changed the offset of the dashed line for different routes, meaning it’s possible to see the dashes of multiple lines along the route.  The screenshot below has far too many routes selected to be of practical use, but it demonstrates how the new dashed lines work.  See for example the red and cyan lines in the bottom right.

I also updated the location popups to include a new ‘Travel Route’ tab where all occurrences of the location in travel routes are listed.  Each stage appears as a link that opens the travel route at the selected stage when clicked on:

Also this week I updated the Place-names of Iona CMS, API and front-end after they were migrated to our third-party hosting supplier.  Thankfully I didn’t need to make very many updates to the code for everything to work.