<style type="text/css">!--
                @page { size: 8.5in 11in; margin: 0.79in }
                P { margin-bottom: 0.08in }
        --&gt;
        </style>

<p style="margin-bottom: 0in; font-style: normal;">
<font face="Times New Roman, serif">Hallo - and sorry for the delay
in this. </font>
</p>
<p style="margin-bottom: 0in; font-style: normal;">
<br>
</p>
<p style="margin-bottom: 0in; font-style: normal;">
<font face="Times New Roman, serif">I&#39;m still  trying to have Koha
2.2.7 working with MySQL 5 (on Debian Etch). </font>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">I still can not find books that I&#39;ve
catalogued – neither through the Web-OPAC nor through the staff
Intranet Catalogue search. 
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">I do see the book in MySQL - in the
&quot;biblio&quot; table.</p><p style="margin-bottom: 0in;">[code] 
</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql&gt; SELECT biblionumber, author,
title, unititle, timestamp</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; FROM biblio</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; WHERE author = &#39;OrenM&#39;;</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +--------------+--------+--------------+----------+---------------------+</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | biblionumber | author | title       
| unititle | timestamp           |</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp; +--------------+--------+--------------+----------+---------------------+</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |            1 | OrenM  | Hallo World 
| NULL     | 2006-12-13 18:21:21 |</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +--------------+--------+--------------+----------+---------------------+</p>
<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 row in set (0.00 sec)</p>

<p style="margin-bottom: 0in;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mysql&gt;</p>

<p style="margin-bottom: 0in;">[/code]</p><p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">Here are the change that I have made: 
</p>

<p style="margin-bottom: 0in;">-----------------------------------------</p>
<p style="margin-bottom: 0in;">A.1 
</p>
<p style="margin-bottom: 0in;">Additions in:
~/koha/koha-2.2.7/modules/C4/Search.pm</p>
<p style="margin-bottom: 0in;">lines 915 - 923 - added brackets after
the &quot;left join additionalauthors on&quot;</p>

<p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;">[code]</p>

