Lines 105-113
if ( $op eq "export" ) {
Link Here
|
105 |
# No need to retrieve the record_ids if we already get them |
105 |
# No need to retrieve the record_ids if we already get them |
106 |
unless ( @record_ids ) { |
106 |
unless ( @record_ids ) { |
107 |
if ( $record_type eq 'bibs' ) { |
107 |
if ( $record_type eq 'bibs' ) { |
|
|
108 |
|
109 |
my %it_map = map { $_->itemtype => 1 } Koha::ItemTypes->search->as_list; |
110 |
my @itemtypes = map { $it_map{$_} ? $_ : () } $query->multi_param('itemtype'); #Validate inputs against map |
111 |
|
108 |
my $starting_biblionumber = $query->param("StartingBiblionumber"); |
112 |
my $starting_biblionumber = $query->param("StartingBiblionumber"); |
109 |
my $ending_biblionumber = $query->param("EndingBiblionumber"); |
113 |
my $ending_biblionumber = $query->param("EndingBiblionumber"); |
110 |
my $itemtype = $query->param("itemtype"); |
|
|
111 |
my $start_callnumber = $query->param("start_callnumber"); |
114 |
my $start_callnumber = $query->param("start_callnumber"); |
112 |
my $end_callnumber = $query->param("end_callnumber"); |
115 |
my $end_callnumber = $query->param("end_callnumber"); |
113 |
my $start_accession = |
116 |
my $start_accession = |
Lines 148-158
if ( $op eq "export" ) {
Link Here
|
148 |
) |
151 |
) |
149 |
: (), |
152 |
: (), |
150 |
( @branchcodes ? ( 'items.homebranch' => { in => \@branchcodes } ) : () ), |
153 |
( @branchcodes ? ( 'items.homebranch' => { in => \@branchcodes } ) : () ), |
151 |
( $itemtype |
154 |
( @itemtypes |
152 |
? |
155 |
? |
153 |
C4::Context->preference('item-level_itypes') |
156 |
C4::Context->preference('item-level_itypes') |
154 |
? ( 'items.itype' => $itemtype ) |
157 |
? ( 'items.itype' => { in => \@itemtypes } ) |
155 |
: ( 'me.itemtype' => $itemtype ) |
158 |
: ( 'me.itemtype' => { in => \@itemtypes } ) |
156 |
: () |
159 |
: () |
157 |
), |
160 |
), |
158 |
|
161 |
|
159 |
- |
|
|