[Koha] Batch Rebuild Biblio Tables script issues

wood.mathew16 at gmail.com wood.mathew16 at gmail.com
Sat Oct 22 05:55:08 NZDT 2022

Thank you for responding to my e-mail. I ran the command as you displayed in the example and this is the output:

" sudo koha-shell -c "perl batchRebuildBiblioTables.pl" ccfl

syntax error at batchRebuildBiblioTables.pl line 13, near "C4::Biblio qw(GetXmlBiblio TransformMarcToKoha)"

BEGIN not safe after errors--compilation aborted at batchRebuildBiblioTables.pl line 14.

I am not sure how to fix syntax errors in the script. 

Mathew B. Wood

-----Original Message-----
From: Koha <koha-bounces at lists.katipo.co.nz> On Behalf Of koha-request at lists.katipo.co.nz
Sent: Thursday, October 20, 2022 6:00 PM
To: koha at lists.katipo.co.nz
Subject: Koha Digest, Vol 204, Issue 17

Send Koha mailing list submissions to
	koha at lists.katipo.co.nz

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
	koha-request at lists.katipo.co.nz

You can reach the person managing the list at
	koha-owner at lists.katipo.co.nz

When replying, please edit your Subject line so it is more specific than "Re: Contents of Koha digest..."

Today's Topics:

   1. Re: KOHA sets due date to current date when checking out
   2. Question regarding patron anonymization (Andy Boze)
   3. Re: Introduction/Request for Assistance (Michael Kuhn)


Message: 1
Date: Thu, 20 Oct 2022 10:20:08 +0530
From: NAYEMA NASRIN <nayema at mes.ac.in>
To: koha at lists.katipo.co.nz
Subject: Re: [Koha] KOHA sets due date to current date when checking
	<CAAe2mSOWYXt01BYCQcJsyBFB3CQB45bXGWxLEzh5xfXx0L7c3w at mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi all,

Problem resolved. The item-level_itypes was set to specific term in administration. It has to be bibliographic details.

Thank you,
*Nayema Nasrin*
Librarian | Pillai College of Engineering, New Panvel Email : nayema at mes.ac.in

On Tue, Oct 18, 2022 at 12:56 PM NAYEMA NASRIN <nayema at mes.ac.in> wrote:

> Dear all,
> Our library is working with KOHA 21.11. Since yesterday the check out 
> process doesn't match the circulation rules which are already defined 
> very well for all the libraries, instead it sets the due date to the 
> current date. So if I check out a book today, the due date is today. I 
> have checked the calendar and the log file, but everything is ok.
> What could be the reason?
> Thank you,
> *Nayema Nasrin*
> Librarian | Pillai College of Engineering, New Panvel Email : 
> nayema at mes.ac.in


Message: 2
Date: Thu, 20 Oct 2022 15:48:30 -0400
From: Andy Boze <Boze.1 at nd.edu>
To: koha at lists.katipo.co.nz
Subject: [Koha] Question regarding patron anonymization
Message-ID: <cab26288-30ed-449d-aa53-fede139ddbd2 at nd.edu>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi, all.

We regularly run the patron anonymization script as documented at < https://koha-community.org/manual/21.11/en/html/cron_jobs.html#anonymize-patron-data
 >. The documentation doesn't go into details of exactly what the script does.

The documentation for the batch patron anonymization < https://koha-community.org/manual/21.11/en/html/tools.html#batch-patron-deletion-anonymization
 > say "This tool allows you to bulk anonymize circulation histories...", by which I assume it means it will replace the borrowernumber in the old_issues table with that of the anonymous patron.

I'm wondering whether any anonymization is supposed to occur in the statistics table. Our statistics table goes back several years, and I don't see any anonymization of the borrowernumber there.

Thanks for any thoughts.


Andy Boze, Associate Librarian
University of Notre Dame
271H Hesburgh Library
(574) 631-8708


Message: 3
Date: Thu, 20 Oct 2022 22:11:09 +0200
From: Michael Kuhn <mik at adminkuhn.ch>
To: koha at lists.katipo.co.nz
Subject: Re: [Koha] Introduction/Request for Assistance
Message-ID: <51d30e54-5e56-92d3-9a37-8af3513d2c4b at adminkuhn.ch>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Mathew

You wrote yesterday:

 > That being said, I played around with the framework and Koha mapping,
 > and now I cannot figure out how to run the “batch rebuild biblio
 > tables” perl script cronjob. Every time I try to run it, I get certain
 > errors such as “unable to locate dbh..”

You didn't write what exactly you have tried. Usually script 
"batchRebuildBiblioTables.pl" isn't used as a cronjob.

However, you may execute it as Linux user "koha" as follows. Just 
replace "instance" with the name of your Koha instance.

sudo koha-shell -c "perl batchRebuildBiblioTables.pl" instance

Also see:

* https://perldoc.koha-community.org/misc/batchRebuildItemsTables.html

Hope this helps.

Best wishes: micahel
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch


Subject: Digest Footer

Koha mailing list
Koha at lists.katipo.co.nz


End of Koha Digest, Vol 204, Issue 17

More information about the Koha mailing list