Branch Coverage

File:C4/Biblio.pm
Coverage:0.0%

line%coveragebranch
2450TF@_ ? :
2470TFif (defined $options and exists $$options{'defer_marc_save'} and $$options{'defer_marc_save'})
2670TFunless $defer_marc_save
2690TFif 'C4::Context'->preference('CataloguingLog')
2950TFunless $record
2970TFif ('C4::Context'->preference('CataloguingLog'))
3050TFif (not $field->is_control_field)
3060TFif (scalar $field->subfields == 0 or scalar $field->subfields == 1 and $field->subfield('9'))
3150TFif not $frameworkcode or $frameworkcode eq 'Default'
4030TFif (my $itemnumber = $sth->fetchrow)
4090TFif $error
4240TFif ('C4::Context'->preference('NoZebra'))
4390TFif $error
4480TFif 'C4::Context'->preference('CataloguingLog')
4790TFunless defined $heading
4880TFif ($#{$authorities;} == 0) { }
4910TFif defined $current_link and $current_link eq $authid
4930TFif defined $current_link
4970TFif (defined $current_link)
5260TFif ($$row{'subfieldcode'} ne '' and $field->subfield($$row{'subfieldcode'})) { }
0TFelsif ($$row{'subfieldcode'} eq '') { }
5540TFif (not $sth->fetchrow_hashref)
6610TFunless ('C4::Context'->preference('item-level_itypes'))
7280TFif ($itemnumber) { }
7610TFunless defined $record
7830TFif ($fieldvalue > 0) { }
7860TFif $fieldvalue eq $holdingbrtagf
7900TFif ($subfvalue ne '') { }
7950TFif ($tag < 10) { }
8000TFif ($template eq 'opac')
8030TFif ($calculated and not $hasputtextbefore)
8150TFif $hasputtextbefore
8200TFif ($tag < 10) { }
8360TFif ($template eq 'opac')
8400TFif ($calculated and not $hasputtextbefore)
8500TFif $hasputtextbefore
9270TFunless $frameworkcode
9290TFif (defined $marc_structure_cache and exists $$marc_structure_cache{$forlibrarian}{$frameworkcode})
9480TF$forlibrarian || !$libopac ? :
9810TF$forlibrarian || !$libopac ? :
10400TFunless $kohafield and defined $frameworkcode
10420TFif (my $mf = $$relations{$frameworkcode}{$kohafield})
10700TFif ($marcxml) { }
10720TFif ($@)
10730TFunless $record
10760TFif $embeditems
11140TFif (not $record)
11570TF$$fmts6{$pos6} ? :
11590TFif ($genre eq 'book')
11600TFif $$fmts7{$pos7}
11640TFif ($genre eq 'book') { }
0TFelsif ($genre eq 'journal') { }
0TFelsif ($genre eq 'journalArticle') { }
11770TF$mtx eq 'dc' ? :
11790TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
11870TFif ($record->field('200'))
11930TF$mtx eq 'dc' ? :
12050TFif ($record->field('100'))
12100TFif ($record->field('700'))
12180TFif ($titletype eq 'a') { }
12200TFif $pubyear
12230TFif ($mtx eq 'journal') { }
12290TFif ($pages)
12630TFif ($marcflavour eq 'MARC21') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
12760TFif $subfield_value
12940TFif ($marcflavour eq 'MARC21') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
13060TFif ($subfield_value)
13090TFif 'C4::Context'->preference('CurrencyFormat') eq 'FR'
13390TFif (not $category)
13410TFunless defined $$tagslib{$tag}{$subfield}{'authorised_value'}
13440TFif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'branches')
13490TFif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'itemtypes')
13570TFif ($category ne '') { }
13610TF$opac && $$data{'lib_opac'} ? :
13800TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'UNIMARC' or $marcflavour eq 'NORMARC')
13820TFif ($controlnumberField)
14010TFif ($marcflavour eq 'UNIMARC') { }
14120TFif ($isbn ne '')
14170TFif ($isbn ne $value)
14220TFif ($isbn)
14420TFif ($marcflavour eq 'UNIMARC') { }
14670TFif ($marcflavour eq 'UNIMARC') { }
14780TFif ($note ne '')
14830TFif ($note ne $value)
14880TFif ($note)
15070TFif ($marcflavour eq 'UNIMARC') { }
15200TF'C4::Context'->preference('TraceCompleteSubfields') ? :
15230TFunless $field->tag >= $mintag and $field->tag <= $maxtag
15340TFif $marcflavour eq 'UNIMARC' and $$subject_subfield[0] =~ /2|3|4|5/
15370TFif $marcflavour eq 'MARC21' and $$subject_subfield[0] =~ /2/
15430TFif ($counter != 0)
15460TFif ($code eq 9)
15500TFif (not $found9)
15540TFif ($counter != 0)
15600TFunless $$subject_subfield[0] eq 9
15860TFif ($marcflavour eq 'UNIMARC') { }
0TFelsif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
15980TFunless $field->tag >= $mintag and $field->tag <= $maxtag
16090TFif $marcflavour eq 'UNIMARC' and $$authors_subfield[0] =~ /3|5/
16150TFif ($count_auth != 0)
16200TFif ($subfield9) { }
16250TFif ($marcflavour eq 'UNIMARC' and $$authors_subfield[0] eq '4')
16300TFif $marcflavour eq 'UNIMARC' and $$authors_subfield[0] =~ /4/
16340TFif ($count_auth != 0)
16370TFunless $$authors_subfield[0] eq '9'
16730TFif ($marcflavour eq 'MARC21') { }
16760TFunless ($url =~ /^\w+:/)
16770TFif ($field->indicator(1) eq '7') { }
0TFelsif ($field->indicator(1) eq '1') { }
16950TFif $link
16960TFif defined $s3 and $s3 =~ /^[Tt]able/
17190TFif ($marcflavour eq 'UNIMARC') { }
17470TFif ($$series_subfield[0] eq 'v')
17550TFif ($counter != 0) { }
17610TFif ($counter != 0)
17640TFif ($volume_number) { }
17670TFif ($$series_subfield[0] ne '9')
18020TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
18660TFunless my $dtm = $$db_to_marc{''}{$name}
18690TFif (my $field = $record->field($tag)) { }
18980TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
19020TFif ($hostrecord->subfield('100', 'a')) { }
0TFelsif ($hostrecord->subfield('110', 'a')) { }
19120TFif (my $field260 = $hostrecord->field('260'))
19240TFif ($hostrecord->field('001'))
19260TFif ($hostrecord->field('003'))
19840TFunless $auth_type
19910TFif $auth_type eq 'ITEM'
19980TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC' and @$tags[$i] eq '100' and @$subfields[$i] eq 'a')
20030TFif ($enc eq '01' or $enc eq '50' or $enc eq '03') { }
20180TFif (@$tags[$i] ne $prevtag) { }
20190TFunless @$tags[$i] eq ''
20240TFif (@$indicator[$j]) { }
20300TFif (not $first) { }
20320TFif (@$tags[$i] and @$tags[$i] > 10 and @$values[$i] ne '') { }
20410TFif (@$values[$i] ne '')
20440TFif (@$tags[$i] eq '000') { }
0TFelsif (@$tags[$i] < 10) { }
20640TFif (@$indicator[$j]) { }
20700TFif (@$values[$i] eq '') { }
20720TFif ($first)
20810TFif $xml =~ /<datafield/
20820TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC' and not $unimarc_and_100_exist)
20890TFif $auth_type eq 'UNIMARCAUTH'
21100TFif (not defined $s or $s eq '')
21500TFif ($param_name =~ /^tag_/)
21520TFif (utf8::decode($param_value))
21700TFif ($param eq 'biblionumber') { }
0TFelsif ($param =~ /^tag_(\d*)_indicator1_/) { }
21720TFif ($biblionumbertagfield < 10) { }
21770TFif $newfield
21860TFif ($tag < 10) { }
21880TFif ($tag eq '000') { }
0TFelsif ($cgi->param($params[$j + 1]) ne '') { }
21910TFlength $cgi->param($params[$j + 1]) == 24 ? :
22060TFunless defined $params[$j + 1]
22090TFif (not $params[$j + 1] =~ /_subfield_/)
22120TFif ($fval ne '' and $newfield) { }
0TFelsif ($fval ne '') { }
22220TFif $newfield
22480TFunless defined $frameworkcode
22500TFunless (defined $inverted_field_map)
22550TFif (defined $limit_table and $limit_table eq 'items') { }
22660TFunless exists $$inverted_field_map{$frameworkcode}{$tag}
22670TFif ($field->is_control_field) { }
22710TFunless exists $tables{$table}
22730TFif ($$result{$key}) { }
22740TFunless ($key eq 'biblionumber' || $key eq 'biblioitemnumber' and $field->data eq '')
22860TFunless exists $$inverted_field_map{$frameworkcode}{$tag}{'sfs'}{$code}
22900TFunless exists $tables{$table}
22920TFif ($$result{$key}) { }
22930TFunless ($key eq 'biblionumber' || $key eq 'biblioitemnumber' and $value eq '')
23050TFif (exists $$result{'copyrightdate'})
23080TFif ($temp =~ /c(\d\d\d\d)/ and $1 > 0) { }
23170TFif (exists $$result{'publicationyear'})
23190TFif ($temp =~ /c(\d\d\d\d)/ and $1 > 0) { }
23360TFunless @{$$relations{$frameworkcode}{$kohafield};}
23870TFif ($column eq 'cn_sort' or $column eq 'cn_source') { }
24100TFif ($field->tag < 10) { }
24110TFif ($kohafield) { }
24170TFif ($field->subfields)
24200TFif ($subfields[$subfieldcount][0] eq $subfield)
24210TFif ($kohafield) { }
24480TFif ($field->tag < 10) { }
24490TFif ($$result{$kohafield}) { }
24550TFif ($field->subfields)
24580TFif ($subfields[$subfieldcount][0] eq $subfield)
24590TFif ($$result{$kohafield}) { }
25350TFif ('C4::Context'->preference('NoZebra')) { }
25420TFif ($op eq 'specialUpdate') { }
25460TFif ($oldRecord)
25810TFif ($count == 0)
26230TFunless $marc
26670TFif ($server eq 'biblioserver') { }
26780TFunless $authref
26980TFif $field->tag < 10
27090TFif ($index{$key} =~ /$tag\*/ or $index{$key} =~ /$tag$subfieldcode/)
27180TFunless $_
27200TFunless (defined $result{$key}{$_} and $result{$key}{$_} =~ /$biblionumber,$title\-(\d);/)
27270TFif ($existing_biblionumbers)
27390TFunless ($indexed)
27450TFunless $_
27470TFunless ($result{'__RAW__'}{$_} =~ /$biblionumber,$title\-(\d);/)
27540TFif ($existing_biblionumbers)
27810TFif ($server eq 'biblioserver') { }
27930TFunless $authref
28120TFif $field->tag < 10
28240TFif ($index{$key} =~ /$tag\*/ or $index{$key} =~ /$tag$subfieldcode/)
28330TFunless $_
28370TFif (exists $result{$key}{$_} and $result{$key}{"$_"} =~ /$biblionumber,\Q$title\E\-(\d+);/) { }
28480TFif ($existing_biblionumbers) { }
28500TFdefined $1 ? :
28670TFunless ($indexed)
28730TFunless $_
28760TFif ($tmpstr =~ /$biblionumber,\Q$title\E\-(\d+);/) { }
28870TFif ($existing_biblionumbers) { }
28890TF$1 ? :
29240TFunless $biblio_tag
29260TFunless $biblio_tag
29280TFif ($biblio_tag == $biblioitem_tag) { }
29390TFif $old_field
29470TFif ($biblio_tag < 10) { }
29550TFif $old_field
29590TFif ($biblioitem_tag < 10) { }
29670TFif $old_field
29870TFunless $biblioitem_tag
29910TFif (my $field = $marc->field($biblioitem_tag)) { }
29930TFif ($cn_sort ne '')
30010TFif ($cn_sort)
30210TFunless (defined $$biblio{'serial'})
30230TFif ($$biblio{'seriestitle'})
30450TFif ($dbh->errstr)
30840TFif $$biblio{'biblionumber'}
30890TFif ($dbh->errstr or not $$biblio{'biblionumber'})
31540TFif ($dbh->errstr)
32180TFif ($dbh->errstr)
32470TFif (my $data = $sth->fetchrow_hashref)
32960TFif (my $data = $sth->fetchrow_hashref)
33430TFif (not $frameworkcode)
33520TFif ($encoding eq 'UNIMARC')
33540TFif ($string and length $record->subfield(100, 'a') == 36) { }
33630TFunless ($record->subfield(100, 'a'))
33690TFif ($encoding =~ /MARC21|UNIMARC/)
33730TFif $f005
33770TFif ('C4::Context'->preference('NoZebra'))
34190TFunless my $tagslib = GetMarcStructure($forlibrarian, $frameworkcode)
34350TFif ('HASH' eq ref $$tagslib{$tag}{$subfield})
34360TFif (defined $$tagslib{$tag}{$subfield}{'authorised_value'} and exists $$bibliolevel_authorised_values{$$tagslib{$tag}{$subfield}{'authorised_value'}})
34370TFif (defined $record->field($tag))
34390TFif (defined $this_subfield_value)