[Koha] BiblioAddsAuthorities: SimpleSearch failing (previously "bulk BiblioAddsAuthorities?")
pete.huerter at gmail.com
Tue Mar 8 09:55:47 NZDT 2011
Dear Koha developers,
I would like to bump my original post (previous title "bulk
addbiblio.pl appears to be called when one chooses "Edit Record" from the
koha admin biblio details page. This code appears to call
BiblioAddAuthorities and I *really like* the result. Authorities are
generated for authors, subjects, and secondary authors. Even better the
string "machine generated" is used in the added authorities to mark them as
being created automatically. This is great! I would like to do this in
batch for all of our biblios since we manage our own authorities in house.
I would really like to make use of this feature since it works so well in
the singleton case. However I have run into problems writing a perl script
to do this.
I have a script working that iterates through a list of biblios calling
BiblioAddAuthorities however I have one problem related to bulk processing,
a temporal issue, or perhaps a caching issue(?).
BiblioAddAuthorities relies on SimpleSearch to search for existing
authorities. However when I am processing in batch SimpleSearch fails for
*recently added authorities*. I think SimpleSearch relies on Zebra.
I've tried adding dbh->commits, and re-indexing zebra before processing each
biblio, but this does not seem to solve my problem. When my script exits,
SimpleSearch finds recently added authorities. It is almost like there is a
lazy write, or caching middle-layer getting in the way (but probably working
very well for it's intended purpose of course).
It seems that recently added authorities are stuck in some sort of cache
somewhere? At the SQL level? At the Zebra layer?
How do I make sure that Zebra, and SQL are written to so that SimpleSearch
has the latest up-to-date data to base it's search on?
Any pointers would be greatly appreciated.
(Volunteer with the ACS - http://aandc.org/)
View this message in context: http://koha.1045719.n5.nabble.com/bulk-BiblioAddsAuthorities-tp3378000p3413117.html
Sent from the Koha - Discuss mailing list archive at Nabble.com.
More information about the Koha