Chapter 53. Configuring and customizing the public interface

Table of Contents

Locating the default template files
Mapping templates to URLs
How to override template files
Configuring the custom templates directory in Apache’s eg.conf
Adjusting colors for your public interface
Adjusting fonts in your public interface
Media file locations in the public interface
Changing some text in the public interface
Adding translations to PO file
Adding and removing MARC fields from the record details display page
Using bibliographic source variables

The public interface is referred to as the TPAC or Template Toolkit (TT) within the Evergreen community. The template toolkit system allows you to customize the look and feel of your OPAC by editing the template pages (.tt2) files as well as the associated style sheets.

Locating the default template files

The default URL for the TPAC on a default Evergreen system is http://localhost/eg/opac/home (adjust localhost to match your hostname or IP address).

The default template file is installed in /openils/var/templates/opac.

You should generally avoid touching the installed default template files, unless you are contributing changes for Evergreen to adopt as a new default. Even then, while you are developing your changes, consider using template overrides rather than touching the installed templates until you are ready to commit the changes to a branch. See below for information on template overrides.