[Bug 17693] New: Add option to export deleted bibs in export_records.pl
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 Bug ID: 17693 Summary: Add option to export deleted bibs in export_records.pl Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Command-line Utilities Assignee: gmcharlt@gmail.com Reporter: theod@lib.auth.gr QA Contact: testopia@bugs.koha-community.org CC: robin@catalyst.net.nz Currently the export_records.pl script has an option to export a list of deleted items, but not deleted biblios. There are cases where such an export would seem useful (at Aristotle University of Thessaloniki we have been using it for a long time), the data is already kept in the deletedbiblio table, so the enhancement is easy to implement as it only requires a couple lines of code in the export script. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 Theodoros Theodoropoulos <theod@lib.auth.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gmcharlt@gmail.com |theod@lib.auth.gr -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 Theodoros Theodoropoulos <theod@lib.auth.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 --- Comment #1 from Theodoros Theodoropoulos <theod@lib.auth.gr> --- Created attachment 57807 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=57807&action=edit Add option to export deleted bibs in export_records.pl This commit adds an additional option to the export_records.pl script, so that users will be able to get a line-seperated list of biblionumbers with records deleted (optionally after a specified date). Test plan: 1/ Apply patch 2/ delete one or more marc records from Koha 3/ from within the ./misc/ folder run: export_records.pl --deleted_bibs --record-type='bibs' You should get a Koha.mrc file with the deleted biblionumbers (one per line). 4/ you may also use '--date' option like so: export_records.pl --deleted_bibs --record-type='bibs' --date="YYYY-MM-DD" This way you should get a filtered list of biblionumbers that were deleted AFTER the specified date. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 --- Comment #2 from Theodoros Theodoropoulos <theod@lib.auth.gr> --- ps1. My coding style is not so elegant, but I decided to use an approach that makes the least possible changes to the original file. Comments and suggestions for different approaches are welcome. ps2. The patch is not applicable to pre-3.22 Koha versions as-is (because the export script was significantly different), but if required I could provide a backfix (ie for v3.20) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Failed QA --- Comment #3 from Owen Leonard <oleonard@myacpl.org> --- If the only option for retrieving deleted records is to get a text file with one biblionumber per line I don't think it should save a file with the ".mrc" extension. That makes it look like it's a MARC file. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17693 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|Failed QA |RESOLVED CC| |jonathan.druart@bugs.koha-c | |ommunity.org --- Comment #4 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- *** This bug has been marked as a duplicate of bug 20551 *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org