User Tools

Site Tools


newdevs:bootstrap

New Developers Working Group

Bootstrap OPAC

The Evergreen Bootstrap OPAC 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. The Bootstrap version replaces the TPAC version.

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

Tips on Customizing Bootstrap OPAC

  • Color style sheet is located in Open-ILS/src/templates-bootstrap/opac/parts/css/colors.tt2
  • Other CSS style sheet is located in Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2
  • Images for Bootstrap OPAC use should be saved in Open-ILS/web/images.
  • Example of embedding image tag:

<img src="[% ctx.media_prefix %]/opac/images/image_example.png[% ctx.cache_key %]" [% img_alt(l('Example Image')) %] />

Things to add to this page:

  • Tips on customizing images and CSS
  • Location of Perl files / how they relate to each other
newdevs/bootstrap.txt · Last modified: 2023/04/28 09:51 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.