4.4. PHP settings

The PHP file lot/root/php/config.phpi sets various system variables used by the software, such as general Z39.50 settings, MySQL username, password settings.

You must edit this file using a editor on Linux. Sample content:


	  <?php
// This is the config file for the Library of Texas portal

// Default number of hits to present
$default_hits = 10;

//Address for the Z39.50 proxy
$z_proxy = 'localhost:9000';
//$z_proxy = 'bagel.indexdata.dk:9000';

// Timeout for searching
$z_search_timeout = 30;

// Timeout for retrieving record
$z_record_timeout = 25;

// The max number of records in a result set for the sort option to be shown
$record_sort_max = 100;

$search_history_max = 20;

//The name of the log file
$log_file = $_SERVER["DOCUMENT_ROOT"] . "/lot/spool/trace.log";

$log_blocker = array('TNAME');

//The default name for the downloaded MARC file.
$marc_export_filename = 'lot_rds_export.mrc';

//The URL used for looking up online bookstores
$book_store_url = "http://www3.addall.com/New/submitNew.cgi?type=ISBN&location=10000&state=TX&dispCurr=USD&query=";

//The z_url used to see if a boot is available as a netLibrary resource.
// Note: this is the collection ID with 'id' in front it...
$netLibrary_lookup_id = "id61";

$targets_filename = $_SERVER["DOCUMENT_ROOT"] . "/lot/spool/targets.php";
$targets_timout = 3600;

$ill_mail_from_txt = "Library of Texas";

$ill_mail_from = "ill@libraryoftexas.org";

$ill_mail_to = "anders@indexdata.dk";
?>

	

Note

Edit this file with caution. After all it is read by the LOT software on every page load, so a syntax error will break the system.

Ideally, these settings should be kept somewhere else - either under TKL admin control or in a Database.