Customizing the Staff Client
staff clientcustomizing
This chapter will give you some guidance on customizing the staff client.
The files related to the staff client are located in the directory /openils/var/web/xul/[staff client version]/server/
Changing Colors and Images
To change or adjust the image on the main screen edit /openils/var/web/xul/index.xhtml. By default, the image on this page is
main_logo.jpg which is the same main logo used in the OPAC.
To adjust colors on various staff client pages edit the corresponding cascading style sheets located in
/openils/var/web/xul/[staff client version]/server/skin/. Other display aspects can also be adjusted using these cascading style sheets.
Changing Labels and Messages
staff clientcustomizinglabels and messages
You can customize labels in the staff client by editing the corresponding DTD files. The staff client uses the same lang.dtd used by the OPAC. This file is located in /openils/var/web/opac/locale/[your locale]. Other labels are controlled by the staff client specific lang.dtd file in /openils/var/web/xul/client version]/server/locale/[your locale]/.
Changing the Search Skin
There are a few ways to change the custom skin for OPAC searching in staff client.
Changing the Search Skin on Server - Overriding Local Settings
To change the opac search skins used by the staff client create a file named custom.js and place it in the
/openils/var/web/xul/[staff client version]/server/skin/ directory. This will effect all staff clients since these settings will
override local settings.
For example, the following text in custom.js would set the staff client opac, details page, results page and browse function to the craftsman
skin:
urls['opac'] = '/opac/' + LOCALE + '/skin/craftsman/xml/advanced.xml?nps=1';
urls['opac_rdetail'] = '/opac/' + LOCALE + '/skin/craftsman/xml/rdetail.xml';
urls['opac_rresult'] = '/opac/' + LOCALE + '/skin/craftsman/xml/rresult.xml';
urls['browser'] = '/opac/' + LOCALE + '/skin/craftsman/xml/advanced.xml?nps=1';
Restart the staff client to see the changes.
Changing the Search Skin on an individual Machine
To change the search skin on an individual machine for personal preferences or needs, edit the file
/[Evergreen staff client path]/build/chrome/content/main/constants.js.
Find the lines which point to the urls for the OPAC and edit accordingly. For example, here is an example to set the opac, details page, results page and browse
function to the craftsman skin:
'opac' : '/opac/' + LOCALE + '/skin/craftsman/xml/advanced.xml?nps=1',
'opac_rdetail' : '/opac/' + LOCALE + '/skin/craftsman/xml/rdetail.xml',
'opac_rresult' : '/opac/' + LOCALE + '/skin/craftsman/xml/rresult.xml',
...
'browser' : '/opac/' + LOCALE + '/skin/craftsman/xml/advanced.xml?nps=1',
After editing this file, save it and restart the staff client for the changes to take effect.