Script to delete Biblio if no corresponding items
Hi All Can anyone please give me an indication how to delete a Biblio if there are no items attached? I actually first want to delete an item according the Barcode, and then delete the Biblio if empty. I will appreciate any help.
Awhile ago I added a script to the dev_week branch called scrub_orphaned_biblios.pl ( http://tinyurl.com/2wawrx ). It will be in /koha/misc/ if you have it already, otherwise just follow the link to download it. This script will delete any biblios that do not have items attached. Kyle On Tue, Feb 26, 2008 at 6:02 AM, C W Nel <zang@zang.co.za> wrote:
Hi All
Can anyone please give me an indication how to delete a Biblio if there are no items attached?
I actually first want to delete an item according the Barcode, and then delete the Biblio if empty.
I will appreciate any help. _______________________________________________ Koha-devel mailing list Koha-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/koha-devel
-- http://www.kylehall.info Information Technology Crawford County Federated Library System ( http://www.ccfls.org )
On 2/26/08, C W Nel <zang@zang.co.za> wrote:
Hi All
Can anyone please give me an indication how to delete a Biblio if there are no items attached?
I actually first want to delete an item according the Barcode, and then delete the Biblio if empty.
In the staff client (intranet) there is a big red 'delete' button on the 'normal' detail view of a record. Cheers, -- Joshua Ferraro SUPPORT FOR OPEN-SOURCE SOFTWARE CEO migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
Thanks for the reply. I actually meant a batch script. A type of "bulkmarcdelete.pl". It reads a marc file, splits it up to find the barcode and delete the item in the marc tables and item tables. If the Biblio is empty, it will delete this as well. I am busy with the script, if anyone else are interested. ----- Original Message ----- From: "Joshua Ferraro" <jmf@liblime.com> To: "C W Nel" <zang@zang.co.za> Cc: <Koha-devel@nongnu.org> Sent: Friday, February 29, 2008 4:55 PM Subject: Re: [Koha-devel] Script to delete Biblio if no corresponding items
On 2/26/08, C W Nel <zang@zang.co.za> wrote:
Hi All
Can anyone please give me an indication how to delete a Biblio if there are no items attached?
I actually first want to delete an item according the Barcode, and then delete the Biblio if empty.
In the staff client (intranet) there is a big red 'delete' button on the 'normal' detail view of a record.
Cheers,
-- Joshua Ferraro SUPPORT FOR OPEN-SOURCE SOFTWARE CEO migration, training, maintenance, support LibLime Featuring Koha Open-Source ILS jmf@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.21.1/1303 - Release Date: 2/28/2008 12:14 PM
participants (3)
-
C W Nel -
Joshua Ferraro -
Kyle Hall