<div dir="ltr"><br>I have not encountered such an issue before, but you may try running rebuild_zebra -a -b -r <--The -r is for resetting the Zebra db.<br><br>Hope someone helps you out, try the Koha chat also.<br><br>Regards,<br>
<br><br><div class="gmail_quote">On Wed, Apr 21, 2010 at 8:19 AM, Scott Daniels <span dir="ltr"><<a href="mailto:scott@tw.co.nz">scott@tw.co.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am hoping to get some help with an issue I am having with our<br>
Koha(v3.00.05.003) installation. This is a new installation and<br>
biblio/item data has been imported via MARC records. All of our items<br>
imported correctly, we imported patrons and manually populated the<br>
issues table with data from the previous system.<br>
<br>
The problem we are having is, in the search screen (ie<br>
cgi-bin/koha/<a href="http://opac-search.pl?q=test" target="_blank">opac-search.pl?q=test</a>).<br>
The books are ALL reported to be on loan. (Availability: No items<br>
available: Checked out (1))<br>
<br>
The reality is, some are available, some are not. This is ACCURATELY(and<br>
contradictory to the search screen) reflected in the details screen for<br>
each book (cgi-bin/koha/<a href="http://opac-detail.pl?biblionumber=733" target="_blank">opac-detail.pl?biblionumber=733</a>), this will list<br>
the items with their correct status, available or checked out.<br>
<br>
In my research I found that Availability is calculated based on 5<br>
fields, notforloan(0); damaged(0); itemlost(0); wthdrawn(0) and<br>
onloan(null). These are all accurately set in our data.<br>
<br>
I looked into the code (/usr/share/koha/lib/C4/Search.pm line 1249) and<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
it seems that the availability is retrieved from the Zebra index for the<br>
search screen, and not the data, unless I am misinterpreting the comment.<br>
<br>
# 'available' is defined as (items.onloan is NULL) and (items.itemlost = 0)<br>
# In English:<br>
# all records not indexed in the onloan register (zebra) and all records<br>
with a value of lost equal to 0<br>
<br>
The scenario of a 'Zebra onloan register' not being populated would<br>
'fit' my problem in my mind, as it is only on the search screen that<br>
availability is wrongly presented.<br>
<br>
My question is how can I populate this 'register'?<br>
<br>
I have run zebra_rebuild -v -b -w , this has had no effect.<br>
<br>
--<br>
Regards,<br>
Scott Daniels<br>
<br>
TechnologyWise Ltd, Tauranga, NZ<br>
<a href="mailto:scott@tw.co.nz">scott@tw.co.nz</a><br>
ph: +64 (0)7 571 1060<br>
fax: +64 (0)7 571 1061<br>
<br>
_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</blockquote></div><br></div>