Week Beginning 5th June 2023

I continued to work on the Books and Borrowing project for most of this week.  One of my main tasks was to fully integrate author gender into the project’s various systems.  I had create the required database field and had imported the author gender data last week, but I still needed to spend some time adding author gender to the CMS, API, Solr and the front-end.  It is now possible for the team to add / edit author genders through the CMS wherever the author add / edit options are available and all endpoints involving authors in the API now bring back author gender.  I have also updated the front-end to display gender, adding it to the section in brackets before the dates of birth and death.

I have also added author gender to the advanced search forms but a search for author gender will not work until the Solr instance is updated.  I prepared the new data and have emailed our IT contact in Stirling to ask him to update it, but unfortunately he’s on holiday for the next two weeks so we’ll have to wait until he gets back.  I have tested the author gender search on a local instance on my laptop, however, and all seems to be working.  Currently author gender is not one of the search results filter options (the things that appear down the left of the search results).  I did consider adding it in (as with borrower gender) but there are so few female authors compared to male that I’m not sure a filter option would be all that useful most of the time – if you’re interested in female authors you’d be better off performing a search involving this field instead rather than filtering an existing search.

I then moved on to developing a further (and final) visualisation for the library facts and figures page.  This is a stacked column chart showing borrowings over time divided into sections for borrower occupation (a further version with divisions by book genre will be added once this data is available).  I’ve only included the top level occupation categories (e.g. ‘Education’) as otherwise there would be too many categories; as it is the chart for some libraries gets very cluttered.

It took quite some time to process the data for the visualisation but I completed an initial version after about two days of work.  This initial version wasn’t completely finished – I still needed to add in the option to press on a year, which will then load a further chart with the data split over the months in the chosen year.  Below is a screenshot of the visualisation for Haddington library:

With the above example you’ll see what I mean about the chart getting rather cluttered.  However, you can switch off occupations by pressing on them in the legend, allowing you to focus on the occupations you’re interested in.  For some libraries the visualisation is a little less useful, for example Chambers only has data for three years, as you can see below:

I also had to place a hard limit on the start and end years for the data because Chambers still has some dodgy data with a borrowing year thousands of years in the future which caused the script to crash my browser as it tried to generate the chart.  Note that the colours for occupations match those in the donut charts displayed higher up the page to help with cross-referencing.

Later in the week I completed work on the ‘drilldown’ into an individual year for the visualisation.  With this feature you can press on one of the year columns and the chart will reload with the data for that specific year, split across the twelve months.  This drilldown is pretty useful for Chambers as there are so many borrowings in each year.  It’s useful for other libraries too, of course.  You can press on the ‘Return to full period’ button above the chart to get back to the main view and choose a different year.  Below is an example of a ‘drilldown’ view of the Chambers library data for 1829:

As I developed the drilldown view I realised that the colours for the sections of the bar charts were different to the top-level view when the drilldown is loaded, as the colours are assigned based on the number of occupation categories that are present, and in the drilldown there may only be a subset of occupations.  This can mean ‘Religion’ may be purple in the main view but green in the drilldown view, for example.  Thankfully I managed to fix this, meaning the use of colour is consistent across all visualisations.

The next item on my agenda is to create the site-wide ‘Facts and Figures’ page, which will work in the same way as the library specific page, but will present the data for all libraries and also allow you to select / deselect libraries.  I spent some further time updating the API endpoints I’d developed for the visualisations so that multiple library IDs can be passed.  Next week I’ll create the visualisations and library selection options for the site-wide ‘Facts’ page.  After that I will probably move onto the redesign of the front-end to use Bootstrap, during which I will also redesign many of the front-end pages to make them a bit easier to use and navigate.  For example, the facts and figures page will probably be split into separate tabs as it’s a bit long at the moment and the search form needs to be reworked to make it more usable.

Also this week I spent about a day working for the DSL.  This involved having one of our six-monthly Zoom calls to discuss developments and my work for the months ahead.  As usual, it was a useful meeting.  We discussed the new ‘search quotations by year’ facility that I will be working on over the coming months, plus sparkline visualisations that I’ll be adding into the site, in addition to the ongoing work on the parts of speech and how a POS search could be incorporated.

I was also told about a video of the new OED interface that will launch soon (see https://www.youtube.com/watch?v=X-_NIqT3i7M).  It looks like a really great interface and access is going to be opened up.  They are also doing a lot more with the Historical Thesaurus data and are integrating it with the main dictionary data more effectively.  It makes me question how the Glasgow hosted HT site is going to continue, as I fear it may become rather superfluous once the new OED website launches.  We’ll see how things develop.

After the call I began planning how to implement the quotation date search, which will require a major change to the way the data is indexed by Solr.  I also instructed our IT people to remove the old Solr instance now the live site is successfully connected to the new instance without issue.

Also this week, after a bit more tweaking, Ophira Gamliel’s HiMuJe Malabar site went live and it can now be viewed at https://himuje-malabar.glasgow.ac.uk/.   I also had a meeting with Stephen Rawles of the Glasgow Emblems project.  I worked with Stephen to create two websites that launched almost 17 years ago now (e.g. https://www.emblems.arts.gla.ac.uk/french/) and Stephen wanted me to make a few updates to some of the site text, which I did.  I also fixed a few issues that had cropped up with other sites that had been migrated to external hosting.