Branch Coverage

File:C4/Items.pm
Coverage:0.0%

line%coveragebranch
1430TFif ($itemnumber) { }
1570TFif ($serial)
1630TFif (not $$data{'itype'})
1860TFunless ($itemnumber)
2450TF@_ ? :
2460TF@_ ? :
2480TFif (@_)
2620TFunless ($$item{'itype'})
2730TFif 'C4::Context'->preference('CataloguingLog')
3520TFif (%item_errors)
3610TFif $error
3650TFif 'C4::Context'->preference('CataloguingLog')
4510TFunless exists $$item{$item_field}
4900TFunless (defined $biblionumber)
4940TF@_ ? :
4950TF@_ ? :
4980TFif (@_)
5030TFunless $$item{'itemnumber'} = $itemnumber
5050TFif $$item{'itemlost'}
5230TFif 'C4::Context'->preference('CataloguingLog')
5920TFif 'C4::Context'->preference('CataloguingLog')
6440TFif (exists $$item_ref{'barcode'} and defined $$item_ref{'barcode'})
6460TFif ($existing_itemnumber)
6470TFif (not exists $$item_ref{'itemnumber'} or $$item_ref{'itemnumber'} != $existing_itemnumber)
6550TFif (exists $$item_ref{'homebranch'} and defined $$item_ref{'homebranch'})
6570TFunless (defined $branch_name)
6650TFif (exists $$item_ref{'holdingbranch'} and defined $$item_ref{'holdingbranch'})
6670TFunless (defined $branch_name)
7360TFunless $fwk
7390TFif ($tag and $subfield)
7500TFif (my($authorisedvaluecat) = $sth->fetchrow) { }
8240TFunless $fwk
8270TFif ($tag and $subfield)
8370TFif (my($authorisedvaluecat) = $sth->fetchrow) { }
9230TFif (defined $orderby and grep $orderby, @ordervalues)
9660TFif ($statushash)
9680TFif (scalar @{$$statushash{$authvfield};} > 0)
9750TFif ($minlocation)
9800TFif ($maxlocation)
9850TFif ($datelastseen)
9910TFif ($location)
9960TFif ($branchcode)
9970TFif ($branch eq 'homebranch') { }
10050TFif ($itemtype)
10100TFif ($ignoreissued)
10150TFif (@where_strings)
10260TFif $offset
10280TFif (not $offset and $size)
10890TFunless $sth->execute($bibitem)
10970TFif (my $data2 = $sth2->fetchrow_hashref) { }
11120TFunless $sth2->execute($$data{'itemnumber'})
11710TF'C4::Context'->preference('item-level_itypes') ? :
12110TFif (my $idata = $isth->fetchrow_hashref)
12180TFif ('C4::Context'->preference('IndependantBranches'))
12200TFif ($userenv and $$userenv{'flags'} % 2 != 1)
12210TFif $$idata{'bcode'} ne $$userenv{'branch'}
12250TFif ($$data{'serial'})
12360TFif (my $bdata = $bsth->fetchrow_hashref)
12510TFif ($authorised_valuecode)
12730TFif ($authorised_valuecode)
12820TFif (my $rstdata = $restrictedstatus->fetchrow_hashref)
12980TFif ($authorised_valuecode)
13190TFif $$data2{'timestamp'}
13200TFif $$data2{'cardnumber'}
13210TFif $$data2{'borrowernumber'}
13280TFif ($serial) { }
14110TFif ('C4::Context'->preference('marcflavour') eq 'MARC21' or 'C4::Context'->preference('marcflavour') eq 'NORMARC') { }
0TFelsif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
14180TFif ($$hostitemInfo{'itemnumber'} eq $linkeditemnumber)
14300TFif ($$hostitemInfo{'itemnumber'} eq $linkeditemnumber)
14510TF'C4::Context'->preference('item-level_itypes') ? :
14580TFif $number_of_branches
14640TFif $number_of_itemtypes
15450TFif ($marcflavor eq 'MARC21' or $marcflavor eq 'NORMARC') { }
0TFelsif ($marcflavor eq 'UNIMARC') { }
15590TFif (my $itemnumbers = get_itemnumbers_of($hostbiblionumber)->{$hostbiblionumber})
15640TFif ($itemnumber eq $linkeditemnumber)
16280TFif ($@)
16400TFif (exists $$item{$field}) { }
16470TFunless defined $val
16500TFif (any sub { $val eq $_; } , @{$$hidingrules{$field};})
17050TFif (exists $$iteminfo{$field})
17440TFif (exists $$authorised_values{$$this_authorised_value{'category'}} and $$authorised_values{$$this_authorised_value{'category'}} eq $$this_authorised_value{'authorised_value'})
17470TFif (defined $$this_authorised_value{'imageurl'})
18080TFdefined $$itemrecord{$_} && $$itemrecord{$_} ne '' ? :
18170TFif (defined $unlinked_item_subfields and $#$unlinked_item_subfields > -1)
18750TFif $source_column eq 'BUILDER'
19120TFif $source_column eq 'BUILDER'
19130TFif (exists $$item{$source_column}) { }
19200TFif ($must_recalc)
19450TFif (exists $$item{'notforloan'} and !defined($$item{'notforloan'}) || $$item{'notforloan'} eq '')
19490TFif (exists $$item{'damaged'} and !defined($$item{'damaged'}) || $$item{'damaged'} eq '')
19530TFif (exists $$item{'itemlost'} and !defined($$item{'itemlost'}) || $$item{'itemlost'} eq '')
19570TFif (exists $$item{'wthdrawn'} and !defined($$item{'wthdrawn'}) || $$item{'wthdrawn'} eq '')
19610TFif (exists $$item{'location'} and not exists $$item{'permanent_location'})
19640TFif (exists $$item{'timestamp'})
21400TFif (defined $sth->errstr) { }
21680TFif ($return == 1)
21740TFif ($order)
22060TFif ($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'}) { }
22210TFif ($reserve) { }
0TFelsif ($countanalytics > 0) { }
22580TFif ('C4::Context'->dbh->errstr)
23150TFif (@_)
23210TF/^items\./ ? :
0TFdefined $$item{$_} && $$item{$_} ne '' ? :
23280TFunless defined $tag and defined $subfield
23310TFif (my $field = $item_marc->field($tag)) { }
23350TFif (defined $unlinked_item_subfields and ref $unlinked_item_subfields eq 'ARRAY' and $#$unlinked_item_subfields > -1)
23630TFexists $$item_ref{'barcode'} ? :
23880TFif ($#fields > -1)
23920TFif (defined $$subfield[1] and $$subfield[1] ne '' and not $$marcstructure{$tag}{$$subfield[0]}{'kohafield'})
24120TFif (defined $unlinked_item_subfields and ref $unlinked_item_subfields eq 'ARRAY' and $#$unlinked_item_subfields > -1)
24330TFunless defined $xml and $xml ne ''
24370TFif ($#fields > -1)
24550TFif ('C4::Context'->preference('NoZebra')) { }
25130TFif ($tagfield < 10) { }
25140TFif ($record->field($tagfield)) { }
25230TFif (@$subfield[0] eq $insubfield)
25490TFif $bibnum
25540TFunless $tagslib
25560TFif ($itemnum)
25630TFif ($tag ne '')
25680TFif subfield_is_koha_internal_p $subfield
25690TFif $$tagslib{$tag}{$subfield}{'tab'} ne '10'
25800TFif $$tagslib{$tag}{$subfield}{'hidden'}
25830TFif ($itemrecord)
25860TFunless $defaultvalue
25870TFif (not defined $defaultvalue)
25930TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.itemcallnumber' and 'C4::Context'->preference('itemcallnumber'))
25970TFif ($itemrecord)
25990TFif ($temp)
26040TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.itemcallnumber' and $defaultvalues and $$defaultvalues{'callnumber'})
26080TFif ($itemrecord)
26110TFunless ($temp)
26120TFif $defaultvalues
26150TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.holdingbranch' || $$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.homebranch' and $defaultvalues and $$defaultvalues{'branchcode'})
26190TFif ($itemrecord)
26220TFunless ($temp)
26230TFif $defaultvalues
26260TFif ($$tagslib{$tag}{$subfield}{'kohafield'} eq 'items.location' and $defaultvalues and $$defaultvalues{'location'})
26290TFif $itemrecord
26300TFunless ($temp)
26310TFif $defaultvalues
26340TFif ($$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)) { }
26400TFif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'branches') { }
0TFelsif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'itemtypes') { }
0TFelsif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'cn_source') { }
26410TFif ('C4::Context'->preference('IndependantBranches') and 'C4::Context'->userenv->{'flags'} % 2 != 1) { }
26450TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26540TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26660TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26740TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
26800TFunless $$class_sources{$class_source}{'used'} or $class_source eq $default_source
26890TFunless $$tagslib{$tag}{$subfield}{'mandatory'}
27080TFif (do $plugin) { }
27470TFif ($itemrecord and $itemrecord->field($itemtagfield))