User Tools

Site Tools


New Developers Working Group


The Evergreen TPAC is a mod_perl2 application that uses Template Toolkit for HTML templates. It uses vanilla Javascript and some jQuery, but is designed to function with JavaScript turned off.

  • Template Files: Open-ILS/src/templates/opac/
  • JavaScript Files: Open-ILS/web/opac/common/js/

The TPAC is being replaced by the Bootstrap OPAC but some Evergreen implementations have not yet made the switch.

How to Enable Bootstrap for Your OPAC

To enable the new OPAC design, open the /etc/apache2/eg_vhost.conf file.

Find the following line:

PerlAddVar OILSWebTemplatePath "/openils/var/templates" Add the following line directly below it:

PerlAddVar OILSWebTemplatePath "/openils/var/templates-bootstrap" Be sure that, if you have any local customizations, that they are referenced below this line. This way, your customizations will still appear in the new OPAC design (although they may need to be adjusted to better fit the new style).

You can also turn on the new OPAC for some virtual hosts only, by adding it to the appropriate virtual host entry. Be sure to reference the OILSWebTemplatePath for the templates-bootstrap directory before referencing any local customizations used by that virtual host.

Things to add to this page:

  • Tips on customizing images and CSS
  • Location of Perl files / how they relate to each other
  • Where the config setting is to change from using the TPAC to the BooPAC
newdevs/tpac.txt · Last modified: 2023/04/28 08:28 by gmonti

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.