Home page for the internal documentation section. I'll split this into additional pages if there ends up being too much stuff here.
- Make a Reservation - opens in a new tab
- Adjust Reservation Permissions - use this when you add new equipment content types
- Reservation Calendar
- Configure the MERCI module overall settings
- Configure MERCI settings for one content type: Find the content type, edit it, and look for the MERCI Settings tab near the bottom. These settings will apply to all nodes of this content type.
- Configure MERCI settings for one piece of equipment: find the node, edit it, and look for the MERCI Settings tab near the bottom.
Reservable Equipment
Each piece of equipment is a "node" of a particular content type. These "nodes" each have a field called "simplified name." The "simplified name" is used in color-coding reservations on the calendar.
In the list below the bold items are content types, the italic items are nodes, and the text in parens is the simplified name:
Example:
- Name of Content Type
- Title of one node of this content type (simplified-name)
Actual content types and nodes:
- Echocardiography Facilities
- Vevo 2100 (vevo-2100)
- Exercise Equipment Facilities
- Swimming Chamber (swimming-chamber)
- Treadmill (treadmill)
- Running Cages (voluntary-running-wheel-cages)
- Muscle Test Facilities
- Mouse Muscle Test System (muscle-test)
- Plethysmography Facilities
- Whole Body Plethysmography (whole-body-plethysmography)
Add a new Content Type: Structure -> Content Types -> Add New Content Type
Add a new node of an existing content type: Content -> Add Content (then select content type)
Taxonomy Categories associated with Equipment
These terms are associated with equipment Content Types and are used to group equipment. You select one of these terms when you create or edit a Content Type. All nodes of that type then have that term associated with them.
The terms are also used to organize the equipment in the Reservation Form.
Taxonomy Vocabulary Name: MERCI Equipment Grouping
Terms:
- Service Facilities
- Echocardiography Facilities
- Exercise Facilities
- Plethysmography Facilities
- Muscle Test Facilities
Reservation Calendar Color Coding
The colors are hard-coded into the underlying template (PHP) files on the server. Here's how it works:
When a Reservation is rendered, the template looks to see if the "simplified title" field of the attached equipment node exists. If it does, it adds a css class to that item that matches the simplified title.
$equipment_class = $item->rendered_fields['field_simplified_title'];
That css class is then styled in one of the underlying style sheets to add a background color.
/* For the Swimming Chamber */
.calendar-calendar .month-view .full td.single-day div.swimming-chamber,
.calendar-calendar .week-view .full div.single-day div.swimming-chamber,
.calendar-calendar .week-view .full td.single-day div.swimming-chamber,
.calendar-calendar .day-view .full td.single-day div.swimming-chamber,
.calendar-calendar .day-view .full div.single-day div.swimming-chamber {
background-color: #ccffff;
}Colors are illustrated on the Reservation Calendar.