How to book multiple resources for a specific event?

Created on 4 January 2020, over 5 years ago
Updated 19 December 2023, over 1 year ago

I am trying to implement a following use case with BEE/BAT: Users need to book several types of resources (all for the same period) in order to organise an experiment.

What is needed is:

  1. Several types of bookable equipment (works OK with BEE)
  2. A node type for the experiment.
  3. A way to assign the BEE bookings to this experiment.
  4. Ideally, a way to book all the equipment at the same time.

I understand that no. 4 is somehow doable with a search API. However, I'm stuck at no. 3.

What I tried so far was to add a reference to experiment from "/admin/bat/events/event/event-types/availability_daily/edit/fields".

Question 1: is this a right way for grouping several reservation events under one meta-event ("experiment")

This seems to work partially, as I am indeed able to add a reference once the reservation event has been added. However, the default form display is not used for adding new reservation events.

That is:
- "/node/4/add-reservation" shows only start & end date
- "/admin/bat/events/event/add/availability_daily" shows the start/end date, Unit, State and my reference field. (At least as long as I use autocomplete or check boxes as widget for this field in /admin/bat/events/event/event-types/availability_daily/edit/form-display. Select list doesn't work.)

From reading of the existing issues, I understood that changing the add-reservation form is only possible by writing custom PHP code and that it's somehow possible to add such reservations using webforms instead.

Question 2: is this correct? If yes, where can I find some example for designing and using of such webform?

By looking at the optional BAT module, I can see the "BAT Facets". I presume this is used with Search API, to find bookable entities and hopefully also to easily book several entities for the same period at once.

Question 3: where can I find documentation/examples explaining how to use search API with BEE/BAT?

Question 4: how/what for is the "BAT Calendar Reference" used?

Thanks in advance.

💬 Support request
Status

Postponed: needs info

Component

Documentation

Created by

🇦🇹Austria Deno

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024