View | Details | Raw Unified | Return to bug 17622
Collapse All | Expand All

(-)a/misc/export_records.pl (-1 / +9 lines)
Lines 149-155 if ( $record_type eq 'bibs' ) { Link Here
149
            ),
149
            ),
150
150
151
        };
151
        };
152
        my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } );
152
153
        my $join_on_items =
154
             $starting_callnumber
155
          || $ending_callnumber
156
          || $start_accession
157
          || $end_accession
158
          || ( $itemtype && C4::Context->preference('item-level_itypes') );
159
160
        my $biblioitems = Koha::Biblioitems->search( $conditions, { ( $join_on_items ? ( join => 'items' ) : () ), columns => 'biblionumber' } );
153
        while ( my $biblioitem = $biblioitems->next ) {
161
        while ( my $biblioitem = $biblioitems->next ) {
154
            push @record_ids, $biblioitem->biblionumber;
162
            push @record_ids, $biblioitem->biblionumber;
155
        }
163
        }
(-)a/tools/export.pl (-2 / +10 lines)
Lines 144-150 if ( $op eq "export" ) { Link Here
144
                    ),
144
                    ),
145
145
146
                };
146
                };
147
                my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items', columns => 'biblionumber' } );
147
148
                my $join_on_items =
149
                     @branchcodes
150
                  || $start_callnumber
151
                  || $end_callnumber
152
                  || $start_accession
153
                  || $end_accession
154
                  || ( $itemtype && C4::Context->preference('item-level_itypes') );
155
156
                my $biblioitems = Koha::Biblioitems->search( $conditions, { ( $join_on_items ? ( join => 'items' ) : () ), columns => 'biblionumber' } );
148
                while ( my $biblioitem = $biblioitems->next ) {
157
                while ( my $biblioitem = $biblioitems->next ) {
149
                    push @record_ids, $biblioitem->biblionumber;
158
                    push @record_ids, $biblioitem->biblionumber;
150
                }
159
                }
151
- 

Return to bug 17622