Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Configuration examples for ELOG  Not logged in ELOG logo
Message ID: 9     Entry time: Mon Feb 16 21:10:18 2004
Author: Stefan Ritt 
Author Email: stefan.ritt@psi.ch 
Category: Database like 
Configuration Name: Visitor registration 
Last Revision: Tue Feb 17 09:41:07 2004 by Stefan Ritt 
This configuration example shows a few of the newly developed advanced 
options. We use it at our institute as a visitor registration database. 
Before someone from our collaboration visits the institute, she/he has to 
register on this public logbook.

Following advanced functionality is used:

- The arrival and departure dates are attributes of type "date". This way 
a visitor can select the date from the date picker. In addition, the 
entries can be sorted according to the arrival date. Using a quick filter 
on arrival date, one can show the new arrivals for the next week, next 
month and so on. By adding a bookmark to the browser in the form

http://server.domain/Visitor%20Registration/?Arrival+date=7

one can click on that bookmark to see who will come in the upcoming week. 
Using the find page, one can query the database for arbitrary arrival and 
departure dates, like "who was here last year between May and July?".

- The "visitor" and "email" attributes are preset with the name and email 
of the current user. Of course every user has to register on that logbook 
(enabled with "self register = 2")

- The attribute "Home Institute" can be chosen from a list of preset 
institutes. Using the home institute as a conditional attribute, the elogd 
server fills in automatically the fax number of the institute (see the 
list {1},{2}, ...) after it has been selected.

- Email notifications are set up such that on each new registration, an 
email is sent to stefan.ritt@psi.ch, and an email is sent to 
radiation@psi.ch if the check box "Radiation badge" is checked. Please 
change the smtp server host name to make email notifications work.

elog:/1 shows an example entry screen.
Attachment 1: visit.gif  33 kB  | Hide | Hide all
visit.gif
Attachment 2: elogd.cfg  2 kB  Uploaded Tue Feb 17 09:39:55 2004  | Hide | Hide all
[global]
logbook tabs = 0
port = 80
smtp host = <your.smtp.host>

[Visitor Registration]
Comment = Please register here if you want to visit PSI

; Access control
Password file = passwd
Self register = 2
Admin user = stefan

; Attributes
Attributes = Visitor, Email, Home Institute, Arrival date, Departure date, Home Address, FAX number
Preset Visitor = $long_name
Preset Email = $user_email
Preset Radiation badge = 0
Options Home Institute = INFN Pisa{1}, INFN Genova{2}, INFN Pavia{3}, INFN Lecce{4}, Univ. of Tokyo{5}, KEK{6}, Osaka Univ.{7}, Waseda Univ.{8}, Budker Institute{9}, Other{10}
Options Radiation badge = boolean
Required Attributes = Home Institute, Arrival date, Departure date
Type Arrival date = date
Type Departure date = date

Comment Radiation badge = Check if you need a temporary radiation badge (visit the experimental hall)
Comment Home Address = Enter home institute address only if this is your first visit to PSI
Comment FAX number = Please supply always your institute's fax number

Quick filter = Home Institute, Arrival date, Departure date

; institue faxes
{1} Preset Fax number = +39 050 2214 317
{2} Preset Fax number = +39 010 3133 58
{3} Preset Fax number = +39 0382 423241 
{4} Preset Fax number = +39 0832 325128
{5} Preset Fax number = +81 3 3814 8806 
{6} Preset Fax number = +81 298 64 2580 
{7} Preset Fax number = +81 ...
{8} Preset Fax number = +81 3 3203 4379
{9} Preset Fax number = +7 383 2 342 163
{10} Preset Fax number = +xx xxx xxxx xxx

; flags
Message comment = <i>Optional comment:</i>
List display = Visitor, Home Institute, Arrival date, Departure date, Radiation badge
Summary lines = 0
Message Height = 10
Message Width = 50
Enable Attachments = 0
HTML default = 2
Suppress default = 2
Resubmit default = 2
Last Submission = $date by $Visitor
Date format = %a, %d %b %Y

; email
Use Email subject = Visit of $Visitor from $Home Institute on $Arrival date
Use Email heading = A new visitor will arrive at PSI for the MEG experiment:
Use Email heading edit = An old visitor registration has been updated:
Suppress email to users = 1
Email all = stefan.ritt@psi.ch
Email "Radiation badge" 1 = radiation@psi.ch
Email format = 11
ELOG V3.1.5-3fb85fa6