Koha Croatian user group
Brisanje biblio zapisa bez primjeraka: Revision 7
Problem: Postoji skripta: scrub_orphaned_biblios.pl isprobali na koha-dev.rot13.org, ne radi.
ova skripta bi trebala uredno pobrisati zapise, tako da ih sve pospremi u tablice deletedbiblio i deletedbiblioitems može i ovako: $ mysql -u _kohauser_ -p koha mysql> SELECT biblio.biblionumber, biblioitems.itemtype, items.biblionumber as items_biblionumber from biblio RIGHT JOIN biblioitems ON biblio.biblionumber = biblioitems.biblionumber LEFT JOIN items ON biblio.biblionumber = items.biblionumber WHERE items.biblionumber IS NULL ; mysql> begin ; mysql> delete biblio.* from biblio LEFT JOIN items ON biblio.biblionumber = items.biblionumber WHERE items.biblionumber IS NULL ; mysql> select count(*) from biblio ; mysql> commit; nakon toga treba rebuld zebra indeksa: koha@koha-dev:/usr/share/koha/bin/migration_tools$ ./rebuild_zebra.pl -b -a -v -r |