Book Image

Koha 3 Library Management System

Book Image

Koha 3 Library Management System

Overview of this book

Koha is the first full-featured open source library management system that is widely used for efficiently managing libraries. However, setting up and maintaining Koha is no walk in the park. It is not as straightforward as setting up the other popular LAMP applications.This practical guide provides all the essential information that is needed to make the task of installing and configuring Koha really seem simple and easy. It demonstrates how to set up Koha and its various aspects – installation, configuration, application administration, and data migration. It also covers troubleshooting, software maintenance, software customization, and other advanced topics.The book starts with installing and configuring the LAMP stack and the Koha application to meet your needs. It then goes deeper into setting up various rules and configuring settings for Koha. It also covers data migration of catalog records, software maintenance, and customization of the application. Chapters are also dedicated to providing an insight into advanced topics such as LDAP integration and Internationalization. Filled with numerous code samples and screenshots, this book will tour you through setting up Koha for evaluation or test purposes. It also includes loads of tips for troubleshooting and maintenance activities. By the end of this book, you will have gained the knowledge to get the most out of your Koha installation.
Table of Contents (19 chapters)
Koha 3 Library Management System
Credits
About the Authors
About the Reviewers
Preface
Index

Configuring the correct SAX parser


Koha uses Simple API for XML (SAX) parsers to process XML data. It is possible that multiple XML parsers are installed on the server. We need to use the LibXML::SAX::Parser. The other parsers such as XML::SAX::PurePerl or XML::SAX::Expat are known to have bugs with certain character types.

First we run a test to check which parser is setup on the server. To print the parser that is in use, we run the Koha program /misc/sax_parser_print.pl:

koha@koha@linux:~> cd /home/koha/kohaclone/misc/
koha@linux:/home/koha/kohaclone/misc # ./sax_parser_print.pl
Koha wants something like:
   XML::LibXML::SAX::Parser=HASH(0x81fe220)
You have:
   XML::LibXML::SAX=HASH(0x834fea4)
Looks bad, check INSTALL.* documentation.

That error, looks bad, indicates that the configured parser is not suitable for Koha use. We will need to edit the initialization file of the parser and change its configuration.

First we locate the file ParserDetails.ini:

koha@linux:/home/koha/kohaclone...