Matthew Reidsma

Work Notes

Updates from the GVSU Libraries’ Web Team.
Archive // Subscribe: EmailRSS

LibGuides Subject Listing Tweak

This afternoon while waiting for Springshare to respond to a support ticket, I finally wrote a little script to fix one of my pet peeves about the LibGuides homepage list. When there is only one subject guide for a given subject, users still have to click on the subject name and then see the single guide appear below the heading, and then click again on the guide list. I’ve always thought that if there was only one guide, then the heading should just take you right to that guide. So, I wrote a script that does just that.

Animation of the script in action

The code is available up on Github, and I did end up setting a short timeout before it loads so that the LibGuides AJAX has a chance to build the page template. Other than that, you can drop it in your own LibGuides installation. Let me know if you have any questions!