Condition Coverage

File:C4/Search.pm
Coverage:0.0%

line%coveragecondition
2130
ABdec
0X0
100
111
$$result{'hits'} && $$result{'hits'} > 0
2640
ABdec
0X0
100
111
defined $max_results and $offset + $max_results < $hits
3220
Adec
00
11
'C4::Context'->preference('maxRecordsForFacets') || 20
3350
ABdec
0X0
100
111
$scan and $DEBUG
3640
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'
4040
ABdec
0X0
100
111
$sort_by and not $scan
4700
ABdec
0X0
100
111
not $scan and $servers[$i - 1] =~ /biblioserver/
5280
ABCdec
0000
0011
01X1
1XX1
$number_of_facets < 6 or $expanded_facet eq $link_value or $$facets_info{$link_value}{'expanded'}
5390
Adec
00
11
'C4::Context'->preference('FacetLabelTruncationLength') || 20
5470
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'
5730
ABdec
0X0
100
111
$number_of_facets > 6 and $expanded_facet ne $link_value
5770
ABdec
0X0
100
111
$$facets_info{$link_value}{'label_value'} =~ /Libraries/ and 'C4::Context'->preference('singleBranchMode')
7430
ABdec
000
011
1X1
$stem =~ /(and$|or$|not$)/ or length $stem < 3
7570
Adec
00
11
'C4::Context'->preference('QueryStemming') || 0
7580
Adec
00
11
'C4::Context'->preference('QueryWeightFields') || 0
7590
Adec
00
11
'C4::Context'->preference('QueryFuzzy') || 0
7640
ABdec
000
011
1X1
$index eq 'kw' or not $index
7730
ABdec
0X0
100
111
$stemming and $stemmed_operand
10420
Adec
00
11
'C4::Context'->preference('QueryStemming') || 0
10430
Adec
00
11
'C4::Context'->preference('QueryAutoTruncate') || 0
10440
Adec
00
11
'C4::Context'->preference('QueryWeightFields') || 0
10450
Adec
00
11
'C4::Context'->preference('QueryFuzzy') || 0
10460
Adec
00
11
'C4::Context'->preference('QueryRemoveStopwords') || 0
10730
ABdec
0X0
100
111
not $cclq and $query =~ /(?:^|\W)([\w-]+)(,[\w-]+)*[:=]/g
11310
ABdec
000
011
1X1
$operands[$i] =~ /\w(:|=)/ or $scan
11430
ABdec
000
011
1X1
$index eq 'nb' or $index eq 'ns'
11710
ABCdec
0000
0011
01X1
1XX1
$indexes_set or not $index or $index =~ /(st-|phr|ext|wrdl|nb|ns)/
11840
ABdec
0X0
100
111
$stopwords_removed and $DEBUG
13330
ABdec
000
011
1X1
$limit or $query
13500
ABdec
000
011
1X1
$query or $limit
13540
ABdec
000
011
1X1
$query or $limit
14140
ABdec
000
011
1X1
not $search_context or $search_context ne 'intranet'
14720
ABdec
0X0
100
111
$hits and $offset + $results_per_page <= $hits
14980
ABCDdec
0X0X0
0X100
0X111
100X0
10100
10111
11XX1
$search_context eq 'opac' && 'C4::Context'->preference('AuthorisedValueImages') || $search_context eq 'intranet' && 'C4::Context'->preference('StaffAuthorisedValueImages')
15030
ABCDdec
00000
00011
001X1
01XX1
1XXX1
$$oldbiblio{'normalized_isbn'} or $$oldbiblio{'normalized_oclc'} or $$oldbiblio{'normalized_ean'} or $$oldbiblio{'normalized_upc'}
15630
ABdec
000
011
1X1
$marcflavor eq 'MARC21' or $marcflavor eq 'NORMARC'
16460
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'}
16810
ABCDEdec
000000
000011
0001X1
001XX1
01XXX1
1XXXX1
$$item{'wthdrawn'} or $$item{'itemlost'} or $$item{'damaged'} or $$item{'notforloan'} or $items_count > 20
17040
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 ''
17210
ABCDdec
00XX0
010X0
01100
01111
1X0X0
1X100
1X111
!$$item{'damaged'} || 'C4::Context'->preference('AllowHoldsOnDamagedItems') and not $$item{'itemlost'} and not $$item{'withdrawn'}
17560
ABdec
0X0
100
111
$is_opac and $hideatopac_count >= $items_count
17570
ABdec
0X0
100
111
$hidelostitems and $itemlost_count >= $items_count
17780
ABdec
0X0
100
111
not $scan and 'C4::Context'->preference($interface . 'XSLTResultsDisplay')
18110
ABdec
0X0
100
111
'C4::Context'->preference('AlternateHoldingsField') and $items_count == 0
18140
Adec
00
11
'C4::Context'->preference('AlternateHoldingsSeparator') || ' '
18670
ABdec
0X0
100
111
scalar @$itemtypes > 0 and $criteria ne 'itemtype'
21160
ABdec
0X0
100
111
$operator and $left ne 'keyword'
21180
ABdec
0X0
100
111
$operator eq '=' and $right =~ /%/
21380
ABdec
0X0
100
111
$right =~ /^\d+$/ and $value =~ /\D/
22680
Adec
00
11
$sth->fetchrow || 0
23240
ABdec
000
011
1X1
$ordering eq 'author_za' or $ordering eq 'author_dsc'
26320
ABdec
0X0
100
111
defined $isbn and $isbn->is_valid
26670
Adec
00
11
$string ||= '""'