I was searching a way to export all books holded by a library, in a multi-libraries/single-instance context. I realized a patch to support that.
Created attachment 73164 [details] [review] export_records.pl enchanted with branchcode Tested with: libri-koha@ec101041:~$ /usr/share/koha/bin/export_records.pl --holdingbranch=MI-ISL --format=xml --filename=test0003.xml
Created attachment 73298 [details] [review] Bug 20465: misc/export_records.pl add possibility to export by branchcode There was no way to export all books held by a library, in a multi-libraries/single-instance context. This patch supports that. Tested with: libri-koha@ec101041:~$ /usr/share/koha/bin/export_records.pl --holdingbranch=MI-ISL --format=xml --filename=test0003.xml NOTE: reset_all on kohadevbox has CPL, MPL, and FPL. Comparing barcodes uniquely is helpful to confirm. :) Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Comment on attachment 73164 [details] [review] export_records.pl enchanted with branchcode This patch didn't apply nicely. Made the same changes into a version which is easily git-bz'able, and signed off the author's work.
I am a little concerned how the export tool in the GUI and the export script seem to drift apart. But not sure how far apart they are already. In the GUI you can already select multiple branches (homebranch) for export, but can't select records by holdingbranch. Could you take a look into making your export tool work like the GUI for selecting records by homebranch? And then we could deal with the holdingbranch separately. If you need help, please let us know! For the help: Export biblio owned by a specific library Libraries can't own records in Koha - so I think this would be a bit beter: Export bibliographic records with items owend/held by a specific library.