More admin clean up...
[working/Evergreen.git] / 1.6 / admin / sip.xml
index 7e8d44d..1fde5ab 100644 (file)
                <simplesect xml:id="Gettingthecode">\r
                            <title>Getting the code</title>\r
                                <para>Current <systemitem class="protocol">SIP</systemitem> code lives at github:</para>\r
-                               <screen>cd /opt</screen>\r
-                               <screen>git clone git://github.com/atz/SIPServer.git SIPServer</screen>\r
+                               <screen><userinput>cd /opt</userinput></screen>\r
+                               <screen><userinput>git clone git://github.com/atz/SIPServer.git SIPServer</userinput></screen>\r
                                <para>Or use the old style:</para>\r
-                               <screen>$ cd /opt</screen>\r
-                               <screen>$ sudo cvs -d:pserver:anonymous@openncip.cvs.sourceforge.net:/cvsroot/openncip login</screen>\r
-                               <screen># when prompted for the CVS password, just hit Enter (sudo password may be req'd)</screen>\r
-                               <screen>$ sudo cvs -z3 -d:pserver:anonymous@openncip.cvs.sourceforge.net:/cvsroot/openncip co -P SIPServer</screen>\r
+                               <screen><userinput>$ cd /opt</userinput></screen>\r
+                               <screen><userinput>$ sudo cvs -d:pserver:anonymous@openncip.cvs.sourceforge.net:/cvsroot/openncip login</userinput></screen>\r
+                               <para>When prompted for the CVS password, just hit Enter (sudo password may be req'd)</para>\r
+                               <screen><userinput>$ sudo cvs -z3 -d:pserver:anonymous@openncip.cvs.sourceforge.net:/cvsroot/openncip co -P SIPServer</userinput></screen>\r
                                                         \r
                </simplesect>\r
                <simplesect xml:id="Configuring_Server">\r
                        <title>Configuring the Server</title>\r
                        <procedure>\r
                        <step>\r
-                               <para>Type the following commands from the command prompt:</para>\r
-                               <screen>$ sudo su opensrf</screen>\r
-                               <screen>$ cd /openils/conf</screen>\r
-                               <screen>$ cp oils_sip.xml.example oils_sip.xml</screen>\r
+                               <para>Type the following commands from the command prompt:</para><indexterm><primary>configuration files</primary><secondary>oils_sip.xml</secondary></indexterm>\r
+                               <screen><userinput>$ sudo su opensrf</userinput></screen>\r
+                               <screen><userinput>$ cd /openils/conf</userinput></screen>\r
+                               <screen><userinput>$ cp oils_sip.xml.example oils_sip.xml</userinput></screen>\r
                        </step>\r
                        <step>\r
-                               <para>Edit <filename>oils_sip.xml</filename><indexterm><primary>configuration files</primary><primary>oils_sip.xml</primary></indexterm>. \r
+                               <para>Edit <filename>oils_sip.xml</filename><indexterm><primary>configuration files</primary><secondary>oils_sip.xml</secondary></indexterm>. \r
                                Change the commented out &lt;server-params&gt; section to this:</para>\r
-                               <screen>&lt;server-params</screen>\r
-                               <screen>min_servers='1'</screen>\r
-                               <screen>min_spare_servers='0'</screen>\r
-                               <screen>max_servers='25'</screen>\r
-                               <screen>/&gt;</screen>\r
+<programlisting>\r
+&lt;server-params\r
+min_servers='1'\r
+min_spare_servers='0'\r
+max_servers='25'\r
+/&gt;\r
+</programlisting>\r
                        </step>\r
                        <step>\r
                                <para> max_servers will directly correspond to the number of allowed <systemitem class="protocol">SIP</systemitem> clients. Set the number accordingly, but \r
                                bear in mind that too many connections can \r
-                               exhaust memory. On a 4G RAM/4 CPU server (that is also running evergreen), I would recommend not exceeding 100 \r
-                               <systemitem class="protocol">SIP</systemitem> client connections, \r
-                               give or take.</para>                            \r
+                               exhaust memory. On a 4G RAM/4 CPU server (that is also running evergreen), it is not recommended to exceed 100 \r
+                               <systemitem class="protocol">SIP</systemitem> client connections.</para>                                \r
                        </step>\r
                        </procedure>             \r
                </simplesect>\r
                        <title>Adding <systemitem class="protocol">SIP</systemitem> Users</title>\r
                        <procedure>\r
                                <step>\r
-                                       <para>Type the following commands from the command prompt:</para>\r
-                                       <screen>$ sudo su opensrf</screen>\r
-                                       <screen>$ cd /openils/conf</screen>\r
-                                       <screen>$ cp oils_sip.xml.example oils_sip.xml</screen>\r
+                                       <para>Type the following commands from the command prompt:</para><indexterm><primary>configuration files</primary><secondary>oils_sip.xml</secondary></indexterm>\r
+                                       <screen><userinput>$ sudo su opensrf</userinput></screen>\r
+                                       <screen><userinput>$ cd /openils/conf</userinput></screen>\r
+                                       <screen><userinput>$ cp oils_sip.xml.example oils_sip.xml</userinput></screen>\r
                                </step>\r
                                <step>\r
-                                       <para> in the &lt;accounts&gt; section, add <systemitem class="protocol">SIP</systemitem> client login information. Make sure that all &lt;logins&gt; use the \r
-                                       same institution attribute, and make \r
-                                       sure the institution is listed in &lt;institutions&gt;. All attributes in the &lt;login&gt; section will be used by the <systemitem class="protocol">SIP</systemitem> client.</para>\r
+                                       <para> in the &lt;accounts&gt; section, add <systemitem class="protocol">SIP</systemitem> client login information. Make sure that all \r
+                                       <varname>&lt;logins&gt;</varname> use the same institution attribute, and make \r
+                                       sure the institution is listed in <varname>&lt;institutions&gt;</varname>. All attributes in the <varname>&lt;login&gt;</varname> section will be \r
+                                       used by the <systemitem class="protocol">SIP</systemitem> client.</para>\r
                                \r
                                </step>\r
                                <step>\r
-                                       <para> In Evergreen, create a new profile group called <systemitem class="protocol">SIP</systemitem>. This group should be a sub-group of Users \r
-                                       (not Staff or Patrons). \r
-                                       Set Editing Permission as <emphasis>group_application.user.sip_client</emphasis> and give the group the following permissions:</para>\r
+                                       <para> In Evergreen, create a new profile group called <systemitem class="groupname">SIP</systemitem>. \r
+                                       This group should be a sub-group of <systemitem class="groupname">Users</systemitem> \r
+                                       (not <systemitem class="groupname">Staff</systemitem> or <systemitem class="groupname">Patrons</systemitem>). \r
+                                       Set Editing Permission as <emphasis role="bold">group_application.user.sip_client</emphasis> and give the group the following permissions:</para>\r
                                        <literallayout>\r
                                        COPY_CHECKIN\r
                                        COPY_CHECKOUT\r
                                        VIEW_USER_TRANSACTIONS\r
                                        </literallayout>\r
                                        <para>OR use SQL like:</para>\r
-                                       <screen>INSERT INTO permission.grp_tree (id,name,parent,description,application_perm)</screen> \r
-                                       <screen>VALUES (8, 'SIP', 1, 'SIP2 Client Systems', 'group_application.user.sip_client');</screen>\r
-                                       <screen></screen>\r
-                                       <screen>INSERT INTO permission.grp_perm_map (grp,perm,depth) </screen>\r
-                                       <screen>VALUES (8,15,0),(8,16,0),(8,17,0),(8,31,0),(8,32,0),(8,48,0),(8,54,0),(8,75,0),(8,82,0);</screen>\r
+<screen>\r
+<userinput>\r
+INSERT INTO permission.grp_tree (id,name,parent,description,application_perm)\r
+VALUES (8, 'SIP', 1, 'SIP2 Client Systems', 'group_application.user.sip_client');\r
+\r
+INSERT INTO permission.grp_perm_map (grp,perm,depth) \r
+VALUES (8,15,0),(8,16,0),(8,17,0),(8,31,0),(8,32,0),(8,48,0),(8,54,0),(8,75,0),(8,82,0);\r
+</userinput>\r
+</screen>\r
                                        \r
                                        <para>Verify:</para>\r
-                                       <screen>SELECT *</screen>\r
-                                       <screen>FROM permission.grp_perm_map JOIN permission.perm_list ON</screen> \r
-                                       <screen>permission.grp_perm_map.perm=permission.perm_list.id</screen> \r
-                                       <screen>WHERE grp=8;</screen>\r
+<screen>\r
+<userinput>\r
+SELECT *\r
+FROM permission.grp_perm_map JOIN permission.perm_list ON\r
+permission.grp_perm_map.perm=permission.perm_list.id\r
+WHERE grp=8;\r
+</userinput>\r
+</screen>\r
                                        \r
-                                       <para>Keep in mind that the id (8) may not necessarily be available on your system.</para>                              \r
+                                       <para>Keep in mind that the id <emphasis role="bold">(8)</emphasis> may not necessarily be available on your system.</para>                             \r
                                </step>\r
                                <step>\r
-                                       <para>For each account created in the &lt;login&gt; section of oils_sip.xml, create a user (via the staff client user editor) that has the same username \r
-                                       and password and put that user into the <systemitem class="protocol">SIP</systemitem> group.</para>\r
-                                       <note><para>The expiration date will affect the <systemitem class="protocol">SIP</systemitem> users' connection, you might want to make a note of \r
-                                       this somewhere. </para></note>  \r
+                                       <para>For each account created in the &lt;login&gt; section of <filename>oils_sip.xml</filename>, create a user (via the staff client user editor) \r
+                                       that has the same username \r
+                                       and password and put that user into the <systemitem class="groupname">SIP</systemitem> group.</para>\r
+                                       <note><para>The expiration date will affect the <systemitem class="groupname">SIP</systemitem> users' connection so you might want to make a note of \r
+                                       this somewhere.</para></note>   \r
                                </step>\r
                        </procedure>             \r
                </simplesect>\r
                <simplesect xml:id="Running_SIP_server">\r
                        <title>Running the server</title>\r
                                <para>To start the <systemitem class="protocol">SIP</systemitem> server type the following commands from the command prompt:</para>\r
-                               <screen>$ sudo su opensrf</screen>\r
-                               <screen>$ oils_ctl.sh -d /openils/var/run -s /openils/conf/oils_sip.xml -a [start|stop|restart]_sip</screen>    \r
+                               <screen><userinput>$ sudo su opensrf</userinput></screen>\r
+                               <screen><userinput>$ oils_ctl.sh -d /openils/var/run -s /openils/conf/oils_sip.xml -a [start|stop|restart]_sip</userinput></screen>     \r
                </simplesect>\r
                <simplesect xml:id="Logging-SIP">\r
-                       <title>Logging-SIP</title>\r
+                       <title>Logging-SIP</title><indexterm><primary>SIP</primary></indexterm>\r
                        <simplesect>\r
-                               <title>Syslog</title>\r
-                               <para>It is useful to log <systemitem class="protocol">SIP</systemitem> requests to a separate file especially during initial setup by modifying your syslog config file.</para>\r
+                               <title><systemitem class="service">Syslog</systemitem></title>\r
+                               <para>It is useful to log <systemitem class="protocol">SIP</systemitem> requests to a separate file especially during initial setup by modifying your \r
+                               syslog config file.</para><indexterm><primary>syslog</primary></indexterm>\r
                                <procedure>\r
                                        <step>\r
                                                <para>Edit syslog.conf.</para>\r
-                                               <screen>$ sudo vi /etc/syslog.conf  # maybe /etc/rsyslog.conf</screen>  \r
+                                               <screen><userinput>$ sudo vi /etc/syslog.conf  # maybe /etc/rsyslog.conf</userinput></screen>   \r
                                        </step>\r
                                        <step>\r
                                                <para>Add this:</para>\r
-                                               <screen>local6.*                -/var/log/SIP_evergreen.log</screen>    \r
+                                               <programlisting>local6.*                -/var/log/SIP_evergreen.log</programlisting>    \r
                                        </step>\r
                                        <step>\r
-                                               <para>Syslog expects the logfile to exist so create the file.</para>\r
-                                               <screen>$ sudo touch /var/log/SIP_evergreen.log</screen>        \r
+                                               <para><systemitem class="service">Syslog</systemitem> expects the logfile to exist so create the file.</para>\r
+                                               <screen><userinput>$ sudo touch /var/log/SIP_evergreen.log</userinput></screen> \r
                                        </step>\r
                                        <step>\r
-                                               <para>Restart sysklogd.</para>\r
-                                               <screen>$ sudo /etc/init.d/sysklogd restart</screen>    \r
+                                               <para>Restart <systemitem class="service">sysklogd</systemitem>.</para>\r
+                                               <screen><userinput>$ sudo /etc/init.d/sysklogd restart</userinput></screen>     \r
                                        </step>\r
                                </procedure>            \r
                        </simplesect>\r
                        <simplesect>\r
-                               <title>Syslog-NG</title>\r
+                               <title><systemitem class="service">Syslog-NG</systemitem></title>\r
                                \r
                                <procedure>\r
                                        <step>\r
-                                               <para>Edit logging config.</para>\r
-                                               <screen>sudo vi /etc/syslog-ng/syslog-ng.conf</screen>  \r
+                                               <para>Edit logging config.</para><indexterm><primary>syslog-NG</primary></indexterm>\r
+                                               <screen><userinput>sudo vi /etc/syslog-ng/syslog-ng.conf</userinput></screen>   \r
                                        </step>\r
                                        <step>\r
                                                <para>Add:</para>\r
-                                               <screen># SIP2 for Evergreen</screen>   \r
-                                               <screen>filter    f_eg_sip { level(warn, err, crit) and facility(local6); };</screen>   \r
-                                               <screen>destination eg_sip { file("/var/log/SIP_evergreen.log"); };</screen>    \r
-                                               <screen>log { source(s_all); filter(f_eg_sip); destination(eg_sip); };</screen> \r
+<programlisting>\r
+# SIP2 for Evergreen\r
+filter    f_eg_sip { level(warn, err, crit) and facility(local6); };\r
+destination eg_sip { file("/var/log/SIP_evergreen.log"); };\r
+log { source(s_all); filter(f_eg_sip); destination(eg_sip); };\r
+</programlisting>      \r
                                        </step>\r
                                        <step>\r
-                                               <para>Syslog-ng expects the logfile to exist so create the file.</para>\r
-                                               <screen>$ sudo touch /var/log/SIP_evergreen.log</screen>        \r
+                                               <para><systemitem class="service">Syslog-ng</systemitem> expects the logfile to exist so create the file.</para>\r
+                                               <screen><userinput>$ sudo touch /var/log/SIP_evergreen.log</userinput></screen> \r
                                        </step>\r
                                        <step>\r
-                                               <para>Restart syslog-ng</para>\r
-                                               <screen>$ sudo /etc/init.d/syslog-ng restart\r
-                                               </screen>       \r
+                                               <para>Restart <systemitem class="service">syslog-ng</systemitem></para>\r
+                                               <screen><userinput>$ sudo /etc/init.d/syslog-ng restart</userinput></screen>    \r
                                        </step>\r
                                </procedure>            \r
                        </simplesect>\r
                </simplesect>   \r
                <simplesect xml:id="Testing_SIP_Connection">\r
-                       <title>Testing Your <systemitem class="protocol">SIP</systemitem> Connection</title>\r
+                       <title>Testing Your <systemitem class="protocol">SIP</systemitem> Connection</title><indexterm><primary>SIP</primary></indexterm>\r
                        <itemizedlist>\r
                                <listitem>\r
                                        <para>In the top level CVS checkout of the SIPServer code.</para>\r
-                                       <screen>$ cd SIPServer/t</screen>\r
+                                       <screen><userinput>$ cd SIPServer/t</userinput></screen>\r
                                </listitem>\r
                                <listitem>\r
-                                       <para> Edit SIPtest.pm, change the $instid, $server, $username, and $password variables. This will be enough to test connectivity. \r
+                                       <para> Edit <filename>SIPtest.pm</filename>, change the <varname>$instid</varname>, <varname>$server</varname>, <varname>$username</varname>, and \r
+                                       <varname>$password</varname> variables. This will be enough to test connectivity. \r
                                        To run all tests, you'll need to change all the variables in the Configuration section.</para>\r
-                                       <screen>$ PERL5LIB=../ perl 00sc_status.t</screen>\r
+                                       <screen><userinput>$ PERL5LIB=../ perl 00sc_status.t</userinput></screen>\r
                                        <para>This should produce something like:</para>\r
-                                       <screen>1..4</screen>\r
-                                       <screen>ok 1 - Invalid username</screen>\r
-                                       <screen>ok 2 - Invalid username</screen>\r
-                                       <screen>ok 3 - login</screen>\r
-                                       <screen>ok 4 - SC status</screen>\r
+<screen>\r
+1..4\r
+ok 1 - Invalid username\r
+ok 2 - Invalid username\r
+ok 3 - login\r
+ok 4 - SC status\r
+</screen>\r
                                </listitem>     \r
                                <listitem>\r
-                                       <para> Don't be dismayed at “Invalid Username”. That's just one of the many tests that are run.</para>\r
+                                       <para> Don't be dismayed at <emphasis role="bold">Invalid Username</emphasis>. That's just one of the many tests that are run.</para>\r
                                </listitem>                                             \r
                        </itemizedlist>\r
                </simplesect>\r
                        <title>More Testing</title>\r
                        <procedure>\r
                                <step>\r
-                                       <para>Once you have opened up either the <systemitem class="protocol">SIP</systemitem> OR <systemitem class="protocol">SIP2</systemitem> ports to be accessible from outside you can do some testing via telnet. You can try this with localhost \r
-                                       if you so wish, but we want to prove that <systemitem class="protocol">SIP2</systemitem> works from non-localhost. Replace $instid, $server, $barcode, $username, and $password variables below as \r
-                                       necessary.</para>\r
-                                       <note><para>We are using 6001 here which is associated with <systemitem class="protocol">SIP2</systemitem> as per our configuration.</para></note>\r
-                                       <screen>$ telnet $server 6001</screen>\r
-                                       <screen>Connected to $server.</screen>\r
-                                       <screen>Escape character is '^]'.</screen>\r
-                                       <screen>9300CN**$username**|CO**$password**|CP**$instid**</screen>                                      \r
+                                       <para>Once you have opened up either the <systemitem class="protocol">SIP</systemitem> OR <systemitem class="protocol">SIP2</systemitem> ports to be \r
+                                       accessible from outside you can do some testing via <systemitem class="protocol">telnet</systemitem>. You can try this with localhost \r
+                                       if you so wish, but we want to prove that <systemitem class="protocol">SIP2</systemitem> works from non-localhost. \r
+                                       Replace <varname>$instid</varname>, <varname>$server</varname>, <varname>$barcode</varname>, <varname>$username</varname>, \r
+                                       and <varname>$password</varname> variables below as necessary.</para>\r
+                                       <note><para>We are using <systemitem>6001</systemitem> here which is associated with <systemitem class="protocol">SIP2</systemitem> as per our configuration.</para></note><indexterm><primary>telnet</primary></indexterm>\r
+<screen>\r
+<userinput>$ telnet $server 6001</userinput>\r
+Connected to $server.\r
+Escape character is '^]'.\r
+<userinput>9300CN**$username**|CO**$password**|CP**$instid**</userinput>\r
+</screen>                                      \r
                                        <para>You should get back.</para>\r
                                        <screen>941</screen>\r
                                </step>\r
                                        <screen>2300120080623    172148AO**$instid**|AA**$barcode**|AC$password|AD**$password**</screen>\r
                                        <para>You will get back the patron information for $barcode (something similar to the what's below).</para>\r
                                        <screen>24  Y           00120100113    170738AEFirstName MiddleName LastName|AA**$barcode**|BLY|CQY|BHUSD|BV0.00|AFOK|AO**$instid**|</screen>\r
-                                       <para>The response declares it is a valid patron <emphasis>(BLY)</emphasis> with a valid password <emphasis>(CQY)</emphasis> and shows the user's <emphasis>$name</emphasis>.</para>\r
+                                       <para>The response declares it is a valid patron <varname>BLY</varname> with a valid password <varname>CQY</varname> and shows the user's \r
+                                       <varname>$name</varname>.</para>\r
                                </step>\r
                        </procedure>\r
                </simplesect>\r
        </section>\r
        <section xml:id="SIP_Communication">\r
                <info>\r
-                       <title><systemitem class="protocol">SIP</systemitem> Communication</title>\r
+                       <title><systemitem class="protocol">SIP</systemitem> Communication</title><indexterm><primary>SIP</primary></indexterm>\r
                </info>\r
-               <para><systemitem class="protocol">SIP</systemitem> generally communicates over a TCP connection (either raw sockets or over telnet), but can also communicate via serial connections and other methods. In Evergreen, \r
-               the most common deployment is a RAW socket connection on port 6001.</para>\r
-               <para>SIP communication consists of strings of messages, each message request and response begin with a 2-digit <quote>command</quote> - Requests usually being an odd \r
+               <para><systemitem class="protocol">SIP</systemitem> generally communicates over a <systemitem class="protocol">TCP</systemitem> connection (either raw sockets or over \r
+               <systemitem class="protocol">telnet</systemitem>), but can also communicate via serial connections and other methods. In Evergreen, \r
+               the most common deployment is a <systemitem class="protocol">RAW</systemitem> socket connection on port <systemitem>6001</systemitem>.</para>\r
+               <para><systemitem class="protocol">SIP</systemitem> communication consists of strings of messages, each message request and response begin with a 2-digit \r
+               <quote>command</quote> - Requests usually being an odd \r
                number and responses usually increased by 1 to be an even number. The combination numbers for the request command and response is often referred to as a \r
                <emphasis>Message Pair</emphasis> (for example, a 23 command is a request for patron status, a 24 response is a patron status, and the message pair 23/24 is \r
                patron status message pair). The table in the next section shows the message pairs and a description of them.</para>\r
                <para>For clarification, the <quote>Request</quote> is from the device (selfcheck or otherwise) to the ILS/ACS. The response is… the response \r
                to the request ;).</para>\r
-               <para>Within each request and response, a number of fields (either a fixed width or separated with a '|' [pipe symbol] and preceeded with a 2-character field identifier) \r
+               <para>Within each request and response, a number of fields (either a fixed width or separated with a <emphasis role="bold">|</emphasis> [pipe symbol] and preceeded with a \r
+               2-character field identifier) \r
                are used. The fields vary between message pairs.</para>\r
                <informaltable>\r
                        <tgroup cols="4">\r
                </informaltable>\r
                <simplesect xml:id="SIP_block_patron">\r
                        <title>01 Block Patron</title>\r
-                       <para>A selfcheck will issue a Block Patron command if a patron leaves their card in a selfcheck machine or if the selfcheck detects tampering (such as attempts \r
-                       to disable multiple items during a single item checkout, multiple failed pin entries, etc).</para>\r
+                       <para>A selfcheck will issue a <command>Block Patron</command> command if a patron leaves their card in a selfcheck machine or if the selfcheck detects tampering (such as attempts \r
+                       to disable multiple items during a single item checkout, multiple failed pin entries, etc).</para><indexterm><primary>SelfCheck</primary></indexterm>\r
                        <para>In Evergreen, this command does the following:</para>\r
                                <itemizedlist>\r
-                                       <listitem>User alert message: 'CARD BLOCKED BY SELF-CHECK MACHINE' (this is independent of the AL 'Blocked Card Message' field).</listitem>\r
+                                       <listitem>User alert message: <emphasis>CARD BLOCKED BY SELF-CHECK MACHINE</emphasis> (this is independent of the AL \r
+                                       <emphasis>Blocked Card Message</emphasis> field).</listitem>\r
                                        <listitem>Card is marked inactive.</listitem>\r
                                </itemizedlist>\r
                        <para>The request looks like:</para>\r
                        <screen>01&lt;card retained&gt;&lt;date&gt;[fields AO, AL, AA, AC]</screen>\r
-                       <para><emphasis>Card Retained</emphasis>: A single character field of 'Y' or 'N' - tells the ACS whether the SC has retained the card (ex: left in the machine) or not.</para> \r
+                       <para><emphasis>Card Retained</emphasis>: A single character field of <emphasis>Y</emphasis> or <emphasis>N</emphasis> - tells the ACS whether the SC has \r
+                       retained the card (ex: left in the machine) or not.</para> \r
                        <para><emphasis>Date</emphasis>: An 18 character field for the date/time when the block occurred.</para> \r
-                       <para><emphasis>Format</emphasis>: YYYYMMDDZZZZHHMMSS (ZZZZ being zone - 4 blanks when 'local time', ' Z' (3 blanks and a Z) represents UTC(GMT/Zulu)</para>\r
+                       <para><emphasis>Format</emphasis>: YYYYMMDDZZZZHHMMSS (ZZZZ being zone - 4 blanks when local time, <quote> Z</quote> (3 blanks and a Z) represents UTC(GMT/Zulu)</para>\r
                        <para><emphasis>Fields</emphasis>: See <link linkend='SIP_Fields'>Fields</link> for more details.</para>\r
-                       <para>The response is a 24 “Patron Status Response” with the following:</para>\r
+                       <para>The response is a 24 <quote>Patron Status Response</quote> with the following:</para>\r
                        <itemizedlist>\r
                                        <listitem>Charge privileges denied</listitem>\r
                                        <listitem>Renewal privileges denied</listitem>\r
                                        <listitem>Recall privileges denied (hard-coded in every 24 or 64 response)</listitem>\r
                                        <listitem>hold privileges denied</listitem>\r
-                                       <listitem>Screen Message 1 (AF): 'blocked'</listitem>\r
+                                       <listitem>Screen Message 1 (AF): <emphasis>blocked</emphasis></listitem>\r
                                        <listitem>Patron</listitem>\r
 \r
                        </itemizedlist>\r
                        <title>09/10 Checkin</title>\r
                        <para>The request looks like:</para>\r
                        <screen>09&lt;No block (Offline)&gt;&lt;xact date&gt;&lt;return date&gt;[Fields AP,AO,AB,AC,CH,BI]</screen>\r
-                       <para><emphasis>No Block (Offline)</emphasis>: A single character field of 'Y' or 'N' - Offline transactions are not currently supported so send 'N'.</para> \r
+                       <para><emphasis>No Block (Offline)</emphasis>: A single character field of <emphasis>Y</emphasis> or <emphasis>N</emphasis> - Offline transactions are not currently \r
+                       supported so send <emphasis>N</emphasis>.</para> \r
                        <para><emphasis>xact date</emphasis>: an 18 character field for the date/time when the checkin occurred. Format: YYYYMMDDZZZZHHMMSS (ZZZZ being zone - \r
-                       4 blanks when 'local time', ' Z' (3 blanks and a Z) represents UTC(GMT/Zulu)</para> \r
+                       4 blanks when local time, <quote> Z</quote> (3 blanks and a Z) represents UTC(GMT/Zulu)</para> \r
                        <para><emphasis>Fields</emphasis>: See <link linkend='SIP_Fields'>Fields</link> for more details.</para>\r
                        <para>The response is a 10 <quote>Checkin Response</quote> with the following:</para>\r
                        <screen>10&lt;resensitize>&lt;magnetic media&gt;&lt;alert&gt;&lt;xact date&gt;[Fields AO,AB,AQ,AJ,CL,AA,CK,CH,CR,CS,CT,CV,CY,DA,AF,AG]</screen>\r
                        <para>Example (with a remote hold):</para>\r
                        <screen>09N20100507    16593720100507    165937APCheckin Bin 5|AOBR1|AB1565921879|ACsip_01|</screen>\r
                        <screen>101YNY20100623    165731AOBR1|AB1565921879|AQBR1|AJPerl 5 desktop reference|CK001|CSQA76.73.P33V76 1996|CTBR3|CY373827|DANicholas Richard Woodard|CV02|</screen>\r
-                       <para>Here you can see a hold alert for patron (CY) 373827, named (DA) Nicholas Richard Woodard, to be picked up at (CT) BR3. Since the transaction is happening \r
-                       at (AO) BR1, the alert type (CV) is 02 for “hold at remote library”. The possible values for CV are:</para>\r
+                       <para>Here you can see a hold alert for patron <varname>CY</varname> <emphasis>373827</emphasis>, named <varname>DA</varname> <emphasis>Nicholas Richard Woodard</emphasis>, \r
+                       to be picked up at <varname>CT</varname> <quote>BR3</quote>. Since the transaction is happening \r
+                       at <varname>AO</varname> <quote>BR1</quote>, the alert type <varname>CV</varname> is 02 for <emphasis>hold at remote library</emphasis>. \r
+                       The possible values for <varname>CV</varname> are:</para>\r
                        <itemizedlist>\r
                                        <listitem>00: unknown</listitem>\r
                                        <listitem>01: local hold</listitem>\r
                                        <listitem>99: other</listitem>\r
                        </itemizedlist>\r
                        <note>\r
-                               <para>the logic for EG to determine the content is magnetic_media comes from either legacy circ scripts or search_config_circ_modifier. The default is non-magnetic. \r
-                               The same is true for media_type (default 001). EG does not populate the collection_code because it does not really have any, but it will provide the call_number where \r
-                               available.</para>\r
-                               <para>Unlike the item_id (barcode), the title_id is actually a title string, unless the configuration forces the return of the bib ID.</para>\r
+                               <para>the logic for Evergreen to determine the content is magnetic_media comes from either legacy circ scripts or search_config_circ_modifier. \r
+                               The default is non-magnetic.<indexterm><primary>magnetic media</primary></indexterm> \r
+                               The same is true for media_type (default 001). Evergreen does not populate the collection_code because it does not really have any, but it will provide the \r
+                               call_number where available.</para>\r
+                               <para>Unlike the <varname>item_id</varname> (barcode), the <varname>title_id</varname> is actually a title string, unless the configuration forces the return of \r
+                               the bib ID.</para>\r
                                <para>Don't be confused by the different branches that can show up in the same response line.</para>\r
                                <itemizedlist>\r
-                                       <listitem>AO is where the transaction took place,</listitem>\r
-                                       <listitem>AQ is the <quote>permanent location</quote>, and</listitem>\r
-                                       <listitem>CT is the <quote>destination location</quote> (i.e., pickup lib for a hold or target lib for a transfer).</listitem>\r
+                                       <listitem><varname>AO</varname> is where the transaction took place,</listitem>\r
+                                       <listitem><varname>AQ</varname> is the <quote>permanent location</quote>, and</listitem>\r
+                                       <listitem><varname>CT</varname> is the <emphasis>destination location</emphasis> (i.e., pickup lib for a hold or target lib for a transfer).</listitem>\r
                                </itemizedlist>\r
                        </note>\r
                </simplesect>\r
                        <title>17/18 Item Information</title>\r
                        <para>The request looks like:</para>\r
                        <screen>17&lt;xact_date&gt;[fields: AO,AB,AC]</screen>\r
-                       <para>The request is very terse. AC is optional.</para>\r
+                       <para>The request is very terse. <varname>AC</varname> is optional.</para>\r
                        <para>The following response structure is for <systemitem class="protocol">SIP2</systemitem>. (Version 1 of the protocol had only 6 total fields.)</para>\r
                        <screen>18&lt;circulation_status&gt;&lt;security_marker&gt;&lt;fee_type&gt;&lt;xact_date&gt;[fields: CF,AH,CJ,CM,AB,AJ,BG,BH,BV,CK,AQ,AP,CH,AF,AG,+CT,+CS]</screen>\r
                        <para>Example:</para>\r
                        <screen>1720060110    215612AOBR1|AB1565921879|</screen>\r
                        <screen>1810020120100623    171415AB1565921879|AJPerl 5 desktop reference|CK001|AQBR1|APBR1|BGBR1|CTBR3|CSQA76.73.P33V76 1996|</screen>\r
                        <para>The first case is with a bogus barcode. The latter shows an item with a circulation_status of <emphasis>10</emphasis> for <emphasis>in transit between libraries</emphasis>. \r
-                       The known values of circulation_status are enumerated in the spec.</para>\r
-                       <para>EXTENSIONS: The <emphasis>CT</emphasis> field for <emphasis>destination location</emphasis> and CS <emphasis>call number</emphasis> are used by Automated Material \r
-                       Handling systems.</para>\r
+                       The known values of <varname>circulation_status</varname> are enumerated in the spec.</para>\r
+                       <para>EXTENSIONS: The <varname>CT</varname> field for <emphasis>destination location</emphasis> and <varname>CS</varname> <emphasis>call number</emphasis> are used by \r
+                       Automated Material Handling systems.</para><indexterm><primary>Automated Material Handling (AMH)</primary></indexterm>\r
                </simplesect>\r
                <simplesect xml:id="SIP_Item_Status_Update">\r
                        <title>19/20 Item Status Update</title>\r
                        <screen>2300120060101    084235AOCONS|AA999999|ACsip_01|ADuserpassword|LY|CQN|BHUSD|BV0.00|AFOK|AOCONS|</screen>\r
                        <screen>24  Y           00120100507    022803AEDoug Fiander|AA999999|BLY|CQY|BHUSD|BV0.00|AFOK|AOCONS|</screen>\r
                        <orderedlist>\r
-                               <listitem>The <emphasis>BL</emphasis> field (<systemitem class="protocol">SIP2</systemitem>, optional) is <emphasis>valid patron</emphasis>, so the <emphasis>N</emphasis> value means \r
+                               <listitem>The <varname>BL</varname> field (<systemitem class="protocol">SIP2</systemitem>, optional) is <emphasis>valid patron</emphasis>, so the \r
+                               <emphasis>N</emphasis> value means \r
                                <emphasis>bad_barcode</emphasis> doesn't match a patron, the <emphasis>Y</emphasis> value means 999999 does.</listitem>\r
-                               <listitem>The <emphasis>CQ</emphasis> field (<systemitem class="protocol">SIP2</systemitem>, optional) is <emphasis>valid password</emphasis>, so the <emphasis>N</emphasis> \r
+                               <listitem>The <varname>CQ</varname> field (<systemitem class="protocol">SIP2</systemitem>, optional) is <emphasis>valid password</emphasis>, so the <emphasis>N</emphasis> \r
                                value means <emphasis>bad_password</emphasis> doesn't match 999999's password, the <emphasis>Y</emphasis> means <emphasis>userpassword</emphasis> \r
                                does.</listitem>\r
                        </orderedlist>\r
-                       <para>So if you were building the most basic <systemitem class="protocol">SIP2</systemitem> authentication client, you would check for <emphasis>|CQY|</emphasis> in the response to know the user's barcode and password \r
-                       are correct (<emphasis>|CQY|</emphasis> implies <emphasis>|BLY|</emphasis>, since you cannot check the password unless the barcode exists). However, in practice, \r
+                       <para>So if you were building the most basic <systemitem class="protocol">SIP2</systemitem> authentication client, you would check for \r
+                       <emphasis>|CQY|</emphasis> in the response to know the user's barcode and password \r
+                       are correct (<varname>|CQY|</varname> implies <varname>|BLY|</varname>, since you cannot check the password unless the barcode exists). However, in practice, \r
                        depending on the application, there are other factors to consider in authentication, like whether the user is blocked from checkout, owes excessive fines, reported their \r
                        card lost, etc. These limitations are reflected in the 14-character <emphasis>patron status</emphasis> string immediately following the <emphasis>24</emphasis> code. \r
                        See the field definitions in your copy of the spec.</para>\r
                </simplesect>\r
                <simplesect xml:id="sip_Renew">\r
                        <title>29/30 Renew</title>\r
-                       <para>EG ACS status message indicates Renew is supported.</para>\r
+                       <para>Evergreen ACS status message indicates <emphasis>renew</emphasis> is supported.</para>\r
                </simplesect>\r
                <simplesect xml:id="SIP_End_Session">\r
                        <title>35/36 End Session</title>\r
                        <screen>3520100505    115901AOBR1|AA999999|</screen>\r
                        <screen>36Y20100507    161213AOCONS|AA999999|AFThank you!|</screen>\r
-                       <para>The Y/N code immediately after the 36 indicates success/failure. Failure is not particularly meaningful or important in this context, and for evergreen it \r
-                       is hardcoded Y.</para>  \r
+                       <para>The <emphasis>Y/N</emphasis> code immediately after the 36 indicates <emphasis>success/failure</emphasis>. Failure is not particularly meaningful or \r
+                       important in this context, and for evergreen it is hardcoded <emphasis>Y</emphasis>.</para>     \r
                </simplesect>\r
                <simplesect xml:id="SIP_Fee_Paid">\r
                        <title>37/38 Fee Paid</title>\r
                        <screen>6300020060329    201700          AOBR1|AA999999|ADbadpwd|</screen>\r
                        <screen>64  Y           00020100623    141130000000000000000000000000AA999999|AEDavid J. Fiander|BHUSD|BV0.00|BD2 Meadowvale Dr. St Thomas, ON Canada</screen>\r
                        <screen>90210|BEdjfiander@somemail.com|BF(519) 555 1234|AQBR1|BLY|CQN|PB19640925|PCPatrons|PIUnfiltered|AFOK|AOBR1|</screen>\r
-                       <para>See <link linkend='SIP_Patron_Status'>23/24 Patron Status</link> for info on <emphasis>BL</emphasis> and <emphasis>CQ</emphasis> fields.</para>\r
+                       <para>See <link linkend='SIP_Patron_Status'>23/24 Patron Status</link> for info on <varname>BL</varname> and <varname>CQ</varname> fields.</para>\r
                </simplesect>\r
                <simplesect xml:id="SIP_Renew_All">\r
                        <title>65/66 Renew All</title>\r
                        <screen>...</screen>\r
                        <screen>9300CNsip_01|COsip_01|CPBR1|</screen>\r
                        <screen>941</screen>\r
-                       <para>941 means successful terminal login. 940 or getting dropped means failure.</para>\r
+                       <para><emphasis>941</emphasis> means successful terminal login. <emphasis>940</emphasis> or getting dropped means failure.</para>\r
                </simplesect>\r
                <simplesect xml:id="SIP_Resend">\r
                        <title>97/96 Resend</title>\r
                                        <listitem>status code - 1 character:</listitem>\r
                                        <itemizedlist>\r
                                                <listitem>0: SC is OK</listitem>\r
-                                               <listitem>SC is out of paper</listitem>\r
-                                               <listitem>SC shutting down</listitem>           \r
+                                               <listitem>1: SC is out of paper</listitem>\r
+                                               <listitem>2: SC shutting down</listitem>                \r
                                        </itemizedlist>\r
                                        <listitem>max print width - 3 characters - the integer number of characters the client can print</listitem>\r
                                        <listitem>protocol version - 4 characters - x.xx</listitem>\r
                        <para>Example:</para>\r
                        <screen>9910302.00</screen>\r
                        <screen>98YYYYNN60000320100510    1717202.00AOCONS|BXYYYYYYYYYNYNNNYN|</screen>\r
-                       <para>The Supported Messages field <emphasis>(BX)</emphasis> appears only in <systemitem class="protocol">SIP2</systemitem>, and specifies whether 16 different \r
+                       <para>The Supported Messages field <varname>BX</varname> appears only in <systemitem class="protocol">SIP2</systemitem>, and specifies whether 16 different \r
                        <systemitem class="protocol">SIP</systemitem>  commands are supported by the ACS or not.</para>\r
                </simplesect>\r
                <simplesect xml:id="SIP_Fields">\r