Bugzilla – Attachment 73298 Details for
Bug 20465
misc/export_records.pl add possibility to export by branchcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20465: misc/export_records.pl add possibility to export by branchcode
Bug-20465-miscexportrecordspl-add-possibility-to-e.patch (text/plain), 2.94 KB, created by
Mark Tompsett
on 2018-03-27 00:14:58 UTC
(
hide
)
Description:
Bug 20465: misc/export_records.pl add possibility to export by branchcode
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2018-03-27 00:14:58 UTC
Size:
2.94 KB
patch
obsolete
>From e3153b6e853d5f2f6879dcb4813662f1db2f87dc Mon Sep 17 00:00:00 2001 >From: Giuseppe Passanisi <giuseppepassanisi93@gmail.com> >Date: Mon, 26 Mar 2018 23:53:24 +0000 >Subject: [PATCH] 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 > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > misc/export_records.pl | 20 +++++++++++++++++++- > 1 file changed, 19 insertions(+), 1 deletion(-) > >diff --git a/misc/export_records.pl b/misc/export_records.pl >index 6e36368..86101a5 100755 >--- a/misc/export_records.pl >+++ b/misc/export_records.pl >@@ -32,7 +32,7 @@ use Koha::CsvProfiles; > use Koha::Exporter::Record; > use Koha::DateUtils qw( dt_from_string output_pref ); > >-my ( $output_format, $timestamp, $dont_export_items, $csv_profile_id, $deleted_barcodes, $clean, $filename, $record_type, $id_list_file, $starting_authid, $ending_authid, $authtype, $starting_biblionumber, $ending_biblionumber, $itemtype, $starting_callnumber, $ending_callnumber, $start_accession, $end_accession, $help ); >+my ( $output_format, $timestamp, $dont_export_items, $csv_profile_id, $deleted_barcodes, $clean, $filename, $record_type, $id_list_file, $starting_authid, $ending_authid, $authtype, $starting_biblionumber, $ending_biblionumber, $itemtype, $starting_callnumber, $ending_callnumber, $start_accession, $end_accession, $homebranch, $holdingbranch, $help ); > GetOptions( > 'format=s' => \$output_format, > 'date=s' => \$timestamp, >@@ -53,6 +53,8 @@ GetOptions( > 'ending_callnumber=s' => \$ending_callnumber, > 'start_accession=s' => \$start_accession, > 'end_accession=s' => \$end_accession, >+ 'homebranch=s' => \$homebranch, >+ 'holdingbranch=s' => \$holdingbranch, > 'h|help|?' => \$help > ) || pod2usage(1); > >@@ -150,6 +152,14 @@ if ( $record_type eq 'bibs' ) { > : ( 'me.itemtype' => $itemtype ) > : () > ), >+ ( $homebranch >+ ? ( "items.homebranch" => $homebranch ) >+ : () >+ ), >+ ( $holdingbranch >+ ? ( "items.holdingbranch" => $holdingbranch ) >+ : () >+ ), > > }; > my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } ); >@@ -310,6 +320,14 @@ Print a brief help message. > > --end_accession=DATE Export biblio with an item accessionned after DATE > >+=item B<--homebranch> >+ >+ --homebranch=BRANCHCODE Export biblio owned by a specific library given by BRANCHCODE >+ >+=item B<--holdingbranch> >+ >+ --holdingbranch=BRANCHCODE Export biblio hold by a specific library given by BRANCHCODE >+ > =back > > =head1 AUTHOR >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20465
:
73164
| 73298