We're excited to release v0.3.0 of our homepage design today. Please take a good look and come back here for some details on what has been updated.
Design Changes
We're quite thankful for all of the great feedback we have received. Many changes to the design are a direct response to your concerns and suggestions. If you've given us feedback, thank-you!
Header updates
New "Libraries" typeface
Gone with the handwriting/script font, in with the much calmer, sleeker sans-serif. In this change we've also shortened from University Libraries to just Libraries, as Libraries is mobile-width-optimized.
Navigation
The navigation has been shifted to the right of the page grid, helping to separate itself from the main heading, and draw more visual importance.
Search
Many people said the search box was hidden within the header of the previous designs. Here, we've moved search entirely into the "main" section of the page.
Body updates
Resources
Having emphasized mobile-first development techniques from the start, the desktop view in the previous designs felt neglected. Here we have helped to frame the main section of the page better by adding a left-handed resources panel.
From Our Collections
We heard a lot of questions about the array of Stephen King books in the previous design iterations. We had always intended to use that space to promote new/important/unique items from special collections and the archives, so this version does just that.
Speed improvements
Since this site is mobile-first, we need to work within realistic mobile bandwidth speeds. The best way to do that is to continue to work hard to reduce the page's overall weight, and to trim the number of HTTP requests.
I have a few more engineering tricks up my sleeve for fine-tuning our page weight and then afterwards creating the illusion of faster page speed. Until the design comes farther along, I'm happy to wait here.
Site
Page Size
# of HTTP requests
Current Production
979KB
96
Beta v0.1.0
861KB
42
Beta v0.2.0
659KB
23
Beta v0.3.0
417KB
18
What's next?
We will continue to slowly iterate over pieces of the "main" section of the homepage which still need focus, but the biggest next step will be including some sample child pages in the next release. WPMG has also begun our user-testing phases, so there will be plenty of patron-based feedback to weave into the design as well.
Feedback!
Feedback is critical to making this project a success. Please continue to submit feedback on the design and the direction of the work with every release. If you haven't submitted feedback yet, please consider starting today.
As we move forward with our responsive design efforts, and the notion of making our site accessible everywhere, we would be remiss (not to mention irresponsible) to not also focus our efforts on making our content accessible for everyone.
Earlier this year, the Computer Accommodations Program conducted a scan of our current site, using a combination of HiSoftware Compliance Sheriff, the WAVE 5 web accessibility service, and their own expertise in the field. One result of this scan was the identification of the top three accessibility issues found across our site:
Control has no LABEL and no TITLE attribute Our forms weren't constructed in a manner that allowed them to be easily navigated or used by users reliant on screen readers or text to speech applications. This is something we addressed from the very beginning of our redesign efforts, and have continued to fine-tune for not just the inclusion of labels, but the creation of more meaningful labels for patrons using alternative means of accessing the site.
Page does not use headers according to specification Our pages primarily used headers (aka, the htags, h1, h2, etc.) as design elements, rather than as structural elements for page content, creating problems for screen readers and screen magnification, as well as text to speech applications. This is something we continue to fine-tune as we go. The h tags should ideally be used almost like an outline. Early iterations of the design were incomplete in this regard, but we have since focused greater attention on this. We will also be including guidelines to help content creators do the same as we move forward in documenting our pattern libraries.
Low contrast on some page elements Users with low vision or color deficient users would encounter issues on some areas of the site, particularly in the account sign in section. To address this, we've completely revamped the sign in area, and to make sure our style choices provide the necessary levels of contrast for ease of legibility.
We are dedicated to working closely with both the Computer Accommodations Program and directly with our users throughout our iterations to make sure we're continuing down the right path for a presentation that gets users the content they need, no matter where or how they access it. At the outset of the original scan, our homepage was scored by the Compliance Sheriff at 63. Our current prototype ranks at 81. This is just the beginning.
Welcome to v0.2.0! You'll see some of the design / information architecture changes quickly, but at this point in the project there's more work going on under-the-hood. For this iteration, let's talk briefly about some of the tools we're using to make the new homepage. After I nerd-out a bit, we'll chat design.
Technology
Colophon
HTML5 / CSS3 / JS
Bootstrap 3.0
Font Awesome
Google WebFonts
Yeoman / Grunt / Bower
We're committed to web standards, so it shouldn't come as a surprise we're using HTML5 / CSS3 / JavaScript (jQuery) to build this new site. And, as we're pursing a responsive design, we're leveraging the lovely and newly released Bootstrap 3.0 framework to provide us simple tools to build a site optimized for all kinds of devices.
Likely you are familiar with web fonts (we're using Google Fonts), and using font-based icons (Font Awesome), but I suspect few of you are familiar with: Yeoman, Grunt and Bower. These guys are a flight of tools to assist in scaffolding a project, running common tasks/chores and declaring code dependencies.
For our purposes, Grunt is far and away the star of the show. Using Grunt, we've written code to concatenate and minify our CSS and JS files, optimize our images using OptiPNG, pngquant, jpegtran and gifsicle, and fingerprint our assets so browers will cache everything super efficiently -- this helps load our page quick.
Speed Optimization
Someday, I'll write a few blog posts specifically focusing on performance. For now, I'd just like to point out we've shaved 202KB and 19 HTTP requests in this new design iteration. The importance of this work is fairly obvious: when you send a smaller site across the wire, using fewer requests, it loads faster.
Site
Page Size
# of HTTP requests
Current Production
979KB
96
Beta v0.1.0
861KB
42
Beta v0.2.0
659KB
23
Design
Following "mobile first" principles, the design of the mobile and tablet views of the site are pretty well baked already. We'll continue to improve those views during user-testing, but we're happy with how the site loads and feels on mobile devices. However, the overly "boxy" nature of mobile design carried itself a little too far into the desktop view, making the desktop homepage feel gray and nondescript.
We've begun work on the desktop view to put our face and personality back front and center. We want to create a friendly and welcoming desktop experience that helps convey the importance of our collections and staff to campus.
You'll notice we've reserved space for a featured highlight and given it top-left prominance in the design. The "My Account" box now drops beneath the highlight, making it quickly accessible, but lowering its importance in the design to better reflect that feature's historical usage trends.
We've elevated the "Top Databases" list, which will help users who frequently visit the library website to gain access to these resources. Our Google Analytics data shows a very common path through the site from the homepage to the alphabetical databases/indexes lists, which this feature should help improve the user experience for users of these resources.
Lastly, we've added Jon Jeffryes atop the "Today" box, to wrap the hours, events and workshops with our "face", better suggesting staff make these important things happen. The links to contact a librarian are front-and-center now, which will allow patrons to more easily obtain our help. Under this box, we're reserving room for advertising tools and services.
Upcoming: Version 0.3.0
For the next design iteration, we'll be looking to:
One of the tricky things about inspiration is that it can happen anywhere at anytime. As librarians, the faster we allow that spark of creativity to translate into obtaining rich library resources, the better we serve our patrons and the better we enable the university to accomplish its mission.
A guiding principle of our redesign effort has been to pursue a responsive design -- something that will enable patrons using any media device to access our resources. In the images above, you can see how people may interact with the new design on a phone, a tablet and a laptop computer. However a user comes to our website, we'll provide them the same great services, resources and online features they would find at a desktop computer within Wilson Library. After all, who knows where the next great U of M invention will take place? Wherever it happens, the libraries need to be present, too.
The prototype homepage
I know I'm burying the prototype link, but that's only because I want to over-emphasize how the site needs to be evaluated across all types of devices. Please, pretty please, take out your phones, your Kindles, your iPads, your Xboxes, etc. and take a few moments to imagine interacting with this design anywhere you use the internet. Okok, with that mindset in place, here's the link to our first prototype.
Features/Flaws
FYI, in this first design iteration, we've mocked up the interface as if the user was signed into their library account. Future versions will allow you to toggle between unauthenticated and authenticated views of the homepage.
Search: The prototype includes a working MNCAT Discovery blended search box (catalog + Primo Central). It's very important to note this form points to the Primo Implementation Group's staging server and that the catalog data is over one year old! The staging environment is the sandbox for us to test our future search engine configuration. Please be aware the staging environment is subject to change, and is only meant for evaluative use. Don't forget to try out the advanced search, too.
Boxy Main: The main panel contains responsive "feature boxes". This is where the design is least complete, but contains the greatest potential. The intention is to provide an array of content that is personalized and strategically placed to promote speed of access to our resources. I can imagine boxes to advertise new services or collections here.
Collection Highlight: WPMG will work to create an editorial oversight committee to draw attention to highlights of our collection. The Stephen King covers only illustrate the potential of this space. It's worth noting that the carousel here is touch-enabled, so trying giving it a flick of your finger.
Continuum: This section is for library news and special events, allowing the audience access to the new Continuum site and methods for Friends of the Libraries to engage with the homepage. Needless to say, we'll be working closely with Mark on ideas for this area of the page
Exaggerated Footer: It might look large, but it adds a nice foundation to the page and allows people to use the old CTRL+F command to quickly find links to services and resources. It's meant to be an omnipresent site map. We'll be closely watching how it is used and what items can be edited or improved here.
Flaws: We're still working to fully implement all our ideas here. There are browser issues, incomplete features, and authentication isn't baked yet. You can expect additional work to go into rounding out this prototype soon. We have tested the site in many browsers and operating systems, and things look pretty good until you hit WinXP/IE8 (you knew I'd say that, right?). Additional labor will be spent making IE8 use acceptable. If you notice something that looks particularly wrong, please let us know by providing us with...
Feedback
We need and love feedback.
Anything from a short reaction to a detailed response will be greatly appreciated. I personally think it's a nice first step towards the future, but it's also certainly far from complete. There is a lot of work left here, but there is also a lot of good direction here, too.
We'll next be working through some accessibility and user testing, which will drive considerable improvements to the design, so please do not expect this look and feel to stand still until January. We'll work carefully to resolve issues and incorporate feedback from everyone, so do not be shy about voicing your opinion.
Last week we rolled out a new set of pages listing the opening hours for the 30-plus library buildings, collections, and other place-based resources that make up the University of Minnesota Libraries. Behind these new pages lies a corresponding new system that relies on Google Calendar for maintaining opening hours information. This system is a considerable improvement over our previous tools for recording and listing opening hours.
The previous system and why we replaced it
When our previous opening hours listing system was built, it was implemented with the goal of using the internal content management tools of our web site's native content management system, Drupal. Drupal provides a means to set up custom types of pages with a variety of data fields of various types (essentially, a content-specific data model and corresponding page authoring template). Additional Drupal components provide means to query, filter, and organize the data stored under these custom content types in flexible ways. So far, so good.
As it turns out, however, opening hours for Library locations and services are…well…complicated. Hours vary over different days of the week and between academic semesters, summer session, and breaks. Throw in the occasional holiday and other special cases, and the interplay of different patterns and exceptions to the patterns becomes quite elaborateboth on the data modelling side (or, “What site maintainers have to enter into the system”) and on the information display side (or, “What visitors see.”) So in the end, the understandable desire to build within our native tool resulted in a system that was more complicated than it needed to be, both for site authors and for site users. See image above: For bonus points, figure out if SMART Learning Commons is open today. Go!
With that in mind, we set out to find a better way.
How the new system works
Turns out that what we might call “the Calendar Problem” has already been solved. Many times. University of Minnesota staff, faculty and students have one such solution ready at handGoogle Calendarand most are already proficient in its use. Wouldn't it be nice if we could use a familiar tool like Google Calendar to manage opening hours information? That would solve part of our challenge: Providing a (relatively) user-friendly way to manage opening hours data. This would allow us to delegate the maintaining of hours information to those staff who are most familiar with each location without having to get them up to speed on using Drupal along with our elaborate custom hours content model.
Above: The hours for Wilson Library and additional services at Wilson, as seen by the opening hours maintainer in Google Calendar.
That still leaves the other half of the problem: A visitor-friendly way of presenting the opening hours information. As luck would have it, Google Calendar provides an APIApplication-Programming Interface, or, more colloquially, a structured and documented way for a computer program to accept requests for its output and send back the results of those requests. With that in mind, we set to work to develop a few tools to provide different types of opening hours data:
Prominent listings of today's hours for our five main locations on the front page of our web site;
A dedicated “hours” page for each library or location listing its own hours for the upcoming week along with the hours of specific resources within that location (e.g. the Special Collections, Rare Books, and Manuscripts hours page); and
A search tool to allow visitors to find hours for future datesMuch benefit for, say, a researcher from distant lands planning a visit to a special collection (also at link immediately above).
Where the previous system was built entirely within Drupal, this new system was designed with a different set of goals:
To delegate the work of fetching data from Google Calendar to a separate subsystem optimized for that task and unconcerned with the specific needs of Drupal;
To provide the basic data in a generic format that could be available to non-Drupal subsystems within our site; and
To bundle up the presentation and interface elements needed specifically by Drupal into a Drupal module and theme.
The components we developed, then, serve these different goals:
One script is tasked with nightly queries to Google Calendar to fetch the daily and weekly hours for each location and store content snippets for the front page and collection-specific listings;
Another script processes the searches that originate from the hours search form, sends them to Google Calendar, and formats the results for display;
A Drupal module provides blocks (Drupal-specific preformatted units of web content) that can be enabled and placed in the site using Drupal's content management tools; and
Several tweaks to our Drupal theme allow a more attractive display of the hours content wherever it appears in the site.
One positive side-effect of this new system became evident while working on the project: By using Google Calendar as the source of opening hours information, we now have the option to provide this data as a public data source, or feed, that is already widely supported by virtually all desktop and mobile computers. Thus, regular visitors can subscribe directly to the Google Calendar feeds for their favorite locations in their own calendaring system of choice, rather than than visiting our web site whenever they need to check hours.
A last potential D'oh!
As a worldwide, distributed, collaborative project, Drupal never stands still. Last July, as I was elbows-deep in the code for our new opening hours solution, a blog post entitled Presenting the Opening Hours Module cropped up in my feed reader. Looks good, something we might use. I may follow up on that one of these days.
UMN Libraries had much legacy, web application code with hard-coded, environment-specific information, e.g. database usernames and passwords, file system paths, etc. This makes code difficult to move among different environments, like development, staging, and production, because, for example, each environment typically uses different databases, each with different usernames and passwords. Using hard-coding in such a situation effectively requires different versions of each source code file for each environment, which leads to multiple copies of almost identical code, that developers must manually update in each environment. Manual updates of multiple copies of essentially the same code leads to errors. Worse yet, it is almost impossible to use a revision control system to track changes to such code, which would help to prevent those errors as well as provide many other benefits. Perhaps worst of all, this web application code was all in the web server document root, where it is all too easy to mistakenly expose source code files containing sensitive information, like database credentials, to web browsers, a huge security risk.
Solution: A Universal Configuration System
To solve these problems, we designed a universal configuration system. These were our requirements:
Portable, environment-agnostic. Must support personal laptops, OIT virtual machines, OIT hardware, development/staging/production environments, etc.
Must not assume use by web applications, command line applications, or any specific kind of software.
Common convention for configuration location, in order to bootstrap configuration. Allow overriding of the convention.
Does not expose sensitive credentials or other information to non-privileged systems or users, e.g. web application configurations must be outside of the web server document root, production database credentials must not be exposed to a development environment.
Support for different sets of configuration values for different applications, as well as common configuration values for shared among applications.
Framework- and language-agnostic configuration formats.
Support for a hierarchy/tree of configuration values.
Easily switchable configurations, e.g. allow for switching the configuration of a production application to use a development database instead of the production database, for debugging purposes.
Common libraries for all programming languages necessary, deployable via a dependency management system for that language.
Support for caching, to minimize loading of configurations.
Implementation
Formats
We prefer the YAML format for configuration data and use it wherever possible. The benefits of YAML are many:
Popular format, with parser libraries available for every popular programming language.
Terse, easily-to-understand syntax.
Support for hierarchies/trees of data.
Support for comments.
Our first programming language library to support this system, \UmnLib\Core\Config for PHP, also supports JSON and INI formats, and we plan to support XML, though none of those has all the advantages of YAML.
Location Convention
On all recent machines, OIT restricts almost all customer files to the /swadm directory, providing very little space anywhere else. To minimize confusion about the purpose of sub-directories, we emulate a Linux root file system under /swadm. For example, we put applications in /swadm/bin, website document roots in /swadm/var/www, and configuration files in /swadm/etc. Following this convention allows configuration library code to be simpler and more portable, because we can count on configuration files to always be in the same place. This location also puts configuration files outside the webserver document root, preventing its exposure to web browsers, thus making our code more secure. A common location also encourages pulling configuration data out of application- or framework-specific configuration files, e.g. Drupal's settings.php, so that other applications can use Drupal's database credentials without having to parse PHP or without developers having to copy the credentials to a different file in a different format.
Location Convention Problems
While we can count on having a /swadm directory on all new OIT machines, the UMN Libraries main web site and most other web applications currently reside on older machines where this is not the case. Instead, we have different directory structures in each environment, i.e. /umnlibdev for development, /umnlibstage for staging, and /umnlib for production. Further complicating matters, these customer directories are cross-mounted such that all of them exist simultaneously on a single machine, with their web application code running inside the same instance of Apache. Therefore, it's impossible to have one /swadm/etc to rule them all on those machines. Also, some people like to run multiple development environments on their laptops or local machines, in which cases a single /swadm/etc also would be impossible. For these and other reasons, we needed a way to override the location convention.
Location Convention Solution: Overriding with Environment Variables
We use environment variables to override the location convention, so that any application written in any language, running inside a web server or on the command line, can override configurations and access overridden configurations. This still leaves unsolved the problem of the cross-mounted environments using a single instance of Apache on a single machine. Michael Berkowski provided a clever solution to this problem: Use Apache rewrite rules to conditionally set environment variables depending on the domain. We use the RewriteRule flag S|skip to tie multiples rewrite rules to a single negatedRewriteCond. Example:
So if the condition is false, we skip the number of rules indicated by the S=, in the second rule. Notice also that the second rule is effectively a no-op, since it doesn't match anything. Its only function is to specify how many of the following rules to skip.
Solution Pitfalls
We encountered a couple of pitfalls in implementing support for the environment variable solution.
Use SERVER_NAME, not HTTP_HOST
In addition to the fact that HTTP_HOST may not always contain a value, relying on HTTP_HOST introduces an XSS security risk. See Why HTTP_HOST is evil for details. We also fell into the pitfall that SERVER_NAME may not contain a value unless you set UseCanonicalName On.
Rewrite Rules Can Override Each Other
Without RewriteOptions inherit, Apache ignores all rewrite directives in all .htaccess files in all parent directories:
Our current design has served us very well, but its 2010 aesthetics and underlying code are no longer up to current web standards. The maturation of HTML 5, CSS 3, web fonts, and responsive frameworks means that we have an incredible set of tools available to us that we're not using. Further, the rapid uptake and wide variety of mobile devices in use on our campuses means that we're not serving many of our users as well as we should. Some of you may be aware that in early 2012, Web Development attempted to outsource some responsive design, a venture that sadly failed. More than a year has passed, our site design is that much older, and we feel strongly that this work is too important to delegate to an outside firm.
As long as we've got the site up on the lift for bodywork, we're going to take the opportunity to make some improvements under the hood. Our site is slow. When you're measuring in seconds and fractions thereof, slow might seem like a relatively minor concern, but extensive research by Google and others shows that millisecond delays have a measurable impact on user engagement with web sites. We've been using a tool called PageSpeed to measure our site's performance, and have begun benchmarking it against some of our peers. We've set ourselves the goal of having the fastest library site in the CIC.
Another area where we hope to make substantial improvements is in accessibility. Our colleagues in the University's Computer Accommodations Program have begun doing regular accessibility audits of various UMN sites. We met with them recently to discuss their methods and our results, and were disappointed in the overall picture of our site's accessibility. Not only is it our duty to comply with accessibility standards, we believe that an organization dedicated to discovery and use of information should be a model for accessibility. We are working closely with CAP with the goal of setting the accessibility standard for the campus with this redesign.
"That's all well and good," you might be saying to yourself, "but what about my screenshots? What about my tutorial videos? What about my instruction materials? What about my comfortable, well-worn paths through our byzantine systems environment?" Our site's look will be changing, particularly the home page, but we're not planning on changing the site's navigational structure. The menus will look different, but they'll have the same items in the same hierarchy. No URLs will be harmed in this redesign.
Furthermore, we intend to use this space, here at ulwebdev.blogspot.com to document our work. If you look at the detailed proposal we circulated to various libraries committees, you'll note that we've set a goal of having functional prototypes in place by the end of August. These prototypes will be visible to and usable by staff and the public throughout our redesign process. You'll be able to watch the site design evolve, so nothing about the final product should be a surprise.