<screen><userinput>/openils/bin/srfsh</userinput></screen>\r
<screen><userinput>srfsh# request opensrf.math add 2 2</userinput></screen>\r
<para>You should see output like:</para>\r
- <screen>\r
- Received Data: 4\r
- \r
- ------------------------------------\r
- Request Completed Successfully\r
- Request Time in seconds: 0.007519\r
- ------------------------------------\r
- \r
- srfsh#\r
- </screen> \r
+<screen>\r
+Received Data: 4\r
+\r
+------------------------------------\r
+Request Completed Successfully\r
+Request Time in seconds: 0.007519\r
+------------------------------------\r
+\r
+srfsh#\r
+</screen> \r
<para>If test completed successfully move onto next section. \r
Otherwise, refer to the <link linkend="troubleshooting">troubleshooting</link> chapter \r
of this documentation.</para> \r
<para>As the <systemitem class="username">root</systemitem> user, build <filename>live-db-setup.pl</filename> for the cgi-bin \r
bootstrapping scripts and <filename>offline-config.pl</filename> for the offline staff client data uploader:</para>\r
<screen><userinput>cd /home/opensrf/Evergreen-ILS-1.6.0.8</userinput></screen> \r
- <screen>\r
- <userinput>\r
- perl Open-ILS/src/support-scripts/eg_db_config.pl --create-bootstrap --create-offline --user evergreen \\r
- --password evergreen --hostname localhost --port 5432 --database evergreen\r
- </userinput>\r
- </screen>\r
+<screen>\r
+<userinput>\r
+perl Open-ILS/src/support-scripts/eg_db_config.pl --create-bootstrap --create-offline --user evergreen \\r
+--password evergreen --hostname localhost --port 5432 --database evergreen\r
+</userinput>\r
+</screen>\r
</step>\r
<step>\r
<para>As the <systemitem class="username">opensrf</systemitem> user, update server symlink in <filename class="directory">/openils/var/web/xul/</filename>:</para>\r
</step>\r
<step>\r
<para>Update <filename>opensrf.xml</filename> with the database connection info:</para>\r
- <screen>\r
- <userinput>\r
- perl Open-ILS/src/support-scripts/eg_db_config.pl --update-config --service all --user evergreen \\r
- --password evergreen --hostname localhost --port 5432 --database evergreen\r
- </userinput>\r
+<screen>\r
+<userinput>\r
+perl Open-ILS/src/support-scripts/eg_db_config.pl --update-config --service all --user evergreen \\r
+--password evergreen --hostname localhost --port 5432 --database evergreen\r
+</userinput>\r
</screen>\r
</step>\r
<step>\r
Create a marc template in the directory <filename class="directory">/openils/var/templates/marc/</filename>. It should be in xml format.\r
Here is an example file <filename>k_book.xml</filename>: \r
</para>\r
- <programlisting language="xml">\r
- <![CDATA[\r
- <record>\r
- <leader>00620cam a2200205Ka 4500</leader>\r
- <controlfield tag="008">070101s eng d</controlfield>\r
- <datafield tag="010" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- <datafield tag="020" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- <datafield tag="082" ind1="0" ind2="4">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- <datafield tag="092" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- <datafield tag="100" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- <datafield tag="245" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- <subfield code="b"></subfield>\r
- <subfield code="c"></subfield>\r
- </datafield>\r
- <datafield tag="260" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- <subfield code="b"></subfield>\r
- <subfield code="c"></subfield>\r
- </datafield>\r
- <datafield tag="300" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- <subfield code="b"></subfield>\r
- <subfield code="c"></subfield>\r
- </datafield>\r
- <datafield tag="500" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- <datafield tag="650" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- <subfield code="v"></subfield>\r
- </datafield>\r
- <datafield tag="650" ind1="" ind2="">\r
- <subfield code="a"></subfield>\r
- </datafield>\r
- </record>\r
- ]]>\r
- </programlisting>\r
+<programlisting language="xml">\r
+<![CDATA[\r
+<record>\r
+ <leader>00620cam a2200205Ka 4500</leader>\r
+ <controlfield tag="008">070101s eng d</controlfield>\r
+ <datafield tag="010" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+ <datafield tag="020" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+ <datafield tag="082" ind1="0" ind2="4">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+ <datafield tag="092" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+ <datafield tag="100" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+ <datafield tag="245" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ <subfield code="b"></subfield>\r
+ <subfield code="c"></subfield>\r
+ </datafield>\r
+ <datafield tag="260" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ <subfield code="b"></subfield>\r
+ <subfield code="c"></subfield>\r
+ </datafield>\r
+ <datafield tag="300" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ <subfield code="b"></subfield>\r
+ <subfield code="c"></subfield>\r
+ </datafield>\r
+ <datafield tag="500" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+ <datafield tag="650" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ <subfield code="v"></subfield>\r
+ </datafield>\r
+ <datafield tag="650" ind1="" ind2="">\r
+ <subfield code="a"></subfield>\r
+ </datafield>\r
+</record>\r
+]]>\r
+</programlisting>\r
\r
</step>\r
<step>\r
</step>\r
<step>\r
<para>Restart <systemitem class="service">Perl</systemitem><indexterm><primary>Perl</primary></indexterm> services for changes to take effect.</para>\r
- <screen><userimput>/openils/bin/osrf_ctl.sh -l -a restart_perl</userimput></screen>\r
+ <screen><userinput>/openils/bin/osrf_ctl.sh -l -a restart_perl</userinput></screen>\r
</step>\r
</procedure>\r
</section>\r
<step>\r
<para>Clone the title|proper index to create a keyword|title index</para>\r
<para>6 = the title|proper index</para>\r
- <programlisting>\r
- INSERT INTO config.metabib_field \r
- (field_class, name, xpath, weight, format, search_field, facet_field)\r
- SELECT 'keyword', 'title', xpath, weight, format, search_field, facet_field\r
- FROM config.metabib_field\r
- WHERE id = 6;\r
- </programlisting>\r
+<programlisting>\r
+INSERT INTO config.metabib_field \r
+ (field_class, name, xpath, weight, format, search_field, facet_field)\r
+ SELECT 'keyword', 'title', xpath, weight, format, search_field, facet_field\r
+ FROM config.metabib_field\r
+ WHERE id = 6;\r
+</programlisting>\r
</step>\r
<step>\r
<para>Populate the keyword|title index with a set of index entries cloned from the metabib.title_field_entry table;</para>\r
<para>6 = the title|proper index</para>\r
- <programlisting>\r
- INSERT INTO metabib.keyword_field_entry \r
- (source, field, value)\r
- SELECT source, 17, value (the field value, 17, field be different in your database so you may need to check the \r
- <link linkend="config.metabib_field">config.metabib_field</link> for the id of your new index).\r
- FROM metabib.title_field_entry\r
- WHERE field = 6;\r
- </programlisting>\r
+<programlisting>\r
+INSERT INTO metabib.keyword_field_entry \r
+ (source, field, value)\r
+ SELECT source, 17, value (the field value, 17, field be different in your database so you may need to check the \r
+ <link linkend="config.metabib_field">config.metabib_field</link> for the id of your new index).\r
+ FROM metabib.title_field_entry\r
+ WHERE field = 6;\r
+</programlisting>\r
</step>\r
<step> \r
<para>Bump the relevance when the first search term appears first in the title in a keyword search.</para>\r
<para>17 = our new keyword|title index (This may be different in your database so you may need to check the \r
<link linkend="config.metabib_field">config.metabib_field</link> for the id \r
of your new index).</para>\r
- <programlisting>\r
- INSERT INTO search.relevance_adjustment \r
- (active, field, bump_type, multiplier)\r
- VALUES (true, 17, 'first_word', 5); \r
- </programlisting>\r
+<programlisting>\r
+INSERT INTO search.relevance_adjustment \r
+ (active, field, bump_type, multiplier)\r
+VALUES (true, 17, 'first_word', 5); \r
+</programlisting>\r
</step>\r
<step>\r
<para>Boost the relevance for search terms appearing in the title in general</para>\r
<para>17 = our new keyword|title index (This may be different in your database so you may need to check the \r
<link linkend="config.metabib_field">config.metabib_field</link> for the id \r
of your new index).</para>\r
- <programlisting>\r
- UPDATE config.metabib_field\r
- SET weight = 10\r
- WHERE id = 17;\r
- </programlisting>\r
+<programlisting>\r
+UPDATE config.metabib_field\r
+SET weight = 10\r
+WHERE id = 17;\r
+</programlisting>\r
</step>\r
</procedure> \r
</simplesect> \r