Creating and maintaining skins
Here's how the skins were originally built for the launch of Conifer. Dan wrote the copy_opac() function in http://svn.open-ils.org/trac/ILS-Contrib/browser/conifer/trunk/tools/patch_conifer.sh to do the following:
- For the default skin, create an /openils/var/web/opac/skin/ subdirectory named default_test
- Copy the customized default files that we want to be common to all Conifer skins over top of the files in /openils/var/web/opac/skin/default_test
- For each skin, create an /openils/var/web/opac/skin/ subdirectory named "$skin"_test, then:
- Copy the contents of the default skin (/openils/var/web/opac/skin/default/*) into "$skin"_test
- Copy the default_test skin into place as "$skin"_test
- Copy the custom skin files over top "$skin"_test
- Munge the links to point to default_test for rdetail.js
- Munge the links to point to "$skin"_test for all
The design goal was to keep the smallest set of changes in Subversion as possible, and to put as much intelligence into the patch_conifer.sh script as possible, so that upgrades would not be too disruptive.
With the latest upgrade to comet, I believe that Robin added a step that keeps opac/skin/default pristine and created opac/skin/default_conifer containing all of the customizations common across Conifer that the other skins should inherit from.
Last modified 13 years ago
Last modified on Nov 30, 2009, 10:22:08 AM