Managing open hours

In preliminary planning to move our main library website to Drupal, one of the 'nice to haves' is to be able to manage our open hours either using a Drupal module or in a lighweight external db that we could slurp into one or more Drupal pages. I know there was a discussion of this on drupal4lib in April (original poster's message), but I'd be interested to hear if any libraries are doing anything different four months later...

Of course, we have three campuses, and within our main library have several service points and collections that all have different hours.

TIA,

Mark

A simple approach

I think that the simplest way to do this would be to:

  • Create an hours page for each library.
  • Assign edit rights with Nodeaccess and ACL, if needed.
  • Generate blocks using Node as Block.
  • Theme blocks to display desired information.
  • Either place blocks in content areas or use Panels to create a styled display page.

You could use CCK to create a content type for the pages, but it is probably not needed.

Cary Gordon
The Cherry Hill Company

Simple is better

Thanks for the suggestion Cary. Thinking about a general, normalized data model for library hours that could be instantiated in a module or CCK makes my head hurt, so this simple approach is appealing.

Mark

Highlighting open hours, closed dates

There are a couple of features of our hours display that I'm handling with PHP code that would be nice to move to a module: a way to highlight days when the library will be closed (message on the home page saying "The library will be closed tomorrow/is closed today"), and a way to highlight the current day on the listing of hours (see the sidebar here: http://www.myacpl.org/branches/athens).

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.