Table of contents

Brushtail Administrator's Guide

Brushtail installation

Installation Requirements

Upgrade

Brushtail MySQL can be upgraded from 3.0/3.1/3.2 to 3.3 using a php script.

Load the upgrade_3-3.3.php script in your web browser, something like http://localhost/intranet/sql/upgrade_3-3.3.php

The upgrade script requires:

 

MySQL Database



  1. Create a MySQL database for the intranet.
  2. Create a MySQL user for the intranet
  3. Grant this user select, delete, update, insert and lock table privileges on this database.
  4. Load the file mysql_3.3.sql, contained in the sql directory, into the MySQL database. This file contains sql statements that will create and populate the required database tables.

SQLITE Database

  1. Copy intranet.db file from the "sql" to desired location on the intranet server, preferably not in web server documents directory.
  2. Edit config.php and set path to sqlite database file.
  3. Check that the user account the web server runs as has write permissions to this file.
  4. Easy huh?


Configuration File

Place the intranet files in the webserver document directory. Edit the file config.php in the includes folder.

Database format (Compulsory)
$DATABASE_FORMAT needs to be set to "mysql" or "sqlite".

MySQL CONNECTIONS SETTINGS
These paremeters must be set for the intranet to coonect to MySQL.

$DBUSER= "usernamet";
$DBPASSWORD = "userpassword";
$DATABASE = "intranet";
$HOST = "localhost";

SQLITE SETTINGS
Enter path to sqlite database file.
$SQLITE = "intranet.db"

LOCALE SETTINGS (optional)
You can also set the language for the calendars so the month and day names display in the correct language. This example sets it to German.

$locale = setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge'); //GERMANY

LDAP SETTINGS (optional)
Requires php LDAP support. LDAP can be used to authenticate users. The LDAPHOST parameter. Indicates the LDAP or Active directory server. The other LDAP paramters if you want users to be able update their Windows password via the intranet. For testing LDAP authentication try using the intranet/main/ldaptest.php utility.

$LDAPHOST = "servername";

IMAP settings (optional)
Requires php IMAP support. Used for authenticating users via imap/pop3. Check php website for information on syntax. http://www.php.net/manual/en/function.imap-open.php

$MAILSERVER = "{10.10.10.10:143/imap}";

Intranet PC bookings
$REFRESH = 5;
This parameter indicates the interval in minutes the staff booking screen automatically refreshes.

$PCFOOTER = " Book a pc online at www.foo.org/web/pcbookings.php";
PC booking slips footer text.

Online pc bookings
$BOOKINGINTERVAL = 30;
This parameter indicates the interval in minutes used on the list of available booking times.
$DAYSAHEAD = 7;
This is how may days ahead you can book
$DISPLAYPCNAME = 1;
Set to 0 to hide the pc in the booking confirmation.

WEB BOOKINGS - patron authentication (optional)
For a fuller discussion see the web bookings page of the Administrator manual.

$PCAUTHENTICATION = "disabled"; //values: disabled/autoaccept/local/web/ldap/email

$EVENTAUTHENTICATION = "disabled"; //values: disabled/autoaccept/local/web/ldap/email

if authentication is set to catalogue, specify catalogue web form parameters. This allows patrons to make bookings that are authenticated via a library system web catalogue (or any web form!)

$WEBHOST = 'webcatalogue';
$WEBPATH = '/urlpath/';
$STRINGACTION = "accept"; //values: accept/deny
$STRING = "login successfull";
$USERFIELD = "user_id";
$PASSWORDFIELD = "password";
$OTHERFIELDS["example"] = ""; //other hidden form fields can be added using this format

To test these paramteters use the sql/webtest.php utility. This will actually display what is outputted in respnse to the web authentication. This will help you identify the "string" you will be looking for.

Some web catalogues have hidden input fields with temporary dynamic data. To solve this problem,Brushtail can download the opac login page, strip the hidden field values and submit these values with the barcode and PIN. For eaxmple, if the opac login is http://opacaddress/opacloginpage.htm, then the config parameter would be:

$OTHERFIELDS["formurl"] = "http://opacaddress/opacloginpage.htm";

If the intranet server cannot connect to the web catalogue directly, requiring a web proxy, then the proxy IP address and port number will need to be set with the following parameters:

$PROXY_IP = "";
$PROXY_PORT = "";

Compression
PHP can gzip compress page html output for faster page loading. Not necessary if the web server is already performing compression. Requires zlip compression enabled in PHP. values "on" or "off".
$COMPRESSION = "on";

Log in as administrator

Delete the sql directory.

Enter the url of the intranet eg http://hostname/intranet/index.php
Log in as user name "administrator" , default password "administrator".

 

Change the administrator password. the Intranet got to "Intranet Administration

To change the administrator passwordgot to "Intranet Administration", then click on "User accounts" and edit the administrator account.

 

To configure the Intranet got to "Intranet Administration", then click on "Intranet Preferences"

 

 

See the page "Intranet Preferences" of this manual for more details.

File Uploads

If you want to be able to upload documents on the intranet there are some server parameters that may limit this.




PHP
php.ini
post_max_size = 8 M
upload_max_filesize = 8M
file_uploads = On
memory_limit = 10M

Proxy server
If your web browser goes through a proxy this may limit uploads. For example the squid proxy server has a parameter reply_body_max_size that limits file uploads.

Email forms

To be able to use intranet forms that post email messages, PHP may need to be configured to use your local mail server. This is configured in the php.ini file.

[mail function]
; For Win32 only.
SMTP = localhost


; For Win32 only.
sendmail_from = administrator@yourdomain.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i





Table of contents