Chapter 9. Customizing PMB

1. Adapting language files
2. Style sheets and CSS

There are various ways to customize PMB.

1. Adapting language files

PMB uses language files for displaying menus, messages, etc. on the Management and OPAC interfaces respectively. These language files are to be found in the sub-folders includes/messages and opac_css/includes/messages respectively inside your PMB installation directory.

The contents of these language files may be modified to suit the needs of your library. But if you want your PMB application to remain compatible with future versions, you are advised not to modify the original files in your PMB distribution.

Indeed starting with PMB 2.1, you are now able to substitute messages or official labels in the original files with your own in XML format.

Example. You wish to have your own local version in English : In the same folder as en_UK.xml create a new file named en_UK_subst.xml and enter the lines that you want to substitute in en_UK.xml. Here is an example :

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE XMLlist SYSTEM "../XMLlist.dtd">

<!-- personalized messages en English for PMB
$Id: chap6_personnaliser.xml,v 1.2 2006/08/23 09:58:47 gautier Exp $ -->

<XMLlist>
<entry code="1000">Identify yourself</entry>
</XMLlist>

Note. The syntax must comprise the elements necessary for the XML file. Look at the example given above, and insert the lines to modify in-between the XMLlist tags.