Bugzilla – Attachment 73164 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]
export_records.pl enchanted with branchcode
export_records.pl.patch (text/plain), 2.50 KB, created by
Giuseppe Passanisi
on 2018-03-23 09:27:33 UTC
(
hide
)
Description:
export_records.pl enchanted with branchcode
Filename:
MIME Type:
Creator:
Giuseppe Passanisi
Created:
2018-03-23 09:27:33 UTC
Size:
2.50 KB
patch
obsolete
>diff --git a/misc/export_records.pl b/misc/export_records.pl >index 6e363686a3..72cd14c2d2 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,7 +152,15 @@ if ( $record_type eq 'bibs' ) { > : ( 'me.itemtype' => $itemtype ) > : () > ), >- >+ ( $homebranch >+ ? ( "items.homebranch" => $homebranch ) >+ : () >+ ), >+ ( $holdingbranch >+ ? ( "items.holdingbranch" => $holdingbranch ) >+ : () >+ ), >+ > > }; > my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } ); > while ( my $biblioitem = $biblioitems->next ) { >@@ -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
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