<p style="margin-bottom: 0in;"><br>$query=&quot;select
*,biblio.author,biblio.biblionumber from</p>
<p style="margin-bottom: 0in;">                                                        biblio</p>
<p style="margin-bottom: 0in;">                                                        left join additionalauthors</p>
<p style="margin-bottom: 0in;">                                                        on
(additionalauthors.biblionumber =biblio.biblionumber)</p>
<p style="margin-bottom: 0in;">                                                        where</p>
<p style="margin-bottom: 0in;">                                                        ((biblio.author like ? or
biblio.author like ? or</p>
<p style="margin-bottom: 0in;">                                                        additionalauthors.author like ?
or additionalauthors.author</p>
<p style="margin-bottom: 0in;">                                                        like ?</p>
<p style="margin-bottom: 0in;">                                                                )&quot;;</p>
<p style="margin-bottom: 0in;">                                </p>
<p style="margin-bottom: 0in;">[/code]</p>


<p style="margin-bottom: 0in;"><br>-----------------------------------------
</p>

<p style="margin-bottom: 0in; line-height: 100%;">A.2</p>
<p style="margin-bottom: 0in; line-height: 100%;">Additions in: 
~/koha/koha-2.2.7/modules/C4/Search.pm</p>
<p style="margin-bottom: 0in; line-height: 100%;">lines 1304-1305-
added brackets after the &quot;left join itemtypes on&quot;</p>
<p style="margin-bottom: 0in; line-height: 100%;"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%;">[code]</p>
<p style="margin-bottom: 0in;">        my $query = &quot;SELECT
*,items.notforloan as itemnotforloan FROM items, biblio, biblioitems 
</p>
<p style="margin-bottom: 0in;">                                        left join itemtypes on
(biblioitems.itemtype = itemtypes.itemtype) 
</p>

<p style="margin-bottom: 0in;">[/code]</p>
<p style="margin-bottom: 0in;"></p><p style="margin-bottom: 0in;">-----------------------------------------
</p>

<p style="margin-bottom: 0in; line-height: 100%;">B.1</p>

<p style="margin-bottom: 0in;"><br>Additions in: 
~/koha/koha-2.2.7/modules/C4/SearchMarc.pm</p>

<p style="margin-bottom: 0in;">lines 383-387</p>

<p style="margin-bottom: 0in;">brackets after the "LEFT JOIN
biblioitems on"</p>
<p style="margin-bottom: 0in;">and 
</p>
<p style="margin-bottom: 0in;">brackets after the "LEFT JOIN
itemtypes on" 
</p>


<p style="margin-bottom: 0in;">[code]</p>
<p style="margin-bottom: 0in;">        $sth = $dbh-&gt;prepare(&quot;SELECT
biblio.biblionumber as bn,biblioitems.*,biblio.*,
marc_biblio.bibid,itemtypes.notforloan,itemtypes.description</p>
<p style="margin-bottom: 0in;">                                                        FROM marc_biblio, biblio 
</p>
<p style="margin-bottom: 0in;">                                                        LEFT JOIN biblioitems on
(biblio.biblionumber = biblioitems.biblionumber) 
</p>
<p style="margin-bottom: 0in;">                                                        LEFT JOIN itemtypes on
(itemtypes.itemtype=biblioitems.itemtype) 
</p>
<p style="margin-bottom: 0in;">                                                        WHERE biblio.biblionumber =
marc_biblio.biblionumber AND bibid = ?&quot;);</p>
<p style="margin-bottom: 0in;">[/code]</p>

<p style="margin-bottom: 0in;">-----------------------------------------</p><br><p style="margin-bottom: 0in;"><br></p>WHat else should be done?? <br><br>Best regards <br>(&amp; a Happy New Year!)<br><br>Oren Maurer<br>
<p style="margin-bottom: 0in;">-----------------------------------------
</p>
<br><br><div><span class="gmail_quote">On 12/7/06, <b class="gmail_sendername">Alex King</b> &lt;<a href="mailto:alex@king.net.nz">alex@king.net.nz</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So did you modify (or verify, I haven&#39;t looked at what&#39;s in 2.2.7) the<br>two modules <a href="http://Search.pm">Search.pm</a> and SearchMarc.pm as listed in Dana&#39;s email?&nbsp;&nbsp;That<br>was all that was necessary to get 
2.2.5 search function working.<br><br>Perhaps you could execute the same searches yourself in the mysql client<br>and see what the results are?<br><br>Cheers,<br><br>Alex<br><br><br>oren maurer wrote:<br>&gt;<br>&gt; Hi all
<br>&gt;<br>&gt; 1.<br>&gt; In spite of the known incompatibility of current version (2.2.7) with<br>&gt; MySQL 5.0, I do want to try having it working (I have Debian Etch I<br>&gt; had troubles downgrading to MySQL 4.1).
<br>&gt;<br>&gt;&nbsp;&nbsp;I succeeded with installation of 2.2.7.<br>&gt;<br>&gt;&nbsp;&nbsp;2.<br>&gt; The first problem I see:<br>&gt; I can use catalogue to add book, and than see it in the database using<br>&gt; MySQL-ADMIN<br>&gt;<br>
&gt; But I can not see it by using search.<br>&gt;<br>&gt; Could it be connected to the MySQL version?<br>&gt;<br>&gt; 3.<br>&gt; I read and tried the suggestion of Dana Huff (even though it was for<br>&gt; 2.2.5) in <a href="http://lists.katipo.co.nz/pipermail/koha/2006/010477.html">
http://lists.katipo.co.nz/pipermail/koha/2006/010477.html</a><br>&gt; Where it&#39;s written: &quot;... there are a couple of modules that must be<br>&gt; modified&quot;<br>&gt;<br>&gt;<br>&gt;<br>&gt; This didn&#39;t help here.
<br>&gt;<br>&gt;<br>&gt;<br>&gt; Any ideas??<br>&gt;<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;Thanks<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; ________________________________<br>&gt; Oren&nbsp;&nbsp;Maurer<br>&gt; _______________________________
<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Koha mailing list<br>&gt; <a href="mailto:Koha@lists.katipo.co.nz">
Koha@lists.katipo.co.nz</a><br>&gt; <a href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>&gt;<br></blockquote></div><br><br clear="all"><br>-- <br>________________________________
<br>  Oren&nbsp;&nbsp;Maurer <br>          <a href="http://www.meorero.org.il">http://www.meorero.org.il</a> <br> _______________________________<br> #&nbsp;&nbsp;=======================|<br> #&nbsp;&nbsp;Please avoid sending me Word |<br> #&nbsp;&nbsp; or PowerPoint attachments&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|
<br> #&nbsp;&nbsp;=======================|<br> # See: <a href="http://www.gnu.org/philosophy/no-word-attachments.html">http://www.gnu.org/philosophy/no-word-attachments.html</a>