https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38029

            Bug ID: 38029
           Summary: Fix POD for bulkmarcimport.pl --delete --authorities
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

POD says: 

  =item B<-d, --delete>

  Delete EVERYTHING related to biblio in koha-DB before import. Tables: biblio,
biblioitems, items

What happens if you combine this with --authorities? One interpretation could
be that nothing will happen. Another could be that you delete all biblios, even
if you are importing authorities. 

The code looks like this: 

if ($delete) {
    if ($biblios) {
        print "Deleting biblios\n";
        $dbh->do("DELETE FROM biblio");
        $dbh->do("ALTER TABLE biblio AUTO_INCREMENT = 1");
        $dbh->do("DELETE FROM biblioitems");
        $dbh->do("ALTER TABLE biblioitems AUTO_INCREMENT = 1");
        $dbh->do("DELETE FROM items");
        $dbh->do("ALTER TABLE items AUTO_INCREMENT = 1");
    } else {
        print "Deleting authorities\n";
        $dbh->do("truncate auth_header");
    }
    $dbh->do("truncate zebraqueue");
}

So it should do the right thing. The POD should say that --delete --authorities
will clean out the auth_header table.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to