Yet Another Hours Module – A Primer In Community Focused Development – The Hard Part



Yet Another Hours Module – A Primer In Community Focused Development – The Hard Part

0 0


hours-prez

Yet Another Hours Module, A Primer In Community Focused Development

On Github milsyobtaf / hours-prez

Yet Another Hours Module

A Primer In Community Focused Development

This is the first slide

Dustin Younse

UT Libraries

Technology Integration Services

This is the who-am-i slide

The Problem

We needed a centralized hours interface

This is the third slide
Drupal example using php script
Dynamic HTML example using php script
Static HTML example

The Solution

Find a Drupal Module to act as a central hours repository

The Complication(s)

Content editing needs to be centralized

Display needs to be distributed (Drupal and non-Drupal)

Display also needs to be mobile friendly

Needs some wow factor for stakeholder buy-in

The Complication(s)

There are a number of modules that are almost  perfect

http://drupal.org/project/office_hours

http://drupal.org/project/opening_hours

Office Hours is a CCK / Fields module, handles some of the hours logic, leaves editing distributed. No real front end - nothing to use to convince stakeholders

Opening Hours - Centralized editing, however output is non-ideal for the number of branches we have (23)

The (Partial) Solution

Then I stumbled across this article - aha!

The (Partial) Solution

Closest yet! Centralized editing, attractive output, API access

So I Got To Work

~/Sites/d6/sites/all/modules$ git log
Thu Dec 20 16:52:19 2012 -0600 3539d33 finished basic styling, moved css styling into libhours.css  [Dustin Younse]
Thu Dec 20 16:16:55 2012 -0600 d47e61e added logic to create new Now Open page with basic css styling  [Dustin Younse]
Wed Dec 19 18:39:06 2012 -0600 0465148 unnecessary file  [Dustin Younse]
Wed Dec 19 18:38:34 2012 -0600 c90ad3c added hooks to enable new Now Open page, although the .module and tpl.php files still n
Wed Dec 19 18:37:41 2012 -0600 ef80c34 added template file for new Now Open page  [Dustin Younse]
Wed Dec 19 16:18:08 2012 -0600 456ce38 added new file for a now open page  [Dustin Younse]
Wed Dec 19 16:03:28 2012 -0600 72b39cc reduced font size for printing to keep it on one page  [Dustin Younse]
Wed Dec 19 15:52:52 2012 -0600 1b5e0d5 testing, still not working quite right  [Dustin Younse]
Wed Dec 19 15:52:36 2012 -0600 070a06f modified output of disclaimer text  [Dustin Younse]
Swapped out Cougar Red for Burnt Orange, compressed list view, added emergency exceptions
As nice as the website might be, some folks still want a printed version
Custom print style sheet

The Hard Part

Contributing back!

Contributing back!

One-off Code Is Easy

Contributing back!

One-off Code Is Easy

Re-usable code is hard(er)

Now it's time to strip the CSS back, create a theme css file, and make the module more general. It's also time to update it to Drupal 7!

GitHub to the rescue!

Other Options

https://drupalfeatures.stanford.edu/

http://groups.drupal.org/higher-education

Where to find me

https://github.com/milsyobtaf

Where to find us

https://github.com/TheLibratory

http://blogs.lib.utexas.edu/tis/

Thanks!