Lines 49-54
my (
Link Here
|
49 |
$starting_biblionumber, |
49 |
$starting_biblionumber, |
50 |
$ending_biblionumber, |
50 |
$ending_biblionumber, |
51 |
$itemtype, |
51 |
$itemtype, |
|
|
52 |
$not_itemtype, |
52 |
$starting_callnumber, |
53 |
$starting_callnumber, |
53 |
$ending_callnumber, |
54 |
$ending_callnumber, |
54 |
$start_accession, |
55 |
$start_accession, |
Lines 75-80
GetOptions(
Link Here
|
75 |
'starting_biblionumber=s' => \$starting_biblionumber, |
76 |
'starting_biblionumber=s' => \$starting_biblionumber, |
76 |
'ending_biblionumber=s' => \$ending_biblionumber, |
77 |
'ending_biblionumber=s' => \$ending_biblionumber, |
77 |
'itemtype=s' => \$itemtype, |
78 |
'itemtype=s' => \$itemtype, |
|
|
79 |
'not_itemtype=s' => \$not_itemtype, |
78 |
'starting_callnumber=s' => \$starting_callnumber, |
80 |
'starting_callnumber=s' => \$starting_callnumber, |
79 |
'ending_callnumber=s' => \$ending_callnumber, |
81 |
'ending_callnumber=s' => \$ending_callnumber, |
80 |
'start_accession=s' => \$start_accession, |
82 |
'start_accession=s' => \$start_accession, |
Lines 253-259
if ( $record_type eq 'bibs' ) {
Link Here
|
253 |
: ( 'me.itemtype' => $itemtype ) |
255 |
: ( 'me.itemtype' => $itemtype ) |
254 |
: () |
256 |
: () |
255 |
), |
257 |
), |
256 |
|
258 |
( $not_itemtype |
|
|
259 |
? |
260 |
C4::Context->preference('item-level_itypes') |
261 |
? ( 'items.itype' => { '!=' => $not_itemtype } ) |
262 |
: ( 'me.itemtype' => { '!=' => $not_itemtype } ) |
263 |
: () |
264 |
), |
257 |
}; |
265 |
}; |
258 |
my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } ); |
266 |
my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } ); |
259 |
while ( my $biblioitem = $biblioitems->next ) { |
267 |
while ( my $biblioitem = $biblioitems->next ) { |
Lines 412-417
Print a brief help message.
Link Here
|
412 |
|
420 |
|
413 |
--itemtype=ITEMTYPE Export biblio from the given ITEMTYPE |
421 |
--itemtype=ITEMTYPE Export biblio from the given ITEMTYPE |
414 |
|
422 |
|
|
|
423 |
=item B<--not_itemtype> |
424 |
|
425 |
--not_itemtype=ITEMTYPE Don't export biblios with the given ITEMTYPE |
426 |
|
415 |
=item B<--starting_callnumber> |
427 |
=item B<--starting_callnumber> |
416 |
|
428 |
|
417 |
--starting_callnumber=CALLNUMBER Export biblio with callnumber >=CALLNUMBER |
429 |
--starting_callnumber=CALLNUMBER Export biblio with callnumber >=CALLNUMBER |
418 |
- |
|
|