biblio & item deletion now works fine in MARC editor.
authortipaul <tipaul>
Mon, 24 Nov 2003 17:12:41 +0000 (17:12 +0000)
committertipaul <tipaul>
Mon, 24 Nov 2003 17:12:41 +0000 (17:12 +0000)
Stores deleted biblio/item in the marc field of the deletedbiblio/deleteditem table.

acqui.simple/additem.pl

index 7bb4bb0..7cdbf40 100755 (executable)
@@ -95,6 +95,12 @@ if ($op eq "additem") {
        $itemrecord = MARCgetitem($dbh,$bibid,$itemnum);
        $nextop="saveitem";
 #------------------------------------------------------------------------------------------------------------------------------
+} elsif ($op eq "delitem") {
+#------------------------------------------------------------------------------------------------------------------------------
+# retrieve item if exist => then, it's a modif
+       &NEWdelitem($dbh,$bibid,$itemnum);
+       $nextop="additem";
+#------------------------------------------------------------------------------------------------------------------------------
 } elsif ($op eq "saveitem") {
 #------------------------------------------------------------------------------------------------------------------------------
        # rebuild