Condition Coverage

File:C4/Items.pm
Coverage:0.0%

line%coveragecondition
6440
ABdec
0X0
100
111
exists $$item_ref{'barcode'} and defined $$item_ref{'barcode'}
6470
ABdec
000
011
1X1
not exists $$item_ref{'itemnumber'} or $$item_ref{'itemnumber'} != $existing_itemnumber
6550
ABdec
0X0
100
111
exists $$item_ref{'homebranch'} and defined $$item_ref{'homebranch'}
6650
ABdec
0X0
100
111
exists $$item_ref{'holdingbranch'} and defined $$item_ref{'holdingbranch'}
7390
ABdec
0X0
100
111
$tag and $subfield
8270
ABdec
0X0
100
111
$tag and $subfield
9230
ABdec
0X0
100
111
defined $orderby and grep $orderby, @ordervalues
10280
ABdec
0X0
100
111
not $offset and $size
10850
Adec
00
11
$dbh->prepare('SELECT * FROM items WHERE items.biblioitemnumber = ?') || die($dbh->errstr)
11110
Adec
00
11
$dbh->prepare($query2) || die($dbh->errstr)
12200
ABdec
0X0
100
111
$userenv and $$userenv{'flags'} % 2 != 1
13290
ABdec
000
011
1X1
$$a{'publisheddate'} || $$a{'enumchron'}
0
ABdec
000
011
1X1
$$b{'publisheddate'} || $$b{'enumchron'}
14110
ABdec
000
011
1X1
'C4::Context'->preference('marcflavour') eq 'MARC21' or 'C4::Context'->preference('marcflavour') eq 'NORMARC'
15450
ABdec
000
011
1X1
$marcflavor eq 'MARC21' or $marcflavor eq 'NORMARC'
17440
ABdec
0X0
100
111
exists $$authorised_values{$$this_authorised_value{'category'}} and $$authorised_values{$$this_authorised_value{'category'}} eq $$this_authorised_value{'authorised_value'}
18080
ABdec
0X0
100
111
defined $$itemrecord{$_} && $$itemrecord{$_} ne ''
18140
Adec
00
11
GetFrameworkCode($biblionumber) || ''
18170
ABdec
0X0
100
111
defined $unlinked_item_subfields and $#$unlinked_item_subfields > -1
19450
ABCdec
0XX0
1000
1011
11X1
exists $$item{'notforloan'} and !defined($$item{'notforloan'}) || $$item{'notforloan'} eq ''
19490
ABCdec
0XX0
1000
1011
11X1
exists $$item{'damaged'} and !defined($$item{'damaged'}) || $$item{'damaged'} eq ''
19530
ABCdec
0XX0
1000
1011
11X1
exists $$item{'itemlost'} and !defined($$item{'itemlost'}) || $$item{'itemlost'} eq ''
19570
ABCdec
0XX0
1000
1011
11X1
exists $$item{'wthdrawn'} and !defined($$item{'wthdrawn'}) || $$item{'wthdrawn'} eq ''
19610
ABdec
0X0
100
111
exists $$item{'location'} and not exists $$item{'permanent_location'}
20410
ABdec
000
011
1X1
$$item{'dateaccessioned'} ||= 'C4::Dates'->new->output('iso')
20420
Adec
00
11
$$item{$_} ||= 0
20990
ABdec
000
011
1X1
$$item{'datelastseen'} || $today
0
ABdec
000
011
1X1
$$item{'replacementpricedate'} || $today
22060
Adec
00
11
'C4::Context'->preference('HomeOrHoldingBranch') or 'homebranch'
0
ABCdec
0XX0
10X0
1100
1111
not 'C4::Context'->userenv->{'flags'} & 1 and 'C4::Context'->preference('IndependantBranches') and 'C4::Context'->userenv->{'branch'} ne $$item{'C4::Context'->preference('HomeOrHoldingBranch') or 'homebranch'}
23210
ABdec
0X0
100
111
defined $$item{$_} && $$item{$_} ne ''
23280
ABdec
0X0
100
111
defined $tag and defined $subfield
23350
ABCdec
0XX0
10X0
1100
1111
defined $unlinked_item_subfields and ref $unlinked_item_subfields eq 'ARRAY' and $#$unlinked_item_subfields > -1
23920
ABCdec
0XX0
10X0
1100
1111
defined $$subfield[1] and $$subfield[1] ne '' and not $$marcstructure{$tag}{$$subfield[0]}{'kohafield'}
24120
ABCdec
0XX0
10X0
1100
1111
defined $unlinked_item_subfields and ref $unlinked_item_subfields eq 'ARRAY' and $#$unlinked_item_subfields > -1
24330
ABdec
0X0
100
111
defined $xml and $xml ne ''
25930
ABdec
0X0
100
111
$$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.itemcallnumber' and 'C4::Context'->preference('itemcallnumber')
26040
ABCdec
0XX0
10X0
1100
1111
$$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.itemcallnumber' and $defaultvalues and $$defaultvalues{'callnumber'}
26150
ABCDdec
00XX0
010X0
01100
01111
1X0X0
1X100
1X111
$$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.holdingbranch' || $$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.homebranch' and $defaultvalues and $$defaultvalues{'branchcode'}
26260
ABCdec
0XX0
10X0
1100
1111
$$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.location' and $defaultvalues and $$defaultvalues{'location'}
26340
ABdec
0X0
100
111
500 <= $tag and $tag < 600
0
ABCDdec
000X0
00100
00111
01XX1
1XXX1
length $defaultvalue > 100 or 'C4::Context'->preference('marcflavour') eq 'UNIMARC' and (300 <= $tag and $tag < 400 and $subfield eq 'a') or 'C4::Context'->preference('marcflavour') eq 'MARC21' and (500 <= $tag and $tag < 600)
0
ABCdec
0XX0
10X0
1100
1111
300 <= $tag and $tag < 400 and $subfield eq 'a'
0
ABdec
0X0
100
111
'C4::Context'->preference('marcflavour') eq 'UNIMARC' and (300 <= $tag and $tag < 400 and $subfield eq 'a')
26410
ABdec
0X0
100
111
'C4::Context'->preference('IndependantBranches') and 'C4::Context'->userenv->{'flags'} % 2 != 1
26800
ABdec
000
011
1X1
$$class_sources{$class_source}{'used'} or $class_source eq $default_source
27470
ABdec
0X0
100
111
$itemrecord and $itemrecord->field($itemtagfield)