[Koha-bugs] [Bug 20551] Add option for including deleted records in export_records.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 6 16:37:23 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20551
David Gustafsson <glasklas at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #82843|0 |1
is obsolete| |
--- Comment #9 from David Gustafsson <glasklas at gmail.com> ---
Created attachment 82914
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82914&action=edit
Bug 20551: Add option for including deleted records in export_records.pl
Add option "--include_deleted" to include deleted
biblios in export_records.pl as marc records with
record status (in leader) set to "d" and
"--deleted_only" to export only deleted biblios.
How to test:
1) Run tests in t/db_dependent/Exporter/Record.t
2) All tests should pass
3) Delete a biblio record in Koha
4) Run the export script as:
`export_records.pl --date=<date-just-before-deletion>
--include_deleted`
5) Open the generated koha.mrc, and verify that contains
the recently deleted record, and that the record header
has record status "d".
6) Perform the same check with:
`export_records.pl --date=<date-just-before-deletion>
--include_deleted --format=xml`
7) Run:
`export_records.pl --date=<date-just-before-deletion>
--deleted_only --format=xml`
and verify that only the deleted biblio was included
in the export.
Sponsored-by: Gothenburg University Library
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list