Branch Coverage

File:C4/Search.pm
Coverage:0.2%

line%coveragebranch
4450TF$ENV{'DEBUG'} ? :
1000TFif ($$result{'isbn'}) { }
1150TFif $$result{'itemtype'}
1170TFif ($$result{'author'})
1310TFif (not defined $error)
1380TFif ($result)
2120TFif ('C4::Context'->preference('NoZebra')) { }
2140TF$$result{'hits'} && $$result{'hits'} > 0 ? :
2200TFunless $query
2220TFdefined $servers ? :
2430TFif $zconns[$i]->errcode
2450TFif ($@)
2590TFif ($event == ZOOM::Event::ZEND())
2610TFdefined $offset ? :
2650TFif (defined $max_results and $offset + $max_results < $hits)
3330TF$servers[$i] =~ /biblioserver/ ? :
3360TFif $scan and $DEBUG
3400TFif ($query_type) { }
0TFelsif ($scan) { }
3410TFif ($query_type =~ /^ccl/) { }
0TFelsif ($query_type =~ /^cql/) { }
0TFelsif ($query_type =~ /^pqf/) { }
3570TFif ($@)
3650TFif ($sort eq 'author_az' or $sort eq 'author_asc') { }
0TFelsif ($sort eq 'author_za' or $sort eq 'author_dsc') { }
0TFelsif ($sort eq 'popularity_asc') { }
0TFelsif ($sort eq 'popularity_dsc') { }
0TFelsif ($sort eq 'call_number_asc') { }
0TFelsif ($sort eq 'call_number_dsc') { }
0TFelsif ($sort eq 'pubdate_asc') { }
0TFelsif ($sort eq 'pubdate_dsc') { }
0TFelsif ($sort eq 'acqdate_asc') { }
0TFelsif ($sort eq 'acqdate_dsc') { }
0TFelsif ($sort eq 'title_az' or $sort eq 'title_asc') { }
0TFelsif ($sort eq 'title_za' or $sort eq 'title_dsc') { }
4020TFif $sort_by
4050TFif ($sort_by and not $scan)
4060TFif ($results[$i]->sort('yaz', $sort_by) < 0)
4150TFif ($ev == ZOOM::Event::ZEND())
4160TFunless $results[$i - 1]
4180TFif ($size > 0)
4240TFif ($offset + $results_per_page <= $size) { }
4350TFif ($scan) { }
4470TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
4710TFif (not $scan and $servers[$i - 1] =~ /biblioserver/)
4730TF$size > $facets_maxrecs ? :
4760TFunless $$facets[$k]
5000TFunless ($data ~~ \@used_datas)
5200TFif ($servers[$i - 1] =~ /biblioserver/)
5360TFif ($number_of_facets < 6 or $expanded_facet eq $link_value or $$facets_info{$link_value}{'expanded'})
5490TFif length $facet_label_value > $facet_max_length
5540TFif ($link_value =~ /branch/)
5550TFif (defined $branches and ref $branches eq 'HASH' and defined $$branches{$one_facet} and ref $$branches{$one_facet} eq 'HASH') { }
5800TFunless ($$facets_info{$link_value}{'expanded'})
5810TFif $number_of_facets > 6 and $expanded_facet ne $link_value
5850TFunless $$facets_info{$link_value}{'label_value'} =~ /Libraries/ and 'C4::Context'->preference('singleBranchMode')
6280TFif (exists $$hit{'md-work-author'})
6310TFdefined $work_author ? :
6380TFif (exists $$hit{'count'})
6790TFif (not $index =~ /phr|ext/)
6870TFif $_ =~ /(and|or|not)/
6880TFif (my($matched) = $operand =~ /([^\X\p{isAlnum}]\Q$_\E[^\X\p{isAlnum}]|[^\X\p{isAlnum}]\Q$_\E$|^\Q$_\E[^\X\p{isAlnum}])/gi)
7070TFif ($word =~ s/^\*([^\*]+)\*$/$1/) { }
0TFelsif ($word =~ s/^\*([^\*]+)$/$1/) { }
0TFelsif ($word =~ s/^([^\*]+)\*$/$1/) { }
0TFelsif (index($word, '*') < 0) { }
7400TFif $operand =~ /\d/
7510TFunless $stem =~ /(and$|or$|not$)/ or length $stem < 3
7550TFif $DEBUG
7720TFif ($index eq 'kw' or not $index) { }
0TFelsif ($index eq 'bc') { }
0TFelsif ($index eq 'an') { }
0TFelsif ($index =~ /,/) { }
7790TFif $fuzzy_enabled
7810TFif $stemming and $stemmed_operand
10410TFif $DEBUG
10440TF$operators ? :
10450TF$indexes ? :
10460TF$operands ? :
10470TF$limits ? :
10480TF$sort_by ? :
10570TFif ('C4::Context'->preference('NoZebra'))
10800TFif (not $query =~ /\s*ccl=/)
10850TFif $cclq
10900TFif ($query =~ /^ccl=/)
10940TFif (@limits)
10990TFif ($query =~ /^cql=/)
11020TFif ($query =~ /^pqf=/) { }
11320TFif ($operands[$i])
11390TFif ($operands[$i] =~ /\w(:|=)/ or $scan) { }
11510TFif ($index eq 'yr') { }
0TFelsif ($index eq 'acqdate') { }
0TFelsif ($index eq 'nb' or $index eq 'ns') { }
11730TFif (not $index)
11790TFunless ($indexes_set or not $index or $index =~ /(st-|phr|ext|wrdl|nb|ns)/)
11880TFif ($remove_stopwords)
11910TFif $DEBUG
11920TFif $stopwords_removed and $DEBUG
11960TFif ($auto_truncation)
11970TFunless ($index =~ /(st-|phr|ext)/)
11990TFindex($_, '*') > 0 ? :
12020TFif $DEBUG
12110TFif $DEBUG
12160TFif (scalar(@$righttruncated) + scalar(@$lefttruncated) + scalar(@$rightlefttruncated) > 0)
12250TFif (scalar @$nontruncated)
12290TFif (scalar @$righttruncated)
12300TFif $previous_truncation_operand
12340TFif (scalar @$lefttruncated)
12350TFif $previous_truncation_operand
12390TFif (scalar @$rightlefttruncated)
12400TFif $previous_truncation_operand
12450TFif $truncated_operand
12460TFif $DEBUG
12500TFif $stemming
12530TFif $DEBUG
12570TFif ($weight_fields)
12630TFif $DEBUG
12660TFif ($previous_operand) { }
12690TFif ($operators[$i - 1]) { }
12710TFunless $indexes_set
12740TFif $index
12750TFif $operands[$i]
12830TFunless $indexes_set
12850TFif $index
12860TFif $operands[$i]
12950TFunless $indexes_set
12980TFif $index
12990TFif $operands[$i]
13050TFif $DEBUG
13110TFif ($this_limit =~ /available/) { }
0TFelsif ($this_limit =~ /mc/) { }
13260TFif ($this_limit =~ /mc-ccode:/)
13330TFif $group_OR_limits
13340TFif $group_OR_limits
13420TFif $limit or $query
13450TFif ($this_limit =~ /^branch:(.+)/) { }
13480TFif (defined $branchname) { }
13580TFif ($group_OR_limits)
13590TFif $query or $limit
13620TFif ($availability_limit)
13630TFif $query or $limit
13900TFif ($DEBUG)
14230TFif not $search_context or $search_context ne 'intranet'
14250TFif ($search_context eq 'opac')
14810TFif ($hits and $offset + $results_per_page <= $hits) { }
14950TF$bibliotag < 10 ? :
0TF$scan ? :
15070TF$search_context eq 'opac' && 'C4::Context'->preference('AuthorisedValueImages') || $search_context eq 'intranet' && 'C4::Context'->preference('StaffAuthorisedValueImages') ? :
15120TFif $$oldbiblio{'normalized_isbn'} or $$oldbiblio{'normalized_oclc'} or $$oldbiblio{'normalized_ean'} or $$oldbiblio{'normalized_upc'}
15190TFif ($itemtypes{$$oldbiblio{'itemtype'}}{'summary'})
15280TFif ($marcrecord->field($1))
15370TFif $$tags{$tag} > $max
15470TFif ($marcrecord->field($1))
15510TFif (not utf8::is_utf8($subfieldvalue))
15720TFif ($marcflavor eq 'MARC21' or $marcflavor eq 'NORMARC') { }
0TFelsif ($marcflavor eq 'UNIMARC') { }
15800TFif (!$hostbiblionumber eq undef)
15830TFif (!$hostbiblio eq undef)
15860TFif ($hostitem->subfield('9') eq $linkeditemnumber)
15890TFif (!$linkeditem eq undef)
16210TF$maxitems_pref ? :
16340TFif ($is_opac)
16400TF'C4::Context'->preference('HomeOrHoldingBranch') eq 'homebranch' ? :
16410TF'C4::Context'->preference('HomeOrHoldingBranch') eq 'homebranch' ? :
16440TFif ($$item{$hbranch}) { }
0TFelsif ($$item{$otherbranch}) { }
16540TFif ($$item{'onloan'} and not C4::Members::GetHideLostItemsPreference($$userenv{'number'}) && $$item{'itemlost'}) { }
16580TFif $$item{$hbranch}
16640TFif ($$item{'itemlost'}) { }
16760TFif ($$item{'notforloan'} == -1)
16880TFunless ($$item{'wthdrawn'} or $$item{'itemlost'} or $$item{'damaged'} or $$item{'notforloan'} or $items_count > 20)
17110TFif ($$item{'wthdrawn'} or $$item{'itemlost'} or $$item{'damaged'} or $$item{'notforloan'} > 0 or $$item{'hideatopac'} or $reservestatus eq 'Waiting' or $transfertwhen ne '') { }
17190TFif $$item{'wthdrawn'}
17200TFif $$item{'itemlost'}
17210TFif $$item{'damaged'}
17220TFif $$item{'hideatopac'}
17230TFif $transfertwhen ne ''
17240TFif $reservestatus eq 'Waiting'
17280TFif (!$$item{'damaged'} || 'C4::Context'->preference('AllowHoldsOnDamagedItems') and not $$item{'itemlost'} and not $$item{'withdrawn'})
17410TF$transfertwhen ne '' ? :
17420TF$reservestatus ? :
17430TFif $notforloan_authorised_value
17440TFif $$item{$hbranch}
17520TFif $$item{$hbranch}
17610TFif ($items_count > 0)
17620TFif $is_opac and $hideatopac_count >= $items_count
17630TFif $hidelostitems and $itemlost_count >= $items_count
17670TFif ++$onloanitemscount > $maxitems
17710TFif ++$otheritemscount > $maxitems
17750TFif ++$availableitemscount > $maxitems
17800TFif (not 'C4::Context'->preference('item-level_itypes'))
17810TFif ($itemtypes{$$oldbiblio{'itemtype'}}{'notforloan'})
17850TFunless $can_place_holds
17860TFif $items_count > 1
17920TFif $available_count > 1
17940TFif $onloan_count > 1
17960TFif $other_count > 1
18060TFif ('C4::Context'->preference('AlternateHoldingsField') and $items_count == 0)
18180TFif (index($subfields, $$subfield[0]) >= 0)
18190TFif length $holding{'holding'} > 0
18240TFif ($havesubfield)
18350TFif (not $scan and $search_context eq 'opac' and 'C4::Context'->preference('OPACXSLTResultsDisplay'))
18370TFif $debug
18790TFif (scalar @$itemtypes > 0 and $criteria ne 'itemtype')
18800TFif ('C4::Context'->preference('item-level_itypes')) { }
18880TFif ($criteria =~ /itemtype/) { }
0TFelsif ($criteria =~ /itemcallnumber/) { }
18890TFif ('C4::Context'->preference('item-level_itypes')) { }
18950TFif (scalar @$itemtypes == 0)
19080TFunless scalar @loopcriteria > 0
19110TFunless scalar @loopcriteria > 0
19140TFif ($orderby =~ /date_desc/) { }
19310TFif ($@) { }
19390TFif scalar @{$cell{'loopdata'};} > 0
19620TFif $DEBUG
19640TFif $DEBUG
19820TFif $DEBUG
19870TFunless $server
19910TFif ($string =~ /"/)
19940TFif $DEBUG
20050TFif ($string =~ /^\s*\((.*)\)(( and | or | not | AND | OR | NOT )(.*))?/)
20090TFif $DEBUG
20130TFif ($operator) { }
20190TFif ($operator eq ' and ') { }
0TFelsif ($operator eq ' or ') { }
0TFelsif ($operator eq ' not ') { }
20360TFif $DEBUG
20400TFif ($string =~ /(.*?)( and | or | not | AND | OR | NOT )(.*)/)
20450TFif $DEBUG
20490TFif ($operator) { }
20520TFif $commacontent
20530TFif $commacontent
20540TFif $DEBUG
20570TFif $DEBUG
20580TFif $DEBUG
20620TFif ($operator eq ' and ') { }
0TFelsif ($operator eq ' or ') { }
0TFelsif ($operator eq ' not ') { }
20820TFif $commacontent
20860TFif $DEBUG
20920TFif ($string =~ /(.*)(>=|<=)(.*)/) { }
21010TFunless ($operator)
21020TFif ($string =~ /(.*)(>|<|=)(.*)/) { }
21060TFif $DEBUG
21190TFif $left =~ /^ti$/
21200TFif $left =~ /^au$/
21210TFif $left =~ /^pb$/
21220TFif $left =~ /^su$/
21230TFif $left =~ /^an$/
21240TFif $left =~ /^kw$/
21250TFif $left =~ /^mc$/
21260TFif $DEBUG
21280TFif ($operator and $left ne 'keyword') { }
21300TFif $operator eq '=' and $right =~ /%/
21340TFif $DEBUG
21420TFunless $_
21430TFif $DEBUG
21440TFunless $sth->execute($server, $left, $_)
21500TFunless $right =~ /^\d+$/ and $value =~ /\D/
21520TF$value =~ /\D/ ? :
0TFif $DEBUG
21580TFif ($results) { }
21590TFif $DEBUG
21740TFif 'C4::Context'->stopwords->{uc $_}
21750TFif $DEBUG
21770TFunless $_
21840TFif ($results) { }
21880TFif $DEBUG
21930TFif $DEBUG
21960TFif $DEBUG
22030TFif $DEBUG
22150TFif $value =~ /(.*)-(\d+)$/
22160TFif ($rightresult =~ /\Q$value\E-(\d+);/)
22170TF$1 > $countvalue ? :
22220TFif $DEBUG
22400TFif $value =~ /(.*)-\d+$/
22410TFunless ($rightresult =~ "$value-")
22580TFif $DEBUG
22620TFunless $results_per_page
22630TFunless $offset
22690TFif ($ordering =~ /popularity/) { }
0TFelsif ($ordering =~ /author/) { }
0TFelsif ($ordering =~ /callnumber/) { }
0TFelsif ($ordering =~ /pubdate/) { }
0TFelsif ($ordering =~ /title/) { }
22930TFif ($ordering eq 'popularity_dsc') { }
23200TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
23220TFunless $author
23360TFif ($ordering eq 'author_za' or $ordering eq 'author_dsc') { }
23650TFunless $callnumber_tag
23670TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
23810TFif ($ordering eq 'call_number_dsc') { }
24170TFif ($ordering eq 'pubdate_dsc') { }
24550TFif ($ordering eq 'title_az') { }
24670TFif $numbers < $results_per_page
25210TFif $numbers < $results_per_page
25310TFif $$result_hash{'RECORDS'}[$counter]
26440TFif (defined $isbn and $isbn->is_valid) { }
26460TFif not ref $bibrec
26490TFif not ref $bibrec
26550TFif defined $$bibrec{$field}
27060TFif $field->subfield('3') or $field->subfield('9')
27100TFif $$_[0] =~ /[A-z]/
27130TFif ($error)
27170TFif (@{$results;} == 1) { }
0TFelsif (@{$results;} > 1) { }
27320TFunless $authtypedata
27350TFif $$_[0] =~ /[A-z]/ and $$_[0] ne 'a'
27440TFif ('C4::Context'->preference('marcflavour') eq 'MARC21')
27680TFif ($fieldname =~ /\./) { }
27710TFif $DEBUG
27720TF$string ? :
27920TFif ($ev == ZOOM::Event::ZEND())
27930TFunless $results[$i - 1]
27950TFif ($size > 0)