https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36201 --- Comment #1 from Alex Buckley <alexbuckley@catalyst.net.nz> --- Created attachment 162575 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162575&action=edit Bug 36201: Add -days_old and -months_old arguments to misc/export_records.pl Limit exported records based on the biblio.datecreated using the -days_old and -months_old arguments. Test plan: 1. Remove all biblios in your Koha catalogue, then create 10 bibliographic records - in the Koha database set 6 of the biblios to have a biblio.datecreated 50 days ago 2. Apply patches and restart services 3. In koha-shell run the following command: perl misc/export_records.pl --months_old=1 --format=marc --record-type=bibs --filename=/tmp/test.mrc 4. Check the /tmp/test.mrc and confirm it has 4 biblios in it 5. In the koha-shell run the following command: perl misc/export_records.pl --days_old=31 --format=marc --record-type=bibs --filename=/tmp/test2.mrc 6. Check the /tmp/test2.mrc and confirm it also has 4 biblios in it 7. In the koha-shell run the following command: perl misc/export_records.pl --days_old=52 --format=marc --record-type=bibs --filename=/tmp/test3.mrc 8. Check the /tmp/test3.mrc and confirm it has 10 biblios in it 9. In the koha-shell run the following command: perl misc/export_records.pl --format=marc --record-type=bibs --filename=/tmp/all.mrc 10. Check the /tmp/all.mrc and confirm it also has 10 biblios in it 11. Try running the export_records.pl script with a variety of other arguments and confirm it works as expected Sponsored-By: Department of Corrections, New Zealand -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.