[MRBS-general] Booking Types personalization
Brought to you by:
jberanek
|
From: Carlos R. P. <pas...@fc...> - 2017-08-18 20:57:57
|
Hi List! At our Academic Unit, we are using the booking types as a way to differentiate a booking for each Carrer and for other types like externals, events, etc. (feels good to have different colors for each Carrer, we believe It's a good enhancement). We made an effort to put any code personalization in the config file, so it will (or ate least we supposed to) support upgrades to MRBS without loosing it. In 1.5.0 we have done this by adding some lines in config.inc.php -------------------------- # Tipos de reservas (Carreras) $booking_types[] = "M"; $booking_types[] = "T"; $booking_types[] = "G"; $booking_types[] = "E"; $booking_types[] = "A"; $booking_types[] = "S"; $booking_types[] = "O"; // Entry types $vocab["type.I"] = "Ing. Alimentos"; $vocab["type.E"] = "Tec. Mecatrón"; $vocab["type.M"] = "Ing. Mecatrón"; $vocab["type.T"] = "T.U.C.I.A"; $vocab["type.G"] = "Tec. Gastrono"; $vocab["type.A"] = "Reservas vs."; $vocab["type.S"] = "Escuela Sec."; $vocab["type.O"] = "Otros."; // These are the colours used for distinguishing between the dfferent types of bookings in the main // displays in the day, week and month views $color_types = array( 'I' => "#F5DA81", 'E' => "#00BFFF", 'M' => "#FE9A2E", 'T' => "#2E64FE", 'G' => "#04B45F", 'A' => "#A9F5A9", 'S' => "#AEB404", 'O' => "#F6CECE" ); -------------------------- As per the other thread (OpenLDAP Admin group) I assume we will need to upgrade the version for debugging, testing possible solutions, etc. So I made a backup ;-), upgraded to 1.6.1, keeping config.inc.php, almost everything seems to be working but not this personalization. I assume that it is not the right way of doing this personalization, or that may be it will be a good addition to have a way of setting this on the Database?. Thanks again! |