Week Beginning 9th March 2015

With the launch of the Mapping Metaphor project creeping ever closer I spent the bulk of this week going through my list of bugs and fixing them. I’m happy to report that I have now ticked off every item from my list, plus I’ve fixed a handful of other bugs that I’ve come across too. As with last week, the bugs are a mixed bag of relatively trivial blighters and some rather more tricky beasts.

First of all some updates to the way category info buttons work. These buttons bring up the descriptors for the category when clicked on, but when viewing a level 3 category these buttons were not being displayed unless the category in question was clicked on in the visualization. They are now available when no category is selected by default, whether the category in question is selected or not. These info buttons also now work in the tabular and card (‘cardular’?) views when the user clicks on any of the listed categories too. Category info pop-up titles now say ‘Category Descriptors’ where previously they either said nothing or ‘Metaphor’.

As the number of metaphors that were first recorded in Old English are generally more numerous than those first recorded in other time periods this was unbalancing the timeline view. Marc and Ellen wanted the Old English column to be wider than the others and to have multiple connections listed per row. Implementing this has proved to be very tricky. I’m afraid I couldn’t find a way to make one column of the graph wider than the rest as the columns are generated programmatically by the d3 library. It would mean hacking about with the source code for the library and I didn’t think that was such a good idea. However, as the columns are pretty wide as they are what I’ve managed to do is squeeze three dots per row into the Old English column, much in the same way as the ‘top level’ timeline has five squares per row. I think this works pretty well at evening out the size of the OE column. I’ve also added a tooltip and an asterisk to the ‘Old English’ column label. Hover over the label to view information about what we mean by OE.

I’ve updated the key in a couple of ways. In the top level timeline the key now displays squares rather than circles. And on all pages I’ve updated they so that it keeps it position at the bottom of the browser when the page is scrolled. It’s still possible to move the key somewhere else too and wherever you leave it, it will also remain fixed and visible when the page scrolls. I think this works a lot better than having it scroll off the page when the user scrolls, but there is a slight downside: Adding this feature is using up more of the browser’s memory and it can slow down the operation of the visualisation in some browsers, especially on older hardware. On my work PC in Firefox with the key visible scrolling the browser on the visualisation page is slightly ‘laggy’ and the visualisation rotation is a bit jerky when it contains a lot of data. For some reason my PC has no such problems when using Chrome or IE though. I think stopping the key scrolling off the screen is much better but the increased jerkiness might be a big issue.

In the top-level timeline some pink highlighting was remaining when the user moved their mouse over some squares. I’ve figured out what was causing this and have fixed it. I’ve also ensured that when viewing the top-level timeline and clicking ‘view connections’ from a card the drilldown view is now the timeline view rather than it reverting to the visualisation view. I’ve also added a ‘Select category to highlight’ drop-down list underneath the top-level timeline. Simply select a category to highlight all occurrences of that category in the timeline, or select ‘none’ to remove the highlighting. I also noticed a bug whereby navigating from the timeline or table view to the card view at top level and then selecting a category to highlight in a card would result in a ‘page not found’ error and I’ve fixed this too.

I’ve updated the search page to split it into two tabs, one for ‘quick’, the other for ‘advanced’. The ‘advanced’ tab loads by default if the user navigates to the search page from a ‘refine results’ link or when selecting to clear the search boxes. In the ‘browse’ page I’ve fixed the CSS to ensure that moving the mouse over a level 2 heading the text goes white and is easier to view. I’ve also made it so that the ‘plus’ icon turns white as well instead of staying grey. Links in general have now been given a colour rather than being the browser default. They are now green by default and magenta when hovered over. Updating this led to a lot of unwanted messing up of other buttons and links in the site so it took quite a while to track all of these down and fix them.

There were some issues with the timeline SVG download files. They were getting cut off when downloaded because the height and width properties were not being properly set. This has been fixed now. SVG downloads of the timeline now appear in full colour in Inkscape rather than just monochrome. There were some stylesheet errors that stopped the colours working, although IE managed to cope with the errors just fine. All validates now (except for elements having titles when they’re not allowed them in the SVG standard, but we need titles in order to get the hover-over tooltips

I’ve also fixed the top-level timeline metaphor card heading, which was displaying ‘-2’. It now displays ‘Metaphor Connections’ as a title.

I also realised this week that the quick search facility for searching historical thesaurus words had broken. It was never returning any results. This happened due to a change I made to the HT database a few weeks ago – Marc wanted to ‘MMCat’ column moved out of the HT category table and put in its own linking table instead. I thought I’d found all the places in the MM site where this update required sorting but missed the HT search. It’s working now.

Category names in the metaphor cards are now clickable and as requested by Ellen and the team, I’ve removed the buttons that lead to views showing all other categories linked to the two in the card. It’s a bit of a shame to lose these views but the options were a potential source of confusion for users.

Finally, I created a ‘favicon’ for the site this week that appears in the browser tabs. It’s a simple green circle like the visualisation with a yellow ‘M’ in it. The yellow is the same as that used when metaphor connection lines are highlighted in the visualisation and the idea was to make the ‘M’ look like lines connecting up different parts of the circle.

So that’s everything ticked off my list. I still need to implement some sort of breadcrumb or history feature, which I’ll take a look at next week, but other than that everything has really come together rather well.

I did a few non-metaphor related jobs this week, including giving some advice to Johanna Green about a project she’s putting together involving Special Collections, communicating a little with Jane Stuart-Smith about the bid she’s working on and doing some AHRC related duties. I also had a very brief meeting with Susan Rennie about her Scots Thesaurus project. At this meeting Susan gave me an old CR-ROM version of Johnson’s dictionary. It was made in the early 90s and won’t work on modern computers and Susan wondered what could be done to access the content. The software it uses is something called ‘DynaText’, which is proprietary software made by a company that went out of business in 2002. As far as I can tell, it’s not possible to extract the underlying SGML files from the CD-ROM as they seem to be stored in a proprietary, binary format rather than plain text. This means it’s probably not going to be possible to do anything with the data other than get access to it through the old interface. To repurpose the data you’d have to get the source files from whoever produced the CD-ROM.

I tried to get the ‘install’ command to work on my Windows 7 PC using the available compatibility options by right clicking on the ‘install.exe’ filename then selecting ‘properties’ then choosing the ‘Compatibility’ tab and selecting the mode. But even with the mode set to Windows 95 the installer just gave an error.

I then looked into using a virtual machine. This is a piece of software that emulates a computer, through which you can install older operating systems and access them through a window on your PC. I followed the instructions here: http://www.makeuseof.com/tag/forget-end-life-woes-windows-8-xp-mode/ and managed to get a Windows XP operating system running using the ‘VirtualBox’ software. Through this I managed to run the CD-ROM installer and get access to the dictionary as you can see below:

johnson

I’ve taken Monday off next week so I’ll be back in the office on Tuesday.