Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

ualbertalib/LibraryHoursLocations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Hours and Locations Application

This application is in two parts: one for the public Hours and Locations Portal, and the other for the admin site.  All code is provided as is, with no support offered, aside from the included documentation.  

All code was written with the specific requirements of UBC Libraries in mind, and may require significant changes to suit the purposes of other libraries.  That said, it could be well suited for any multi-branch/multi-location library.

Documentation is in the documentation directory.

After creating a MySQL database, the necessary tables can be added by importing hours_locations.sql.

The code for the public portal is in hours_portal.

The code for the admin site is in hours_admin.

The admin site was built using CakePHP 1.3.

There is XML output available via the code in the hours_portal/xml directory that is designed for use with CoolSign digital signage software.

--
Installation:
1) Pull down this code: git clone git@github.com:ualbertalib/LibraryHoursLocations.git hours.library.ualberta.ca # presumably under /var/www/sites 
2) cd hours.library.ualberta.ca
3) Download cakephp-1.3.* 
4) Copy httpd_conf/hours.library.ualberta.ca.conf /etc/httpd/conf.d/
5) run hours.locations.sql to create database, if appropriate
6) Edit DB credentials at docroot/hours_admin/app/config/database.php and docroot/hours_portal/conf/db.conf
7) Set permissions, when appropriate: chown -R nobody:apache /var/www/sites/hours.library.ualberta.ca/

Here is an example directory structure:

hours.library.ualberta.ca
.
└── README
├── hours_locations.sql
├── cakephp-1.3.20
│   ├── app
│   ├── cake
│   ├── index.php
│   ├── plugins
│   ├── README
│   └── vendors
└── docroot
    ├── assets
    ├── documentation
    ├── hours_admin
    ├── hours_portal
    ├── index.html


--
hours_admin SECTION

Edit docroot/hours_admin/index.php

- it's fairly self exlplanatory just modify the ROOT section to point to the hours_admin directory
and the CAKE_CORE_INCLUDE_PATH to point to the cakephp-1.3.* directory which is usually located just above the webroot


EDIT
docroot/hours_admin/app/index.php - configure 

EDIT
docroot/hours_admin/app/webroot/index.php

IF PHP 5.3 - EDIT
in cakephp*/app/config/core.php uncomment the date_default_timezone_set line and modify to the current timezone
Edit 
docroot/hours_admin/app/config/database.php with the proper database credentials


To add locations to the map see:
docroot/hours_admin/app/webroot/hours-portal-notes.doc

About

Public hours and locations portal and admin site for maintenance of library hours and locations.

Resources

Stars

Watchers

Forks

Packages

No packages published