Hi all,

Our hours page has some history! We originally used Andrew Darby's code using 
Google Calendar. Then Google Calendar went belly up and a former colleague 
rewrote the code as https://github.com/LincolnUniLTL/calibr

This required regularly uploading a file with new hours, and our hours vary 
according to time of year, day of week, and possibly phase of moon so I kept 
making mistakes and having to fix them. Also separately we have to keep the 
hours correct in Alma anyway, and I was already using the Alma API to pull out 
other things, so I mashed up various bits of code and now it pulls from there 
instead. 

But it is quite a messy hybrid of calibr plus our  
https://github.com/LincolnUniLTL/LTLstats (library dashboard) code to create 
the whole (bilingual) hours module at https://library2.lincoln.ac.nz/hours/ and 
also custom widgets on our (Wordpress-based) website https://ltl.lincoln.ac.nz/ 
which use cURL to GET a couple of mini-pages we've created in php on our own 
server, for hours of the day (for the home page) and hours of the week (for our 
About LTL tab).

So it'd be a mess to share - I mean I'd be happy to, but I can't imagine anyone 
willingly wanting to implement it from scratch. Instead for people using Alma 
I'd recommend something like 
https://developers.exlibrisgroup.com/blog/Alma-Hours-API-Widget 

Deborah

-----Original Message-----
From: Code for Libraries [mailto:CODE4LIB@LISTSERV.ND.EDU] On Behalf Of Matt 
Sherman
Sent: Friday, 8 July 2016 2:34 a.m.
To: CODE4LIB@LISTSERV.ND.EDU
Subject: [CODE4LIB] Hours on Library Websites?

Hi all,

We are working on a website migration/redesign into WordPress and I am trying 
to figure out an automated solution for posting and keeping up to date the 
hours on the home page.  I am wondering, how do other institutions manage this? 
 Are there any good tools I should be looking into?  Any insights or 
suggestions are appreciated.

Matt Sherman

________________________________
P Please consider the environment before you print this email.
"The contents of this e-mail (including any attachments) may be confidential 
and/or subject to copyright. Any unauthorised use, distribution, or copying of 
the contents is expressly prohibited. If you have received this e-mail in 
error, please advise the sender by return e-mail or telephone and then delete 
this e-mail together with all attachments from your system."

Reply via email to