Some script for item deletion - suggestion

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Some script for item deletion - suggestion

Tümer Garip
Hi Paul,

We noticed that the librarian can actaully delete an item (by mistake or
while correcting some biblios). Although
KOHA keeps records of deleted items its too much work trying to retrive
it. So we think KOHA should prevent deletion of such items. We have
added the following script to

} elsif ($op eq "delitem") {
# retrieve item if exist => then, it's a modif
+ my $sth=$dbh->prepare("select * from issues i where i.returndate is
null and i.itemnumber=?");
+ $sth->execute($itemnum);
+ my $onloan=$sth->fetchrow;
+ push @errors,"book_on_loan" if ($onloan); ##error book_on_loan added
to template as well
+ if ($onloan){
+ $nextop = "additem";
+ }else{
+ }

We also believe a similar code should be inserted to as

If you think the sameway can you please commit these, thanks


Koha-devel mailing list
[hidden email]