Installation

Assuming you have all the dependencies in place, as described in Requirements, you can now proceed to activate the BAT modules and get setup.

Activate Modules

Visit /admin/modules/ and activate the following modules:

  • BAT - Booking and Availability Management Tools
  • BAT Event
  • BAT Event UI
  • BAT Fullcalendar
  • BAT Unit
  • Booking and Availability Tools API
  • Composer Manager (this needs to activated explicitly as it is not strictly a BAT dependency)

Once you confirm installation, Drupal will request all the dependencies to these modules. Provided that they are all already downloaded, you may simply continue. If something is missing, cancel the process, download the missing modules, and then continue.

Install BAT PHP Library

Provided that you are using Composer Manager, X Autoload, and have Composer, you should now have a composer.json file written in /sites/default/files/composer. You can change this location and where the PHP Library will be downloaded by visiting admin/config/system/composer-manager/settings and setting the Vendor Directory to a location of your choosing.

Now, visit /sites/default/files/composer on the command line and run composer install (this assumes that you have already setup Composer for your development environment - if not follow the information here)

Install FullCalendar Libraries

  1. Download Fullcalendar and unpack in sites/all/libraries/. You should have a structure similar to libraries/fullcalendar/.
  2. Download Fullcalendar Scheduler and unpack in sites/all/libraries/. You should have a structure similar to libraries/fullcalendar-scheduler/.

jQuery Version

Visit admin/config/development/jquery_update and ensure that the default jQuery version for your admin theme, as well as the site overall, is at least 1.10.

Verify Setup

Once setup is completed you should see the following in admin/report/status

  • Composer Manager
../../_images/composermanager.png
  • FullCalendar
../../_images/fullcalendarok.png
  • Finally, in admin/bat you should have:
../../_images/batok.png

We are now ready to get set up!