1 <?xml version="1.0" encoding="UTF-8"?>
2 <chapter xml:id="staffclientinstallation" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xl="http://www.w3.org/1999/xlink">
4 <title>Installation of Evergreen Staff Client Software</title>
6 <para>This section describes installation of the Evergreen Staff Client software.</para>
9 <section xml:id="staffclientinstallation-installing-staffclient">
10 <title>Installing the Staff Client</title>
12 <primary>staff client</primary>
13 <secondary>installing</secondary>
15 <section xml:id="staffclientinstallation-installing-prebuilt">
16 <title>Installing a Pre-Built Staff Client</title>
17 <para>A pre-built Staff Client is available for <systemitem class="osname">Windows</systemitem>,
18 <systemitem class="osname">Mac</systemitem> or Linux systems. Installing the Staff Client in
19 each of these environments is described in the following sections.</para>
20 <section xml:id="staffclientinstallation-installing-windows">
21 <title>Installing on <systemitem class="osname">Windows</systemitem></title>
23 <primary>staff client</primary>
24 <secondary>installing</secondary>
25 <tertiary>Windows</tertiary>
27 <para>In this section we describe the process of installing the Staff Client on the
28 <systemitem class="osname">Microsoft Windows</systemitem> operating system.</para>
29 <para>Visit the downloads section of the Evergreen website at
30 <ulink url="http://www.evergreen-ils.org/downloads.php">http://www.evergreen-ils.org/downloads.php</ulink>
31 and find the standard <systemitem class="osname">Microsoft Windows</systemitem> Installer
32 that contains the current version of the Staff Client. Download the Installer, then run
33 it. A screen that looks similar to this should appear:</para>
36 <phrase>Running the Staff Client installer</phrase>
39 <imagedata fileref="../media/staffclientinstallation-staffclient-1.png" format="PNG" scalefit="1" width="60%"/>
42 <para>Click <guibutton>'Next'</guibutton> to continue through the guided install
43 process. The Install Wizard will ask you to agree to the end-user license, ask you where
44 to install the software, ask about where to place icons, and then will automatically
45 install the software on your workstation.</para>
46 <para>When you run the Staff Client for the first time, a screen similar to this should
50 <phrase>Running the Staff Client for the first time</phrase>
53 <imagedata fileref="../media/staffclientinstallation-staffclient-2.png" format="PNG" scalefit="1" width="60%"/>
56 <para>First, add the name of your Evergreen server to the field
57 <emphasis role="bold">Hostname</emphasis> in the <emphasis role="bold">Server</emphasis>
58 section. For example, the PINES demo system is
59 <ulink url="http://demo.gapines.org">http://demo.gapines.org</ulink>.
60 After adding the server name, click <guibutton>'Re-Test Server'</guibutton>.</para>
61 <para>Because this is the initial run of the Staff Client, you will see a warning in the
62 upper-right saying: <emphasis role="bold">Not yet configured for the specified
63 server</emphasis>. The first thing you must do to the Staff Client on every workstation
64 is to assign it a workstation name. This is covered in
65 <xref linkend="staffclientinstallation-workstationnames"/>.</para>
67 <section xml:id="staffclientinstallation-installing-macos">
68 <title>Installing on <systemitem class="osname">Mac OS</systemitem></title>
70 <primary>staff client</primary>
71 <secondary>installing</secondary>
72 <tertiary>Mac OS</tertiary>
74 <para>This section describes <systemitem class="osname">Mac OS</systemitem>
75 packages and related versions of <application>XULrunner</application> that can
76 be used to run the Staff Client in a <systemitem class="osname">Mac OS</systemitem>
79 <title>Evergreen Version 1.2.3.0</title>
82 <para>A <systemitem class="osname">Mac OS</systemitem> package that
83 contains an early version of the Staff Client (version 1.2.3.0) for use
84 with <application>XULrunner</application> is available. You can find
85 current releases of <application>XULrunner</application> here:
86 <ulink url="http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases">
87 http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases</ulink> .
88 Download and install the latest version. You can find further information
89 about <application>XULrunner</application> here:
90 <ulink url="https://developer.mozilla.org/en/xulrunner">
91 https://developer.mozilla.org/en/xulrunner</ulink>.</para>
92 <para>Note that later versions of <application>XULrunner</application>
93 (e.g., version 1.9.2.13) have replaced version 1.8.0.4, which has known
94 security holes and is not recommended for applications that deal with
95 public web content.</para>
98 <para>A <systemitem class="osname">Mac OS</systemitem>
99 Installation package for Staff Client version 1.2.3.0 is
100 available from Evergreen Indiana. Download and install it from
102 <ulink url="http://evergreen.lib.in.us/opac/extras/files/evergreen_osx_staff_client_1_2_3.zip">
103 evergreen_osx_staff_client_1_2_3.zip</ulink> .
107 <para>To upgrade to a more recent version of the Staff Client, you can
108 copy the <filename class="directory">build</filename> directory from a
109 working <systemitem class="osname">Windows</systemitem> installation of
110 the desired version of the Staff Client to your
111 <systemitem class="osname">Mac</systemitem>.
112 The required files may be located in a directory like this on the
113 <systemitem class="osname">Windows</systemitem> machine:
114 <filename class="directory">C:\Program Files\Evergreen Staff Client\build</filename>.
115 Copy these files to the <filename class="directory">Resources</filename>
116 folder within the <package>Open-ILS</package> package in your
117 <filename class="directory">Applications</filename> directory on the Mac,
118 overwriting files with the same names.</para>
120 <listitem>Drag the application's icon to your toolbar for easier
123 <para>When you run the Staff Client installer, a screen will appear that looks
124 similar to this:</para>
127 <phrase>Running the Staff Client installer for
128 <systemitem class="osname">Mac OS</systemitem></phrase>
131 <imagedata fileref="../media/staffclientinstallation-staffclient-3.png" format="PNG" scalefit="1" width="20%"/>
134 <para>Click <guibutton>'Continue'</guibutton>, accept the license, then finish the
135 installation. The application will be located at the destination you selected
136 during installation. You will then be able to drag the application into your
137 toolbar for easier access.</para>
140 <phrase>Finishing the installation</phrase>
143 <imagedata fileref="../media/staffclientinstallation-staffclient-4.png" format="PNG" scalefit="1" width="20%"/>
148 <title>Running directly using <application>XULrunner</application></title>
150 <primary>staff client</primary>
151 <secondary>XULRunner</secondary>
153 <para>You must install an appropriate version of <application>XULrunner</application>
154 to match the Evergreen version. See the following table for the recommended version of
155 <application>XULrunner</application>:</para>
156 <table xml:id="staffclientinstallation-table-1">
157 <?dbfo keep-together="always" ?>
158 <title>Evergreen / <application>XULrunner</application> Dependencies</title>
159 <tgroup align="left" cols="2" colsep="1" rowsep="1">
160 <colspec colname="evergreen_version" colnum="1" colwidth="1.0*"/>
161 <colspec colname="xulrunner_version" colnum="2" colwidth="1.0*"/>
164 <entry>Evergreen Version</entry>
165 <entry>XULRunner Version</entry>
170 <entry>Evergreen 1.6.x.x</entry>
171 <entry>XULrunner 1.9.x.x</entry>
174 <entry>Evergreen 1.4.x.x</entry>
175 <entry>XULrunner 1.8.0.4 or XULrunner 1.8.0.3</entry>
178 <entry>Evergreen 1.2.x.x</entry>
179 <entry>XULrunner 1.8.0.4 or XULrunner 1.8.0.3</entry>
184 <note>If you have issues removing previously installed
185 <application>XULrunner</application> versions see
186 <xref linkend="staffclientinstallation-remove-xulrunner"/>
187 for further information.</note>
188 <para>The Staff Client data from the directory
189 <filename class="directory">./staff_client/build</filename> must be placed
190 somewhere on the machine (e.g.
191 <filename class="directory">~/Desktop/Evergreen_Staff_Client</filename>).</para>
192 <para>Remember to call <application>XULrunner</application> with the full path to the
193 binary, followed by the install command and the path to the client data:</para>
196 /Library/Frameworks/XUL.framework/xulrunner-bin --install-app ~/Desktop/Evergreen_Staff_Client
199 <para>The command should exit quietly and will create the folder
200 <filename class="directory">/Applications/OpenILS</filename>,
201 containing a launcher named <application>open_ils_staff_client</application>.</para>
203 <simplesect xml:id="staffclientinstallation-remove-xulrunner">
204 <title>(OPTIONAL) Removing previously installed XULRunner versions</title>
206 <primary>XULRunner</primary>
207 <secondary>removing previous versions</secondary>
209 <para>If you already have a newer version of
210 <application>XULrunner</application> installed, per the release notes,
211 you will need to remove the entire directory
212 <filename class="directory">/Library/Frameworks/XUL.framework</filename>
213 before downgrading.</para>
214 <para>In addition, you may also need to remove the previous file
215 <filename>/Library/Receipts/xulrunner-ver-mak.pkg</filename> .</para>
216 <para>If file <filename>/Library/Receipts/xulrunner-ver-mak.pkg</filename> does
217 not exist (possibly in newer <systemitem class="osname">Mac OS</systemitem>
218 releases), you need to flush the file <filename>receiptdb</filename>.</para>
219 <note>If you install a newer version of <application>XULrunner</application>
220 over a previous (older) install, the older install is not removed but the
221 symlinks are changed to the newer one.</note>
224 <title>(OPTIONAL) Flush Receiptdb file:</title>
225 <para>First, get the package identifier, then purge/forget the build that was
226 initially installed:</para>
229 sudo pkgutil --pkgs > /tmp/pkgs.txt
230 sudo pkgutil --forget org.mozilla.xulrunner
233 <note>It may not be necessary to edit the file
234 <filename>/Library/Receipts/InstallHistory.plist</filename> after deleting the
235 folder <filename class="directory">XUL.framework</filename>. See
236 <ulink url="http://lists.apple.com/archives/Installer-dev/2009/Jul/msg00008.html">
237 http://lists.apple.com/archives/Installer-dev/2009/Jul/msg00008.html</ulink>
238 for more information.</note>
241 <title>Creating an APP file: Staff Client and <application>XULrunner</application> Bundled</title>
242 <para>An APP file is basically a folder. Start with a folder stucture like this:</para>
252 <para>Create an APP folder structure with the following commands:</para>
255 mkdir -p Evergreen.app/Contents/Frameworks
256 mkdir -p Evergreen.app/Contents/Resources
257 mkdir -p Evergreen.app/Contents/MacOS
262 <para>Create a new file in the folder
263 <filename class="directory">Evergreen.app/Contents/Info.plist</filename>
264 containing the following data (adjust for your version of
266 <programlisting language="xml"><![CDATA[
267 <?xml version="1.0" encoding="UTF-8"?>
268 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
269 <plist version="1.0">
271 <key>CFBundleExecutable</key>
272 <string>xulrunner</string>
273 <key>CFBundleGetInfoString</key>
274 <string>OpenILS open_ils_staff_client rel_1_6_1_2</string>
275 <key>CFBundleInfoDictionaryVersion</key>
277 <key>CFBundleName</key>
278 <string>Evergreen Staff Client</string>
279 <key>CFBundlePackageType</key>
280 <string>APPL</string>
281 <key>CFBundleShortVersionString</key>
282 <string>rel_1_6_1_2</string>
283 <key>CFBundleVersion</key>
284 <string>rel_1_6_1_2.rel_1_6_1_2</string>
285 <key>NSAppleScriptEnabled</key>
287 <key>CFBundleTypeIconFile</key>
288 <string>Evergreen.icns</string>
293 <listitem>Download and install an appropriate
294 <systemitem class="osname">Mac OS</systemitem> package of
295 <application>XULrunner</application> from the Mozilla website
296 <ulink url="https://developer.mozilla.org/en/xulrunner">
297 https://developer.mozilla.org/en/xulrunner</ulink> (see
298 <xref linkend="staffclientinstallation-table-1"/> for recommendations).</listitem>
300 <para>Make a copy of the folder
301 <filename class="directory">/Library/Frameworks/XUL.Framework</filename>
302 inside your APP file. It should look something like this:</para>
310 ________Current -> 1.9.1.3 (symlink)
312 ______XUL -> Versions/Current/XUL
313 ______libxpcom.dylib -> Versions/Current/libxpcom.dylib
314 ______xulrunner-bin -> Versions/Current/xulrunner-bin
319 <filename>XUL.Framework/Versions/Current/xulrunner</filename> into the
320 folder <filename class="directory">Evergreen.app/MacOS</filename>
321 (do not symlink; copy the file).</listitem>
323 <para>Make <filename>Evergreen.app/Resources</filename> the root
324 of your Evergreen application files like this:</para>
331 ______application.ini
338 <listitem>Put a <systemitem class="osname">Mac</systemitem>
339 format icon file named <filename>Evergreen.icns</filename> in
340 <filename class="resources">Resources</filename>.</listitem>
344 <section xml:id="staffclientinstallation-installing-linux">
345 <title>Installing on Linux</title>
347 <title>Quick Upgrade of the Staff Client</title>
348 <para>A Linux Staff Client is automatically built on the server as part of the
349 normal <emphasis>make install</emphasis> process for Evergreen server-side
350 software. To upgrade the Staff Client on a remote Linux workstation with a new
351 version, just copy the directory tree containing the Staff Client from your
352 server to the remote workstation.</para>
353 <para>Execute the following commands, replacing <literal>USER</literal>,
354 <literal>WORKSTATION</literal>, and <literal>SOME_PATH</literal> with
355 appropriate values:</para>
358 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
359 scp -r ./build USER@WORKSTATION:/SOME_PATH/
362 <para>You should test the newly copied Staff Client on the remote workstation.
363 Log into the workstation and execute the following command:</para>
366 xulrunner /SOME_PATH/build/application.ini
371 <title>Building the Staff Client on the Server</title>
373 <primary>staff client</primary>
374 <secondary>building on the server</secondary>
376 <para>A Linux Staff Client is automatically built on the server as part of the
377 normal <emphasis>make install</emphasis> process for Evergreen server-side
378 software. See <xref linkend="serversideinstallation-compile"/> for details of
379 the build process.</para>
380 <para>In order to install a compatible Staff Client on another Linux system, you
381 can copy the appropriate files from the Staff Client build directory on your
382 server to the new Linux system. You could manually build the Staff Client on the
383 new system, but you must ensure that the <envar>BUILD_ID</envar> you chose on
384 the server matches the <envar>BUILD_ID</envar> for each Staff Client you use on
385 other systems.</para>
386 <para>If you wish to use a pre-packaged <systemitem class="osname">Windows</systemitem>
387 version on some systems, you may want to choose the <envar>BUILD_ID</envar> on
388 both server and other versions to match that of the
389 <systemitem class="osname">Windows</systemitem> Staff Client. To determine which
390 <envar>BUILD_ID</envar> was used for existing Staff Client installations,
391 execute each Staff Client and click the <guibutton>'About this Client'</guibutton>
393 <para>If you are allowed to make changes on the Evergreen server, another option
394 is to create a symbolic link. In order for a copy of the Staff Client and server
395 to work together, the <envar>BUILD_ID</envar> must match the name of the
396 directory containing the server components of the Staff Client, or the name of a
397 symbolic link to that directory. As the
398 <systemitem class="username">root</systemitem> user, make the changes as follows:</para>
402 cd /openils/var/web/xul
403 ln -s SERVER_BUILD_ID/ CLIENT_BUILD_ID
408 <title>Building the Staff Client on a Client Machine</title>
409 <para>This section is directed toward end-users who wish to use Linux rather than
410 <systemitem class="osname">Windows</systemitem> for client machines, but have limited
411 Linux experience. You can build the Staff Client on a Linux system without installing the
412 Evergreen Server component. This is a relatively simple process compared to server
413 installation, but does require some command-line work. The following instructions are
414 for building Staff Client version 1.2.1.4 on
415 <systemitem class="osname">Kubuntu 7.10</systemitem>; modify them as needed for
416 other distributions (the instructions should work as-is for
417 <systemitem class="osname">Ubuntu</systemitem> or
418 <systemitem class="osname">Ubuntu</systemitem> derivatives).</para>
421 <title>Prerequisites</title>
422 <para>Both <application>subversion</application> and
423 <application>XULrunner</application> are required to build the Staff
424 Client. As the <systemitem class="username">root</systemitem> user,
425 use <command>apt-get</command> to install packages for
426 <application>subversion</application> and
427 <application>XULrunner</application>. You can also use
428 <command>synaptic</command>, the graphical user interface for
429 <command>apt-get</command>. For <application>subversion</application>,
430 select the latest version; for <application>XULrunner</application>,
431 select version <emphasis>1.8.1.4-2ubuntu5</emphasis>.</para>
435 sudo apt-get install subversion
436 sudo apt-get install xulrunner
441 <title>Download the Source Code</title>
444 <para>Determine which version is needed</para>
445 <para>For most end-users, a specific version is required
446 to communicate properly with the Evergreen server. Check
447 with your system administrator, IT person, or HelpDesk to
448 determine which Staff Client versions are
450 <para>Next, you need to determine which
451 <emphasis>tag</emphasis> to use when downloading the
452 source code. Tags are markers in the source code to create
453 a snapshot of the code as it existed at a certain time;
454 tags usually point to tested and stable code, or at least
455 a community-recognized release version.</para>
456 <para>To determine which tag to use, browse to
457 <ulink url="http://svn.open-ils.org/trac/ILS/browser">
458 http://svn.open-ils.org/trac/ILS/browser</ulink>.
459 Look in the <guilabel>Visit</guilabel> drop-down box; see
460 the list of <guilabel>Branches</guilabel> and, further
461 down, a list of <guilabel>Tags</guilabel>. You may have
462 to do some guesswork, but it is fairly straightforward to
463 determine which tag to use. If the server is version
464 1.6.1.2, you will want to use the tag that looks most
465 appropriate. For example, as you look through the tag
466 list, notice the tag named 'rel_1_6_1_2'. This is the tag
467 you need; make a note of it for the next step.</para>
470 <para>Download the Code</para>
472 <systemitem class="username">opensrf</systemitem>
473 user, open a terminal (command-line prompt) and navigate
474 to the directory in which you wish to download the Staff
475 Client. Use the following commands to download the proper
476 version of the source code by tag name:</para>
479 # as the opensrf user:
480 cd /DOWNLOAD/DIRECTORY
484 <para>Remember to change "rel_1_6_1_2" to the appropriate
485 tag for your installation.</para>
490 <title>Build the Staff Client</title>
491 <para>In the following example, navigate to the directory in
492 which the source code was downloaded, then navigate to the
493 proper subdirectory and run the "make" utility to actually build
494 the Staff Client. Remember to check with your system
495 administrator about which Staff Client <envar>BUILD_ID</envar>
496 to use. The server checks the Staff Client
497 <envar>BUILD_ID</envar> against itself to determine whether or
498 not a connecting client is supported. For instance, for the
499 PINES installation (version 1.6.1.2) the supported
500 <envar>BUILD_ID</envar> is "rel_1_6_1_2". Modify the following
501 commands accordingly.</para>
502 <para>As the <systemitem class="username">opensrf</systemitem>
503 user, run the following commands to build the Staff Client:</para>
506 # as the opensrf user:
507 wget http://evergreen-ils.org/downloads/Evergreen-ILS-1.6.1.2.tar.gz
508 tar xfz Evergreen-ILS-1.6.1.2.tar.gz
509 cd /home/opensrf/Evergreen-ILS-1.6.1.2
510 ./configure --prefix=/openils --sysconfdir=/openils/conf
511 cd ./Open-ILS/xul/staff_client/
512 make STAFF_CLIENT_BUILD_ID='rel_1_6_1_2' install
517 <title>Run the Staff Client</title>
518 <para>As the <systemitem class="username">opensrf</systemitem>
519 user, navigate to the <filename class="directory">build/</filename>
520 subdirectory and run the following command:</para>
523 # as the opensrf user:
524 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client/build
525 xulrunner application.ini
530 <title>(OPTIONAL) Clean Up / Create Shortcuts</title>
531 <para>The source code download included many files that are
532 needed to build the Staff Client but are not necessary to run
533 it. You may wish to remove them to save space, or to create a
534 clean <literal>staging</literal> directory containing the
535 finished Staff Client that can then be copied to other
536 machines. To do this, execute the following commands (remember
537 to replace <emphasis>DOWNLOAD_DIRECTORY</emphasis> and
538 <emphasis>STAGING_DIRECTORY</emphasis> with the appropriate
542 # as the opensrf user:
543 mkdir ~/STAGING_DIRECTORY
544 cd ~/DOWNLOAD_DIRECTORY/Open-ILS/xul/
545 cp -r staff_client ~/STAGING_DIRECTORY
548 <para>Test the Staff Client to verify that all necessary files
549 were copied to the staging directory:</para>
552 # as the opensrf user:
553 cd ~/STAGING_DIRECTORY/staff_client/build
554 xulrunner application.ini
557 <para>If there were no problems, then finish the cleanup by
558 removing the original download directory as shown:</para>
561 # as the opensrf user:
562 rm -r -f ~/DOWNLOAD_DIRECTORY
565 <para>Finally, the command:</para>
568 # as the opensrf user:
569 xulrunner ~/STAGING_DIRECTORY/staff_client/build/application.ini
572 <para>will now run the Staff Client. You may wish to create a
573 shortcut for the Staff Client. To do so, use the previous
574 command as the target for the shortcut:
575 <menuchoice><guimenu>Desktop</guimenu><guimenuitem>StartMenu</guimenuitem><guimenuitem>K-Menu</guimenuitem></menuchoice></para>
580 <title>Using Wine to Install on Linux</title>
582 <primary>staff client</primary>
583 <secondary>using wine to install on Linux</secondary>
585 <para>The Linux application <application>Wine</application> is another
586 alternative if you wish to install the packaged
587 <systemitem class="osname">Windows</systemitem> versions rather than manually
588 building the Staff Client. <application>Wine</application> is a Linux
589 application that allows users to directly run
590 <systemitem class="osname">Windows</systemitem> executables, and is a simple
591 way for casual Linux users to use the Staff Client. You can find more information
592 about <application>Wine</application> at
593 <ulink url="http://www.winehq.org/site/docs/wineusr-guide/getting-wine">
594 http://www.winehq.org/site/docs/wineusr-guide/getting-wine</ulink>.</para>
595 <para>As the <systemitem class="username">root</systemitem> user, use
596 <command>apt-get</command> to install the package for <application>Wine</application>.
597 You can also use <command>synaptic</command>, the graphical user interface.</para>
600 <para>Install wine:</para>
604 sudo apt-get install wine
609 <para>Visit the downloads section of the Evergreen website at
610 <ulink url="http://www.evergreen-ils.org/downloads.php">
611 http://www.evergreen-ils.org/downloads.php</ulink> and find the
612 <systemitem class="osname">Microsoft Windows</systemitem> Installer
613 that contains the desired version of the Staff Client. Download
614 the installer and place it in a temporary directory.</para>
617 <para>As the <systemitem class="username">opensrf</systemitem>
618 user, navigate to the temporary directory where you downloaded
619 the <systemitem class="osname">Windows</systemitem> installer
620 file, then execute it with the <application>wine</application>
621 application (remember to replace <emphasis>VERSION</emphasis> with
622 the release number of the Staff Client you downloaded):</para>
625 # as the opensrf user:
627 wine evergreen-setup-rel_VERSION.exe
630 <para>If this step fails, you may need to configure
631 <application>Wine</application> first to properly emulate
632 <systemitem class="osname">Windows XP</systemitem>. To do so,
633 type <command>winecfg</command> from the command line; in the
634 <literal>Applications</literal> tab of the window that pops up,
635 select <literal>Default Settings</literal> and choose
636 <literal>Windows XP</literal> from the drop-down menu, then
637 click <guibutton>'Apply'</guibutton>.</para>
640 <para>Launch the Staff Client</para>
641 <para>A new entry for the Staff Client should now appear
642 somewhere in the <literal>All Applications</literal> menu of
643 your Linux desktop. You may also find a new desktop shortcut for
644 the Staff Client. To launch the Staff Client, visit the
645 <literal>All Applications</literal> menu on your desktop and
646 find the section similar to:</para>
647 <para><menuchoice><guimenu>Wine</guimenu><guimenuitem>Program Files</guimenuitem><guimenuitem>Evergreen Staff Client</guimenuitem><guimenuitem>Evergreen Staff Client</guimenuitem></menuchoice>,
649 <para>or else launch the Staff Client from the new desktop shortcut.</para>
656 <title>Building the Staff Client</title>
658 <primary>staff client</primary>
659 <secondary>building</secondary>
661 <para>You can also manually build the Staff Client by using the <command>make</command>
662 utility in the Staff Client source directory (e.g., the directory
663 <filename class="directory">/home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client</filename>
664 for the current Evergreen version). There are a number of possible options to manually
665 build special versions of the Staff Client on a Linux system. Following is a list of
666 variables that you can pass to <command>make</command> to influence the manual build
670 Build Variable <envar>STAFF_CLIENT_BUILD_ID</envar></title>
671 <para>During the normal <emphasis>make install</emphasis> Evergreen server-side
672 software build process, the variable defaults to an automatically generated
673 date/time string, but you can also override the value of <envar>BUILD_ID</envar>.</para>
674 <para>You could use the following commands during the normal install process:</para>
678 cd /home/opensrf/Evergreen-ILS-1.6.1.2
679 make STAFF_CLIENT_BUILD_ID=1_6_1_2 install
682 <para>You can also manually build the Staff Client in the Staff Client
683 source directory with a different <envar>BUILD_ID</envar>.</para>
684 <para>As the <systemitem class="username">opensrf</systemitem> user,
685 execute the following commands to build the Staff Client (remember to replace
686 <emphasis>NEW_VERSION</emphasis> with an appropriate value):</para>
689 # as the opensrf user:
690 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
691 make STAFF_CLIENT_BUILD_ID=NEW_VERSION build
697 Build Variable <envar>STAFF_CLIENT_VERSION</envar></title>
698 <para>During the normal <emphasis>make install</emphasis> Evergreen server-side
699 software build process, the variable is pulled automatically from a README file
700 in the Evergreen source root. The variable defaults to
701 <emphasis>0trunk.revision</emphasis>, where the value of "revision" is
702 automatically generated. You can override the value of <envar>VERSION</envar>
703 similarly to the <envar>BUILD_ID</envar>.</para>
704 <para>You could use the following commands during the normal install process:</para>
708 cd /home/opensrf/Evergreen-ILS-1.6.1.2
709 make STAFF_CLIENT_VERSION=0mytest.200 install
712 <para>You can also manually build the Staff Client in the Staff Client
713 source directory with a different <envar>VERSION</envar>.</para>
714 <para>If you plan to make extensions update automatically, the
715 <envar>VERSION</envar> needs to conform to the format recommended in
716 <ulink url="https://developer.mozilla.org/en/Toolkit_version_format">
717 Toolkit Version Format</ulink> and newer versions need to be "higher" than older
719 <para>As the <systemitem class="username">opensrf</systemitem> user,
720 execute the following commands to build the Staff Client:</para>
723 # as the opensrf user:
724 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
725 make STAFF_CLIENT_VERSION=0mytest.200 build
731 Build Variable <envar>STAFF_CLIENT_STAMP_ID</envar></title>
732 <para>During the normal <emphasis>make install</emphasis> Evergreen
733 server-side software build process, the variable is generated from
734 <envar>STAFF_CLIENT_VERSION</envar>. You may want to have multiple versions
735 of the Staff Client with different stamps, possibly for different uses or
736 client-side customizations. You can override the value of
737 <envar>STAMP_ID</envar> similarly to the <envar>BUILD_ID</envar>.</para>
738 <para>You could use the following commands during the normal install process:</para>
742 cd /home/opensrf/Evergreen-ILS-1.6.1.2
743 make STAFF_CLIENT_STAMP_ID=my_test_stamp install
746 <para>You can also manually build the Staff Client in the Staff Client
747 source directory with a different <envar>STAMP_ID</envar>.</para>
748 <para>As the <systemitem class="username">opensrf</systemitem> user,
749 execute the following commands to build the Staff Client:</para>
752 # as the opensrf user:
753 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
754 make STAFF_CLIENT_STAMP_ID=my_test_stamp build
760 <title>Advanced Build Options</title>
762 <primary>staff client</primary>
763 <secondary>building</secondary>
764 <tertiary>advanced build options</tertiary>
766 <para>In addition to the basic options listed above, there are a number of advanced
767 options for building the Staff Client. Most are target names for the
768 <command>make</command> utility and require that you build the Staff Client from the
769 <literal>staff_client</literal> directory. See the following table for a list of
770 possible <command>make</command> target keywords:</para>
772 <title>Keywords For Advanced Build Options</title>
773 <?dbfo keep-together="always" ?>
774 <tgroup align="left" cols="2" colsep="1" rowsep="1">
775 <colspec colname="keyword" colnum="1" colwidth="1.0*"/>
776 <colspec colname="description" colnum="2" colwidth="3.0*"/>
779 <entry>Keyword</entry>
780 <entry>Description</entry>
785 <entry>clients</entry>
786 <entry>Runs "make win-client", "make linux-client", and "make
787 generic-client" individually</entry>
790 <entry>client_dir</entry>
791 <entry>Builds a client directory from the build directory, without
792 doing a rebuild. The same as "copy everything but
796 <entry>client_app</entry>
797 <entry>Prerequisite "client_dir"; removes "install.rdf" from
798 client directory so an APP bundle can't be installed as an
802 <entry>client_ext</entry>
803 <entry>Prerequisite "client_dir"; remove "application.ini",
804 "autoupdate.js", "standalone_xul_app.js" from client directory so
805 an extension won't break Firefox</entry>
808 <entry>extension</entry>
809 <entry>Prerequisite "client_ext"; rewritten to use "client_ext"</entry>
812 <entry>generic-client</entry>
813 <entry>Prerequisite "client_app"; makes an XPI file suitable for
814 use with "xulrunner --install-app""</entry>
817 <entry>win-xulrunner</entry>
818 <entry>Prerequisite "client_app"; adds Windows xulrunner to client build</entry>
821 <entry>linux-xulrunner</entry>
822 <entry>Prerequisite "client_app"; adds Linux xulrunner to client build</entry>
825 <entry>win-client</entry>
826 <entry>Prerequisite "win-xulrunner"; builds "setup exe" (requires
827 that "nsis" package be installed, will add options for automatic
828 update if configured and developer options if client build was a
829 "make devbuild")</entry>
832 <entry>linux-client</entry>
833 <entry>Prerequisite "linux_xulrunner"; builds a "tar.bz2" bundle
834 of the Linux client</entry>
837 <entry>[generic-|win-|linux-|extension-]updates[-client]</entry>
838 <entry>Calls external/make_updates.sh to build full and partial
839 updates generic/win/linux/extension prefix limit to that
840 distribution; Adding <option>-client</option> builds clients and
841 copies them to a subdirectory of the
842 <filename class="directory">updates</filename> directory as well;
843 <option>extension-updates-client</option> doesn't exist.</entry>
848 <para>Following are descriptions of other special build options:</para>
850 <title>Developer Build</title>
851 <para>You can create a so-called <emphasis>developer build</emphasis>
852 of the Staff Client by substituting <option>devbuild</option> for
853 <option>build</option> when running <command>make</command> from the
854 <literal>staff_client</literal> directory. The build will contain an
855 extra configuration file that enables some developer options.</para>
856 <para>As the <systemitem class="username">opensrf</systemitem> user, run
857 the following commands from the Staff Client source directory:</para>
860 # as the opensrf user:
861 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
867 <title>Compressed Javascript</title>
868 <para>You can execute the Google <systemitem class="resource">Closure Compiler</systemitem>
869 utility to automatically review and compress Javascript code after the build
870 process completes, by substituting <option>compress-javascript</option> for
871 <option>build</option> when running <command>make</command>.
872 For more information on the Google Closure Compiler, see
873 <ulink url="http://code.google.com/closure/compiler/">
874 http://code.google.com/closure/compiler</ulink>.</para>
875 <para>As the <systemitem class="username">opensrf</systemitem> user, run
876 the following commands from the Staff Client source directory:</para>
879 # as the opensrf user:
880 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
881 make compress-javascript
884 <para>You can also combine Javascript review and compression, and also perform a
885 <emphasis>developer build</emphasis>.</para>
886 <para>As the <systemitem class="username">opensrf</systemitem> user, run
887 the following <command>make</command> command from the Staff Client source directory
888 (the order of options is important):</para>
891 # as the opensrf user:
892 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
893 make devbuild compress-javascript
897 <simplesect xml:id="staffclientinstallation-autoupdatehost">
898 <title>Automatic Update Host</title>
899 <para>You can override the host used to check for automatic Staff Client updates
900 by specifying the <option>AUTOUPDATE_HOST</option> option.</para>
901 <para>You could use the following commands during the normal install process:</para>
905 cd /home/opensrf/Evergreen-ILS-1.6.1.2
906 make AUTOUPDATE_HOST=localhost install
909 <para>You can manually build the Staff Client in the Staff Client
910 source directory and set <option>AUTOUPDATE_HOST</option> to enable automatic
911 update checking.</para>
912 <para>As the <systemitem class="username">opensrf</systemitem> user,
913 execute the following commands to build the Staff Client:</para>
916 # as the opensrf user:
917 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
918 make AUTOUPDATE_HOST=localhost build
921 <para>For more information on Automatic Updates, see
922 <xref linkend="staffclientinstallation-autoupdate"/>.</para>
926 <title>Installing and Activating a Manually Built Staff Client</title>
927 <para>The Staff Client is automatically built, installed and activated as part of the
928 normal <command>make<option>install</option></command> process for Evergreen
929 server-side software. However, if you manually build the Staff Client from the
930 <literal>staff_client</literal> directory, then you need to take additional steps to
931 properly install and activate it. You also have the option of installing the Staff
932 Client on the same machine it was built on, or on a different machine.</para>
933 <para>Assuming you have already built the Staff Client, and that your installation is
934 in the directory <filename class="directory">/openils/var/web/xul</filename>, as the
935 <systemitem class="username">opensrf</systemitem> user execute the following
939 # as the opensrf user:
940 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
941 mkdir -p "/openils/var/web/xul/$(cat build/BUILD_ID)"
942 cp -R build/server "/openils/var/web/xul/$(cat build/BUILD_ID)"
947 <title>Packaging the Staff Client</title>
948 <para>Once you have built the Staff Client, you can create several forms of special client
949 packages by using a modified <command>make</command> command in the <literal>staff_client</literal>
952 <title>Packaging a Generic Client</title>
953 <para>This build creates a Staff Client packaged as an XPI file suitable for use with
954 the <option>--install-app</option> parameter of <application>XULrunner</application>.
955 It requires that you already have the <systemitem>zip</systemitem> utility
956 installed on your system.</para>
957 <para>As the <systemitem class="username">opensrf</systemitem> user, execute
958 the following commands:</para>
961 # as the opensrf user:
962 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
966 <para>The output file <filename>evergreen_staff_client.xpi</filename> will be created.</para>
969 <title>Packaging a <systemitem class="osname">Windows</systemitem> Client</title>
970 <para>This build creates a Staff Client packaged as a
971 <systemitem class="osname">Windows</systemitem> executable. It requires that
972 you already have the <application>unzip</application> utility installed on
973 your system. It also requires that you install
974 <ulink url="http://nsis.sourceforge.net/">NSIS (Nullsoft Scriptable Install System)</ulink>,
975 a professional open source utility package used to create
976 <systemitem class="osname">Windows</systemitem> installers (the
977 <application>"makensis"</application> utility is installed as part of the
978 <application>"nsis"</application> package). You should use Version 2.45 or
980 <para>If you wish for the Staff Client to have a link icon/tray icon by
981 default, you may wish to provide a pre-modified
982 <application>xulrunner-stub.exe</application>. Place it in the Staff Client
983 source directory and <command>make</command> will automatically use it instead
984 of the one that comes with the downloaded <application>XULrunner</application>
985 release. The version of <application>xulrunner-stub.exe</application> need not
986 match exactly.</para>
987 <para>You can also use a tool such as
988 <ulink url="http://www.angusj.com/resourcehacker/">Resource Hacker</ulink>
989 to embed icons. <application>Resource Hacker</application> is an open-source
990 utility used to modify resources within 32-bit
991 <systemitem class="osname">Windows</systemitem> executables.
992 Some useful icon ID strings include the following:</para>
994 <?dbfo keep-together="always" ?>
995 <title>Icon IDs for Packaging a Windows Client</title>
996 <tgroup align="left" cols="2" colsep="1" rowsep="1">
997 <colspec colname="keyword" colnum="1" colwidth="1.0*"/>
998 <colspec colname="icon" colnum="2" colwidth="1.0*"/>
1001 <entry>IDI_APPICON</entry>
1002 <entry>Tray icon</entry>
1005 <entry>32512</entry>
1006 <entry>Default window icon</entry>
1011 <para>As the <systemitem class="username">opensrf</systemitem> user
1012 execute the following commands:</para>
1015 # as the opensrf user:
1016 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1020 <para>The output file <filename>evergreen_staff_client_setup.exe</filename> will be created.</para>
1023 <title>Packaging a Linux Client</title>
1024 <para>This build creates a Staff Client packaged as a compressed
1025 <literal>tar</literal> archive file with <application>XULrunner</application>
1026 already bundled with it. It requires that you already have the
1027 <application>bzip2</application> utility installed on your system.</para>
1028 <para>As the <systemitem class="username">opensrf</systemitem> user,
1029 execute the following commands:</para>
1032 # as the opensrf user:
1033 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1037 <para>The output file <filename>evergreen_staff_client.tar.bz2</filename> will be created.</para>
1040 <title>Packaging a <application>Firefox</application> Extension</title>
1041 <para>This build creates a Staff Client packaged as a <application>Firefox</application>
1042 extension. It requires that you already have the <systemitem>zip</systemitem>
1043 utility installed on your system.</para>
1044 <para>As the <systemitem class="username">opensrf</systemitem> user,
1045 execute the following commands:</para>
1048 # as the opensrf user:
1049 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1053 <para>The output file <filename>evergreen.xpi</filename> will be created.</para>
1056 <section xml:id="staffclientinstallation-autoupdate">
1057 <title>Staff Client Automatic Updates</title>
1059 <primary>staff client</primary>
1060 <secondary>automatic updates</secondary>
1062 <para>It is possible to set up support for automatic Staff Client updates, either during
1063 the normal Evergreen server-side build process, or by manually building the Staff Client
1064 with certain special options.</para>
1066 <para>Automatic update server certificate requirements are more strict than
1067 normal server requirements. <application>Firefox</application> and
1068 <application>XULrunner</application> will both ignore any automatic update
1069 server that is not validated by a trusted certificate authority. Servers with
1070 exceptions added to force the Staff Client to accept them <emphasis>WILL NOT
1071 WORK</emphasis>.</para>
1072 <para>In addition, automatic updates have special requirements for the file
1073 <filename>update.rdf</filename>:</para>
1075 <listitem>It must be served from an SSL server, or</listitem>
1076 <listitem>It must be signed with the <ulink url="https://developer.mozilla.org/en/McCoy">
1077 https://developer.mozilla.org/en/McCoy</ulink> tool.</listitem>
1079 <para>You can pre-install the signing key into the file
1080 <filename>install.rdf</filename> directly, or install it into a copy as
1081 <filename>install.mccoy.rdf</filename>. If the latter exists it will be copied
1082 into the build instead of the original file
1083 <filename>install.rdf</filename>.</para>
1086 <title>Autoupdate Host</title>
1087 <para>You can manually set the name of the automatic update host. If you do
1088 not set the name then, by default, the Staff Client will not include an
1089 automatic update preference. You can set the autoupdate host name as
1093 <para>At configuration time during the normal <emphasis>make install</emphasis>
1094 process for Evergreen server-side software.</para>
1095 <para>You can do this when you first configure the Evergreen server-side
1096 software (see <xref linkend="serversideinstallation-configure"/>).
1097 As the <systemitem class="username">opensrf</systemitem> user, execute
1098 the following commands:</para>
1101 # as the opensrf user:
1102 cd /home/opensrf/Evergreen-ILS-1.6.1.2
1103 ./configure --prefix=/openils --sysconfdir=/openils/conf --with-updateshost=hostname
1109 <para>During a manual Staff Client build process.</para>
1110 <para>You can override the variable
1111 <envar>AUTOUPDATE_HOST=hostname</envar> and manually build the
1112 Staff Client from the <literal>staff_client</literal>
1113 directory (see <xref linkend="staffclientinstallation-autoupdatehost"/>
1114 for details). If you specify only a bare hostname (for example,
1115 <systemitem class="domainname">example.com</systemitem>) then
1116 the Staff Client will automatically use the secure URL
1117 <systemitem class="domainname">https://example.com</systemitem>.
1118 If you wish to use a non-https URL, then you must explicitly
1119 specify the full URL (for example,
1120 <systemitem class="domainname">http://example.com</systemitem>).</para>
1121 <para>As the <systemitem class="username">opensrf</systemitem> user,
1122 execute the following commands to build the Staff Client (remember to
1123 replace <emphasis>SOME_URL</emphasis> with an appropriate value)
1127 # as the opensrf user:
1128 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1129 make AUTOUPDATE_HOST=http://SOME_URL build
1136 <title>Building Updates</title>
1138 <primary>staff client</primary>
1139 <secondary>automatic updates</secondary>
1140 <tertiary>building</tertiary>
1142 <para>Similar to building clients, you can use the targets
1143 <option>generic-updates</option>, <option>win-updates</option>,
1144 <option>linux-updates</option>, and <option>extension-updates</option>
1145 individually with <command>make</command> to build the update files for the
1146 Staff Client. To build all the targets at once, simply use the target
1147 <option>updates</option>.</para>
1148 <para>A full update will be built for each specified target (or for all if you
1149 use the target <option>updates</option>). For all but extensions any previous
1150 full updates (archived by default in the directory
1151 <filename class="directory">/openils/var/updates/archives</filename>) will be
1152 used to make partial updates. Partial updates tend to be much smaller and will
1153 thus download more quickly, but if something goes wrong with a partial update
1154 the full update will be used as a fallback. Extensions do not currently support
1155 partial updates.</para>
1156 <para>As the <systemitem class="username">opensrf</systemitem> user, change
1157 directory to the Staff Client source directory, then execute the following
1161 # as the opensrf user:
1162 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1165 <para>Command to build all updates at once:</para>
1168 # as the opensrf user:
1172 <para>commands to build updates individually:</para>
1175 # as the opensrf user:
1176 make generic-updates
1179 make extension-updates
1184 <title>Building updates with clients</title>
1186 <primary>staff client</primary>
1187 <secondary>automatic updates</secondary>
1188 <tertiary>building with clients</tertiary>
1190 <para>To save time and effort you can build updates and manual download
1191 clients at the same time by adding the phrase <literal>"-client"</literal> to each
1192 target name (for example, you could specify <option>updates-client</option> to build
1193 all the targets at once, or you could specify <option>win-updates-client</option>
1194 to build updates individually). This process will not work for the option
1195 <option>extension-updates</option>.</para>
1196 <para>The clients will be installed alongside the updates and listed on the
1197 <filename>manualupdate.html</filename> page, instead of being left in the
1198 <literal>staff_client</literal> directory.</para>
1199 <para>As the <systemitem class="username">opensrf</systemitem> user, execute
1200 one of the following commands:</para>
1201 <para>To build all updates at once:</para>
1204 # as the opensrf user:
1205 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1209 <para>To build updates individually:</para>
1212 # as the opensrf user:
1213 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1214 make generic-updates-client
1215 make win-updates-client
1216 make linux-updates-client
1221 <title>Activating the Update Server</title>
1223 <primary>staff client</primary>
1224 <secondary>automatic updates</secondary>
1225 <tertiary>activating the update server</tertiary>
1227 <para>This section reviews scripts associated with the update server, and
1228 requires some final adjustments to file permissions.</para>
1229 <para>The Apache example configuration creates an <literal>updates</literal>
1230 directory that, by default, points to the directory
1231 <filename class="directory">/openils/var/updates/pub</filename>. This
1232 directory contains one HTML file and several specially-named script files.</para>
1233 <para>The <filename>updatedetails.html</filename> file is the fallback web
1234 page for the update details. The <filename>check</filename> script is used for
1235 <application>XULrunner</application> updates. The
1236 <filename>update.rdf</filename> script is used for extension updates.
1237 The <filename>manualupdate.html</filename> file checks for clients to provide
1238 download links when automatic updates have failed and uses the download script
1239 to force a download of the generic client XPI (compared to
1240 <application>Firefox</application> trying to install it as an
1242 <para>To change the permissions for the scripts
1243 <filename>check</filename>, <filename>download</filename>,
1244 <filename>manualupdate.html</filename>, and
1245 <filename>update.rdf</filename>, as the root user execute the following
1250 cd /openils/var/updates/pub
1251 chmod +x check download manualupdate.html update.rdf
1257 <title>Other tips</title>
1258 <simplesect xml:id="staffclientinstallation-othertips">
1259 <title>Multiple workstations on one install</title>
1260 <para>Multiple workstation registrations for the same server can be accomplished
1261 with a single Staff Client install by using multiple profiles. When running
1262 <application>XULrunner</application> you can specify the option
1263 <literal>"-profilemanager"</literal> or <literal>"-P"</literal> (uppercase "P")
1264 to force the Profile Manager to start. Unchecking the <literal>"Don't ask at startup"</literal>
1265 option will make this the default.</para>
1266 <para>Once you have opened the Profile Manager you can create additional
1267 profiles, one for each workstation you wish to register. You may need to install
1268 SSL exceptions for each profile.</para>
1269 <para>When building any of the targets <option>win-client</option>,
1270 <option>win-updates-client</option>, or <option>updates-client</option>, you can
1271 specify <option>NSIS_EXTRAOPTS=-DPROFILES</option> to add an option
1272 <guimenuitem>"Evergreen Staff Client Profile Manager"</guimenuitem> to the
1274 <para>As the <systemitem class="username">opensrf</systemitem> user,
1275 execute the following commands:</para>
1278 # as the opensrf user:
1279 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client
1280 make NSIS_EXTRAOPTS=-DPROFILES win-client
1285 <title> Multiple Staff Clients</title>
1286 <para>It may be confusing if you are not careful, but you can log in to
1287 multiple Evergreen servers at the same time, or a single Evergreen server
1288 multiple times. In either case you will need to create an additional profile for
1289 each additional server or workstation you want to log in as (see the previous
1290 tip in <xref linkend="staffclientinstallation-othertips"/>).</para>
1291 <para>Once you have created the profiles, run
1292 <application>XULrunner</application> with the option <option>-no-remote</option>
1293 (in addition to <option>"-profilemanger"</option> or <option>"-P"</option> if
1294 needed). Instead of <application>XULrunner</application> opening a new login
1295 window on your existing session it will start a new session instead, which can
1296 then be logged in to a different server or workstation ID.</para>
1300 <section xml:id="staffclientinstallation-running-staffclient">
1301 <title>Running the Staff Client</title>
1303 <primary>staff client</primary>
1304 <secondary>running</secondary>
1305 <tertiary>linux</tertiary>
1307 <para>You can run the Staff Client on a Linux system by using the
1308 <application>XULrunner</application> application (installed automatically and by default
1309 with <application>Firefox</application> <literal>Version 3.0</literal> and later on
1310 <systemitem class="osname">Ubuntu</systemitem> and
1311 <systemitem class="osname">Debian</systemitem> distributions).</para>
1312 <para>For example, if the source files for the Evergreen installation are in the directory
1313 <filename class="directory">/home/opensrf/Evergreen-ILS-1.6.1.2/</filename> you can start the
1314 Staff Client as shown in the following example:</para>
1317 # as the opensrf user:
1318 cd /home/opensrf/Evergreen-ILS-1.6.1.2/Open-ILS/xul/staff_client/build
1319 xulrunner application.ini
1322 <section xml:id="staffclientinstallation-workstationnames">
1323 <title>Assigning Workstation Names</title>
1325 <primary>staff client</primary>
1326 <secondary>assigning workstation names</secondary>
1328 <para>The Staff Client must be assigned to a library and given a unique name before it
1329 will connect fully to the Evergreen server. The only restriction is that the workstation's
1330 name must be unique within the assigned library. Make sure to select a workstation name
1331 that you will remember later, one that reflects the role, purpose, and/or location of a
1332 particular computer. These names will come up later in statistical reporting, and can also
1333 be handy when troubleshooting.</para>
1336 <phrase>Example of unconfigured Staff Client</phrase>
1339 <imagedata fileref="../media/staffclientinstallation-staffclient-workstationnames-1.png" format="PNG" scalefit="1" width="60%"/>
1342 <para>In order to assign a workstation a name, a user with appropriate
1343 permissions must login to the Staff Client. In PINES, the local system
1344 administrator (OPSM) has the ability to assign workstation names in their
1345 library system. Library managers (LIBM's) have the ability within their
1346 branch. To assign a workstation a name, login to the system. You will be
1347 prompted to assign the workstation a library and a name:</para>
1350 <phrase>Example of configured Staff Client</phrase>
1353 <imagedata fileref="../media/staffclientinstallation-staffclient-workstationnames-2.png" format="PNG" scalefit="1" width="60%"/>
1356 <para>Select the library this workstation physically operates in from the drop
1357 down menu. In this example, we have selected "MGRL-MA". Type in a friendly name
1358 for the workstation. In this example, we are installing the Staff Client on the
1359 director's personal system, and have named it as such. Then click
1360 <guibutton>'Register'</guibutton>.</para>
1361 <para>Once you have registered your workstation
1362 with the server, your screen will look like this:</para>
1365 <phrase>Example of registered Staff Client</phrase>
1368 <imagedata fileref="../media/staffclientinstallation-staffclient-workstationnames-3.png" format="PNG" scalefit="1" width="60%"/>
1371 <para>You are now ready to log into the Staff Client for the first time. Type in
1372 your password again, and click <guibutton>'Login'</guibutton>.</para>
1374 <section xml:id="staffclientinstallation-proxy">
1375 <title>Running the Staff Client Over An <systemitem class="protocal">SSH</systemitem> Tunnel</title>
1377 <primary>staff client</primary>
1378 <secondary>running through an SSH tunnel</secondary>
1380 <para>You can configure the Staff Client to communicate with the Evergreen server over
1381 an <systemitem class="protocal">SSH</systemitem> tunnel using a SOCKS 5 proxy
1382 server. There are several reasons for sending network traffic for the Staff Client
1383 through an <systemitem class="protocal">SSH</systemitem> proxy:</para>
1386 <para>Firewalls may prevent you from reaching the Evergreen
1387 server. This may happen when you are connecting the Staff
1388 Client to a test server that should not be available
1389 generally, or it may be the result of network design
1390 priorities other than ease of use.</para>
1393 <para>You may wish to improve security in situations where
1394 Staff Client traffic may be susceptible to network
1395 eavesdropping. This is especially true when staff machines
1396 connect via wireless links to the network.</para>
1400 <title>Setting Up an <systemitem class="protocal">SSH</systemitem> Tunnel</title>
1401 <para>You will need a server that allows you to log in via
1402 <systemitem class="protocal">SSH</systemitem> and has network access to the
1403 Evergreen server you want to reach. You will use your username and password
1404 for that <systemitem class="protocal">SSH</systemitem> server to set up a
1406 <para>For <systemitem class="osname">Windows</systemitem> users, one good
1407 solution is the open-source utility
1408 <ulink url="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</ulink>,
1409 a free <systemitem class="protocal">telnet/SSH</systemitem> client.
1410 Following are instructions for setting up an <application>SSH</application>
1411 session using the <application>PuTTY</application> utility:</para>
1414 <phrase>Setting up an <systemitem class="protocal">SSH</systemitem>
1415 tunnel in <application>PuTTY</application></phrase>
1418 <imagedata fileref="../media/staffclientinstallation-proxy-putty-1.png" format="PNG" scalefit="1" width="60%"/>
1423 <para>Using the menu on the left, find the section:</para>
1426 <guimenu>Connection</guimenu>
1427 <guimenuitem>SSH</guimenuitem>
1428 <guimenuitem>Tunnels</guimenuitem>
1433 <para>In the section on the right labeled <literal>"Source
1434 port"</literal>, enter <literal>9999</literal>.</para>
1437 <para>Set the checkbox <literal>"Dynamic"</literal>. Do not
1438 enter anything in the <literal>"Destination"</literal> text
1442 <para>Click <guibutton>'Add'</guibutton> and notice that
1443 <literal>"D9999"</literal> now appears in the section
1444 labeled <literal>"Forwarded ports"</literal>.</para>
1447 <para>Use the menu on the left, find the
1448 <literal>"Session"</literal> section, then enter the host name
1449 of the <systemitem class="protocal">SSH</systemitem>
1453 <para>A pop-up window will open to allow you to enter your
1454 username and password. Once you are logged in, the tunnel is
1458 <para>See <ulink url="http://inside.mines.edu/~gmurray/HowTo/sshNotes.html">How to set up
1459 <systemitem class="protocal">SSH</systemitem> (for the beginner)</ulink> for information on
1460 setting up <systemitem class="protocal">SSH</systemitem> for other client operating
1464 <title>Configuring the Staff Client to Use the <systemitem class="protocal">SSH</systemitem> Tunnel</title>
1465 <para>In order to tell the Staff Client that all traffic should be sent
1466 through the <systemitem class="protocal">SSH</systemitem> tunnel just configured,
1467 you must find edit the file <filename>all.js</filename>, usually located at
1468 <filename>C:\Program Files\Evergreen Staff Client\greprefs\all.js</filename>
1469 on a <systemitem class="osname">Windows</systemitem> system.
1470 Search this file for the word <literal>socks</literal> to find the appropriate
1471 section for the following changes.</para>
1474 <phrase>The SOCKS section of "all.js" before changes</phrase>
1477 <imagedata fileref="../media/staffclientinstallation-proxy-socks-1.png" format="PNG" scalefit="1" width="70%"/>
1480 <para>Make the following changes:</para>
1483 <para>Change the value of <literal>network.proxy.socks</literal>
1484 from <literal>""</literal> to <literal>localhost</literal>.</para>
1487 <para>Change the value of <literal>network.proxy.socks_port</literal>
1488 from <literal>0</literal> to <literal>9999</literal>.</para>
1493 <phrase>The SOCKS section of "all.js" after changes</phrase>
1496 <imagedata fileref="../media/staffclientinstallation-proxy-socks-2.png" format="PNG" scalefit="1" width="70%"/>
1499 <para>If everything is working correctly, you should now be able to run
1500 the Staff Client and all its data will be sent encrypted through the
1501 <systemitem class="protocal">SSH</systemitem> tunnel you have just configured.</para>
1505 <title>Navigating a Tabbed Interface</title>
1506 <para>Like many popular current web browsers and other applications, the Staff Client
1507 uses a "tabbed" interface. Tabs allow you to have several pages open at the same time
1508 in a single window. This is easier to manage on your computer screen than multiple
1509 windows, since you can easily switch between tabs in the same window.</para>
1512 <phrase>Tabs in the Staff Client window</phrase>
1515 <imagedata fileref="../media/staffclientinstallation-tabbed-1.png" format="PNG" scalefit="1" width="70%"/>
1518 <para>The "tabs" appear below the menu bar in the Staff Client with a descriptive
1519 title. Simply select a tab to bring it to the front and view the page displayed in the
1520 tab. You can use tabs to have access to multiple things all at the same time: patron
1521 records and searches, bibliographic records and searches, circulation or cataloging
1522 interfaces - anything at all in the Staff Client.</para>
1524 <listitem>Create a new tab by pressing
1525 <keycombo><keycap>Ctrl</keycap><keycap>T</keycap></keycombo>
1526 on the keyboard or selecting:
1527 <menuchoice><guimenu>File</guimenu><guimenuitem>New Tab</guimenuitem></menuchoice>
1528 from the menu.</listitem>
1529 <listitem>Close a tab by pressing
1530 <keycombo><keycap>Ctrl</keycap><keycap>W</keycap></keycombo> on the keyboard or selecting
1531 <menuchoice><guimenu>File</guimenu><guimenuitem>Close Tab</guimenuitem></menuchoice>
1532 from the menu.</listitem>
1533 <listitem>Switch tabs by pressing
1534 <keycombo><keycap>Ctrl</keycap><keycap>Tab</keycap></keycombo>
1535 on the keyboard or selecting the tab in the tab bar.</listitem>