Condition Coverage

File:C4/Search.pm
Coverage:0.0%

line%coveragecondition
2140
ABdec
0X0
100
111
$$result{'hits'} && $$result{'hits'} > 0
2650
ABdec
0X0
100
111
defined $max_results and $offset + $max_results < $hits
3230
Adec
00
11
'C4::Context'->preference('maxRecordsForFacets') || 20
3360
ABdec
0X0
100
111
$scan and $DEBUG
3650
ABdec
000
011
1X1
$sort eq 'title_za' or $sort eq 'title_dsc'
0
ABdec
000
011
1X1
$sort eq 'author_az' or $sort eq 'author_asc'
0
ABdec
000
011
1X1
$sort eq 'author_za' or $sort eq 'author_dsc'
0
ABdec
000
011
1X1
$sort eq 'title_az' or $sort eq 'title_asc'
4050
ABdec
0X0
100
111
$sort_by and not $scan
4710
ABdec
0X0
100
111
not $scan and $servers[$i - 1] =~ /biblioserver/
5360
ABCdec
0000
0011
01X1
1XX1
$number_of_facets < 6 or $expanded_facet eq $link_value or $$facets_info{$link_value}{'expanded'}
5470
Adec
00
11
'C4::Context'->preference('FacetLabelTruncationLength') || 20
5550
ABCDdec
0XXX0
10XX0
110X0
11100
11111
defined $branches and ref $branches eq 'HASH' and defined $$branches{$one_facet} and ref $$branches{$one_facet} eq 'HASH'
5810
ABdec
0X0
100
111
$number_of_facets > 6 and $expanded_facet ne $link_value
5850
ABdec
0X0
100
111
$$facets_info{$link_value}{'label_value'} =~ /Libraries/ and 'C4::Context'->preference('singleBranchMode')
7510
ABdec
000
011
1X1
$stem =~ /(and$|or$|not$)/ or length $stem < 3
7650
Adec
00
11
'C4::Context'->preference('QueryStemming') || 0
7660
Adec
00
11
'C4::Context'->preference('QueryWeightFields') || 0
7670
Adec
00
11
'C4::Context'->preference('QueryFuzzy') || 0
7720
ABdec
000
011
1X1
$index eq 'kw' or not $index
7810
ABdec
0X0
100
111
$stemming and $stemmed_operand
10500
Adec
00
11
'C4::Context'->preference('QueryStemming') || 0
10510
Adec
00
11
'C4::Context'->preference('QueryAutoTruncate') || 0
10520
Adec
00
11
'C4::Context'->preference('QueryWeightFields') || 0
10530
Adec
00
11
'C4::Context'->preference('QueryFuzzy') || 0
10540
Adec
00
11
'C4::Context'->preference('QueryRemoveStopwords') || 0
10810
ABdec
0X0
100
111
not $cclq and $query =~ /(?:^|\W)([\w-]+)(,[\w-]+)*[:=]/g
11390
ABdec
000
011
1X1
$operands[$i] =~ /\w(:|=)/ or $scan
11510
ABdec
000
011
1X1
$index eq 'nb' or $index eq 'ns'
11790
ABCdec
0000
0011
01X1
1XX1
$indexes_set or not $index or $index =~ /(st-|phr|ext|wrdl|nb|ns)/
11920
ABdec
0X0
100
111
$stopwords_removed and $DEBUG
13420
ABdec
000
011
1X1
$limit or $query
13590
ABdec
000
011
1X1
$query or $limit
13630
ABdec
000
011
1X1
$query or $limit
14230
ABdec
000
011
1X1
not $search_context or $search_context ne 'intranet'
14810
ABdec
0X0
100
111
$hits and $offset + $results_per_page <= $hits
15070
ABCDdec
0X0X0
0X100
0X111
100X0
10100
10111
11XX1
$search_context eq 'opac' && 'C4::Context'->preference('AuthorisedValueImages') || $search_context eq 'intranet' && 'C4::Context'->preference('StaffAuthorisedValueImages')
15120
ABCDdec
00000
00011
001X1
01XX1
1XXX1
$$oldbiblio{'normalized_isbn'} or $$oldbiblio{'normalized_oclc'} or $$oldbiblio{'normalized_ean'} or $$oldbiblio{'normalized_upc'}
15720
ABdec
000
011
1X1
$marcflavor eq 'MARC21' or $marcflavor eq 'NORMARC'
16540
ABdec
0X0
100
111
$$item{'onloan'} and not C4::Members::GetHideLostItemsPreference($$userenv{'number'}) && $$item{'itemlost'}
0
ABdec
0X0
100
111
C4::Members::GetHideLostItemsPreference($$userenv{'number'}) && $$item{'itemlost'}
16880
ABCDEdec
000000
000011
0001X1
001XX1
01XXX1
1XXXX1
$$item{'wthdrawn'} or $$item{'itemlost'} or $$item{'damaged'} or $$item{'notforloan'} or $items_count > 20
17110
ABCDEFGdec
00000000
00000011
000001X1
00001XX1
0001XXX1
001XXXX1
01XXXXX1
1XXXXXX1
$$item{'wthdrawn'} or $$item{'itemlost'} or $$item{'damaged'} or $$item{'notforloan'} > 0 or $$item{'hideatopac'} or $reservestatus eq 'Waiting' or $transfertwhen ne ''
17280
ABCDdec
00XX0
010X0
01100
01111
1X0X0
1X100
1X111
!$$item{'damaged'} || 'C4::Context'->preference('AllowHoldsOnDamagedItems') and not $$item{'itemlost'} and not $$item{'withdrawn'}
17620
ABdec
0X0
100
111
$is_opac and $hideatopac_count >= $items_count
17630
ABdec
0X0
100
111
$hidelostitems and $itemlost_count >= $items_count
18060
ABdec
0X0
100
111
'C4::Context'->preference('AlternateHoldingsField') and $items_count == 0
18090
Adec
00
11
'C4::Context'->preference('AlternateHoldingsSeparator') || ' '
18350
ABCdec
0XX0
10X0
1100
1111
not $scan and $search_context eq 'opac' and 'C4::Context'->preference('OPACXSLTResultsDisplay')
18790
ABdec
0X0
100
111
scalar @$itemtypes > 0 and $criteria ne 'itemtype'
21280
ABdec
0X0
100
111
$operator and $left ne 'keyword'
21300
ABdec
0X0
100
111
$operator eq '=' and $right =~ /%/
21500
ABdec
0X0
100
111
$right =~ /^\d+$/ and $value =~ /\D/
22800
Adec
00
11
$sth->fetchrow || 0
23360
ABdec
000
011
1X1
$ordering eq 'author_za' or $ordering eq 'author_dsc'
26440
ABdec
0X0
100
111
defined $isbn and $isbn->is_valid
27060
ABdec
000
011
1X1
$field->subfield('3') or $field->subfield('9')
27350
ABdec
0X0
100
111
$$_[0] =~ /[A-z]/ and $$_[0] ne 'a'
27780
Adec
00
11
$string ||= '""'