[Koha] Duplicate book entry in staff interface

Magnus Enger magnus at libriotech.no
Thu Nov 7 20:09:27 NZDT 2024


Hi!

You have to run koha-rebuild-zebra with sudo. It should not mess with 
permissions. (koha-rebuild-zebra runs another job i nthe background, and 
if I remember correctly, running *that* job as sudo might mess with 
permissions.)

Your problem with duplicate records sounds like something that will be 
fixed by a full reindex.

Best regards,
Magnus

Den 06.11.2024 16:15, skrev Aliasger Ilyas Badri:
> I'm currently using Zebra as my bibliographic database in Koha. I've
> encountered some challenges while trying to execute the koha-rebuild-zebra
> command.
> 
> I've read that using sudo with this command can lead to permission issues,
> preventing newly added bibliographic records from being automatically added
> to the Zebra database. This would require running koha-rebuild-zebra after
> every new book addition, which is obviously inefficient.
> 
> However, when I try to run the command without sudo, I receive the error:
> 
> -bash: koha-rebuild-zebra: command not found
> 
> I'm unsure how to proceed. Could you please provide guidance on the correct
> method to execute koha-rebuild-zebra to avoid these issues?
> 
> 
> On Wed, Nov 6, 2024 at 5:49 PM Coehoorn, Joel <jcoehoorn at york.edu> wrote:
> 
>> This sounds like you need to do a full rebuild of the search indexes for
>> your data. What this looks like, exactly, depends on whether you're using
>> Zebra or ElasticSearch, as both are supported.
>>
>> *Joel Coehoorn*
>> Director of Information Technology
>> *York University*
>> Office: 402-363-5603 | jcoehoorn at york.edu | york.edu
>>
>>
>>
>> On Wed, Nov 6, 2024 at 8:19 AM Aliasger Ilyas Badri <
>> aliasgar.badri at jameasaifiyah.edu> wrote:
>>
>>> I hope this email finds you well.
>>>
>>> My name is Ali, and I work for a university based in Kenya. Recently, I
>>> installed KOHA ILS for our university library. During the setup of our
>>> bibliographic data, I converted our records into MARC format and uploaded
>>> them to the system. Unfortunately, I realized I made some mistakes when
>>> creating the MARC records.
>>>
>>> In my efforts to resolve the issue, I followed the instructions from the
>>> following link on how to delete all records while keeping the settings
>>> intact.
>>>
>>>
>>> https://wiki.koha-community.org/wiki/How_to_delete_all_records_and_keep_settings
>>>
>>> Specifically, I truncated all the tables except for the borrowers table.
>>> After correcting the MARC records, I re-uploaded the bibliographic data.
>>> The system accepted the updates, and the data appeared to be fine.
>>>
>>> However, I have encountered a problem when searching for any book via the
>>> staff interface. I see two entries for each book—one from the old
>>> incorrect
>>> data and one with the new corrected data. Clicking on the old entries
>>> results in an error message indicating that the item is not found. On the
>>> OPAC side, the search results appear to be correct with no duplicates.
>>>
>>> Could you please advise on how to resolve this issue? Any assistance you
>>> can provide would be greatly appreciated.
>>>
>>> Thank you for your time and support.
>>>
>>> Best regards,
>>>
>>> Aliasgar I Badri
>>> IT Department
>>> Aljamea tus Safiyah
>>>
>>> --
>>> Aliasgar I Badri
>>> IT Department
>>> Aljamea tus Safiyah
>>> _______________________________________________
>>>
>>> Koha mailing list  http://koha-community.org
>>> Koha at lists.katipo.co.nz
>>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>>>
>>
> 


More information about the Koha mailing list