[Web4lib] How to feed Today's Library Hours to home page?

John Bickar jbickar at stanford.edu
Tue Apr 28 17:21:25 EDT 2009


We're doing it in Drupal with some custom PHP, e.g.,
https://www.stanford.edu/group/cubberley/about/location_hours (block at 
the top right).

The code is rather ugly at this point (see 
http://groups.drupal.org/files/days_hours.txt). I'm thinking about 
rolling this into a Drupal module, as it doesn't appear that such a 
module exists.

-John Bickar
Stanford University


Andrew Darby wrote:
> We do this at my college, except the Google Calendar just functions as
> an administrative back-end.  I wrote up the technique here:
> 
> http://journal.code4lib.org/articles/46
> 
> We then run a cron job every night against the database to get today's
> hours for our home page.  I also use the Google Calendar data to
> generate a "Who's on the Desk Now (and When's Their Next Shift)" page:
> 
> http://www.ithacalibrary.com/info/ref_hours.php
> 
> 
> On Tue, Apr 28, 2009 at 4:05 PM, John Fereira <jaf30 at cornell.edu> wrote:
>> Ingrid Redman wrote:
>>> Hello,
>>>
>>>
>>> I would like to display "Today's Open Hours" on our library home page in
>>> an
>>> automatic fashion.  Currently our hours are available in a google calendar
>>> (http://www.poly.edu/library/services/hours.php) and I was thinking I
>>> could
>>> set up a  feed to the home page with just today's hours, but I'm not sure
>>> how.
>>>
>>>
>>> Does anyone have experience doing this kind of thing with Google
>>> calendars?
>>> Or could you recommend another solution?  I'm not much of a coder.
>> I am going to start working on this myself pretty soon.  In my case, we want
>> to be able set the "default hours" and then layer a number of difference
>> exceptions such as hours for weekends, spring/fall breaks, summer hours,
>> etc.  We also want to maintain a separate hours calendar for our reference
>> desk, and the cafe that is located in the building. to complicate things
>> further we not only want to be able to display hours on the main web site,
>> but also on a couple of display kiosks, AND it needs to be callable as a
>> service so that an equipment/room reservation system that is being developed
>> will be ablt to determine if an item is reservable during a certain time
>> period.  We have a bunch of of reservable classroom and student study rooms
>> that obviously can't be reserved for a period when the library is closed.
>>>
>>> Thanks for your help,
>>>
>>>
>>> Ingrid
>>>
>>>
>>> ________________________________________
>>>
>>> Ingrid Redman
>>>
>>> Web Librarian | Bern Dibner Library of Science and Technology
>>>
>>> Polytechnic Institute of NYU | 5 MetroTech Center | Brooklyn NY 11201
>>>
>>> Tel: 718 260 3672 | Fax: 718 260 3756 | Web:
>>>  <http://www.poly.edu/library>
>>> www.poly.edu/library
>>>
>>>
>>> _______________________________________________
>>> Web4lib mailing list
>>> Web4lib at webjunction.org
>>> http://lists.webjunction.org/web4lib/
>>>
>>>
>>
>>
>>
>> _______________________________________________
>> Web4lib mailing list
>> Web4lib at webjunction.org
>> http://lists.webjunction.org/web4lib/
>>
>>
> 
> 
> 




More information about the Web4lib mailing list