Branch Coverage

File:C4/Items.pm
Coverage:0.0%

line%coveragebranch
1440TFif ($itemnumber) { }
1580TFif ($serial)
1640TFif (not $$data{'itype'})
1870TFunless ($itemnumber)
2460TF@_ ? :
2470TF@_ ? :
2490TFif (@_)
2630TFunless ($$item{'itype'})
2740TFif 'C4::Context'->preference('CataloguingLog')
3530TFif (%item_errors)
3620TFif $error
3660TFif 'C4::Context'->preference('CataloguingLog')
4520TFunless exists $$item{$item_field}
4910TFunless (defined $biblionumber)
4950TF@_ ? :
4960TF@_ ? :
4990TFif (@_)
5040TFunless $$item{'itemnumber'} = $itemnumber
5060TFif $$item{'itemlost'}
5240TFif 'C4::Context'->preference('CataloguingLog')
5930TFif 'C4::Context'->preference('CataloguingLog')
6450TFif (exists $$item_ref{'barcode'} and defined $$item_ref{'barcode'})
6470TFif ($existing_itemnumber)
6480TFif (not exists $$item_ref{'itemnumber'} or $$item_ref{'itemnumber'} != $existing_itemnumber)
6560TFif (exists $$item_ref{'homebranch'} and defined $$item_ref{'homebranch'})
6580TFunless (defined $branch_name)
6660TFif (exists $$item_ref{'holdingbranch'} and defined $$item_ref{'holdingbranch'})
6680TFunless (defined $branch_name)
7370TFunless $fwk
7400TFif ($tag and $subfield)
7510TFif (my($authorisedvaluecat) = $sth->fetchrow) { }
8250TFunless $fwk
8280TFif ($tag and $subfield)
8380TFif (my($authorisedvaluecat) = $sth->fetchrow) { }
9240TFif (defined $orderby and grep $orderby, @ordervalues)
9670TFif ($statushash)
9690TFif (scalar @{$$statushash{$authvfield};} > 0)
9760TFif ($minlocation)
9810TFif ($maxlocation)
9860TFif ($datelastseen)
9920TFif ($location)
9970TFif ($branchcode)
9980TFif ($branch eq 'homebranch') { }
10060TFif ($itemtype)
10110TFif ($ignoreissued)
10160TFif (@where_strings)
10270TFif $offset
10290TFif (not $offset and $size)
10900TFunless $sth->execute($bibitem)
10980TFif (my $data2 = $sth2->fetchrow_hashref) { }
11130TFunless $sth2->execute($$data{'itemnumber'})
11720TF'C4::Context'->preference('item-level_itypes') ? :
12150TFif (my $idata = $isth->fetchrow_hashref)
12220TFif ('C4::Context'->preference('IndependantBranches'))
12240TFif ($userenv and $$userenv{'flags'} % 2 != 1)
12250TFif $$idata{'bcode'} ne $$userenv{'branch'}
12290TFif ($$data{'serial'})
12400TFif (my $bdata = $bsth->fetchrow_hashref)
12550TFif ($authorised_valuecode)
12770TFif ($authorised_valuecode)
12860TFif (my $rstdata = $restrictedstatus->fetchrow_hashref)
13020TFif ($authorised_valuecode)
13230TFif $$data2{'timestamp'}
13240TFif $$data2{'cardnumber'}
13250TFif $$data2{'borrowernumber'}
13320TFif ($serial) { }
14150TFif ('C4::Context'->preference('marcflavour') eq 'MARC21' or 'C4::Context'->preference('marcflavour') eq 'NORMARC') { }
0TFelsif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
14220TFif ($$hostitemInfo{'itemnumber'} eq $linkeditemnumber)
14340TFif ($$hostitemInfo{'itemnumber'} eq $linkeditemnumber)
14550TF'C4::Context'->preference('item-level_itypes') ? :
14620TFif $number_of_branches
14680TFif $number_of_itemtypes
15490TFif ($marcflavor eq 'MARC21' or $marcflavor eq 'NORMARC') { }
0TFelsif ($marcflavor eq 'UNIMARC') { }
15630TFif (my $itemnumbers = get_itemnumbers_of($hostbiblionumber)->{$hostbiblionumber})
15680TFif ($itemnumber eq $linkeditemnumber)
16320TFif ($@)
16440TFif (exists $$item{$field}) { }
16510TFunless defined $val
16540TFif (any sub { $val eq $_; } , @{$$hidingrules{$field};})
17090TFif (exists $$iteminfo{$field})
17480TFif (exists $$authorised_values{$$this_authorised_value{'category'}} and $$authorised_values{$$this_authorised_value{'category'}} eq $$this_authorised_value{'authorised_value'})
17510TFif (defined $$this_authorised_value{'imageurl'})
18120TFdefined $$itemrecord{$_} && $$itemrecord{$_} ne '' ? :
18210TFif (defined $unlinked_item_subfields and $#$unlinked_item_subfields > -1)
18790TFif $source_column eq 'BUILDER'
19160TFif $source_column eq 'BUILDER'
19170TFif (exists $$item{$source_column}) { }
19240TFif ($must_recalc)
19490TFif (exists $$item{'notforloan'} and !defined($$item{'notforloan'}) || $$item{'notforloan'} eq '')
19530TFif (exists $$item{'damaged'} and !defined($$item{'damaged'}) || $$item{'damaged'} eq '')
19570TFif (exists $$item{'itemlost'} and !defined($$item{'itemlost'}) || $$item{'itemlost'} eq '')
19610TFif (exists $$item{'wthdrawn'} and !defined($$item{'wthdrawn'}) || $$item{'wthdrawn'} eq '')
19650TFif (exists $$item{'location'} and not exists $$item{'permanent_location'})
19680TFif (exists $$item{'timestamp'})
21440TFif (defined $sth->errstr) { }
21720TFif ($return == 1)
21780TFif ($order)
22100TFif ($onloan) { }
0TFelsif (not 'C4::Context'->userenv->{'flags'} & 1 and 'C4::Context'->preference('IndependantBranches') and 'C4::Context'->userenv->{'branch'} ne $$item{'C4::Context'->preference('HomeOrHoldingBranch') or 'homebranch'}) { }
22250TFif ($reserve) { }
0TFelsif ($countanalytics > 0) { }
22620TFif ('C4::Context'->dbh->errstr)
23190TFif (@_)
23250TF/^items\./ ? :
0TFdefined $$item{$_} && $$item{$_} ne '' ? :
23320TFunless defined $tag and defined $subfield
23350TFif (my $field = $item_marc->field($tag)) { }
23390TFif (defined $unlinked_item_subfields and ref $unlinked_item_subfields eq 'ARRAY' and $#$unlinked_item_subfields > -1)
23670TFexists $$item_ref{'barcode'} ? :
23920TFif ($#fields > -1)
23960TFif (defined $$subfield[1] and $$subfield[1] ne '' and not $$marcstructure{$tag}{$$subfield[0]}{'kohafield'})
24160TFif (defined $unlinked_item_subfields and ref $unlinked_item_subfields eq 'ARRAY' and $#$unlinked_item_subfields > -1)
24370TFunless defined $xml and $xml ne ''
24410TFif ($#fields > -1)
24590TFif ('C4::Context'->preference('NoZebra')) { }
25170TFif ($tagfield < 10) { }
25180TFif ($record->field($tagfield)) { }
25270TFif (@$subfield[0] eq $insubfield)
25530TFif $bibnum
25580TFunless $tagslib
25600TFif ($itemnum)
25670TFif ($tag ne '')
25720TFif subfield_is_koha_internal_p $subfield
25730TFif $$tagslib{$tag}{$subfield}{'tab'} ne '10'
25850TFif $$tagslib{$tag}{$subfield}{'hidden'}
25880TFif ($itemrecord)
25910TFunless $defaultvalue
25920TFif (not defined $defaultvalue)
25980TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.itemcallnumber' and 'C4::Context'->preference('itemcallnumber'))
26020TFif ($itemrecord)
26040TFif ($temp)
26090TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.itemcallnumber' and $defaultvalues and $$defaultvalues{'callnumber'})
26130TFif ($itemrecord)
26160TFunless ($temp)
26170TFif $defaultvalues
26200TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.holdingbranch' || $$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.homebranch' and $defaultvalues and $$defaultvalues{'branchcode'})
26240TFif ($itemrecord)
26270TFunless ($temp)
26280TFif $defaultvalues
26310TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.location' and $defaultvalues and $$defaultvalues{'location'})
26340TFif $itemrecord
26350TFunless ($temp)
26360TFif $defaultvalues
26390TFif ($$tagslib{$tag}{$subfield}{'authorised_value'}) { }
0TFelsif ($$tagslib{$tag}{$subfield}{'value_builder'}) { }
0TFelsif ($tag eq '') { }
0TFelsif ($$tagslib{$tag}{$subfield}{'hidden'}) { }
0TFelsif (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)) { }
26450TFif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'branches') { }
0TFelsif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'itemtypes') { }
0TFelsif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'cn_source') { }
26460TFif ('C4::Context'->preference('IndependantBranches') and 'C4::Context'->userenv->{'flags'} % 2 != 1) { }
26500TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26590TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26710TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26790TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26850TFunless $$class_sources{$class_source}{'used'} or $class_source eq $default_source
26940TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
27130TFif (do $plugin) { }
27500TFif ($itemrecord and $itemrecord->field($itemtagfield))