Bug 6630 - Can't update zebra after add an item then barcode not searchable by search form
Summary: Can't update zebra after add an item then barcode not searchable by search form
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 3.4
Hardware: All All
: P5 - low critical (vote)
Assignee: Galen Charlton
QA Contact: Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 02:11 UTC by Suyadi
Modified: 2019-06-27 09:24 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Suyadi 2011-07-26 02:11:02 UTC

    
Comment 1 Chris Nighswonger 2011-09-07 18:32:45 UTC
This will need a better description including steps to recreate the error before a fix can be attempted.
Comment 2 Suyadi 2011-09-09 02:13:35 UTC
(In reply to comment #1)
> This will need a better description including steps to recreate the error
> before a fix can be attempted.

When I add an item on the record, the items are not stored in the zebra.

Maybe the problem on C4::Items::AddItem following lines:
    my $ new_item_marc = _marc_from_item_hash ($ item, $ frameworkcode, $ unlinked_item_subfields);
     _add_item_field_to_biblio ($ new_item_marc, $ item-> {'biblionumber'}, $ frameworkcode);

replaced with:
     # ModZebra ($ item-> {biblionumber}, "specialUpdate", "biblioserver", undef, undef);

but its function is not identical (do not add item field to biblio)
Comment 3 Paul Poulain 2011-10-26 16:47:50 UTC
sorry, but it's still not clear and I can't reproduce it (on a 3.6.0), so I mark "worksforme", please reopen if you can give us more information and still have the problem.
Comment 4 Suyadi 2011-10-27 01:20:49 UTC
Yes, I still have the problem.
When I add an item with a barcode number 1234 in the bibliography under the title: "Library", then searching by keyword "bc:1234", results were not found. Similarly in the search results for keyword "ti:library", still no item too.
In the circulation module that does not matter, barcode number 1234 can still be borrowed (the data has been recorded in the mysql database, whereas in the zebra is not). My guess error on the procedure to add, modify and change the item.
Koha version 3.6 also still have the same problem.
Comment 5 Paul Poulain 2011-10-27 11:58:05 UTC
Could you please :
* suspend the automatic (cronjob) rebuild_zebra
* add an item
* look at what you get when you do SELECT * FROM zebraqueue WHERE biblio_auth_number=<the biblio you just added an item to>. You should see a line with "done=0", that will be visible with a timestamp of your adding
* run rebuild_zebra.pl -v -b -z => to reindex all pending indexes and have a verbose output
* copy/paste here what you get & check that zebraqueue has now done=1 for the previous line you've found
Comment 6 Suyadi 2011-11-01 03:53:37 UTC
Oh. I use daemon script: koha-zebraqueue-ctl.sh
Is this script deprecated and not usable?
Comment 7 Ian Walls 2011-11-01 04:17:23 UTC
Suyadi,


Yes, koha-zebraqueue-ctl.sh is deprecated in favour of koha-zebra-ctl.sh.  This sets up the Zebra server.  To update, use rebuild_zebra.pl -z on the crontab, typically every 5-10 minutes (depends on how frequently your catalog changes).
Comment 8 Suyadi 2011-11-01 04:56:41 UTC
oh, thanks a lot. my problem resolved.