Branch Coverage

File:C4/Biblio.pm
Coverage:0.0%

line%coveragebranch
2490TF@_ ? :
2510TFif (defined $options and exists $$options{'defer_marc_save'} and $$options{'defer_marc_save'})
2710TFunless $defer_marc_save
2740TFif ('C4::Context'->preference('OAI-PMH:AutoUpdateSets'))
2780TFif 'C4::Context'->preference('CataloguingLog')
3040TFunless $record
3060TFif ('C4::Context'->preference('CataloguingLog'))
3140TFif (not $field->is_control_field)
3150TFif (scalar $field->subfields == 0 or scalar $field->subfields == 1 and $field->subfield('9'))
3240TFif not $frameworkcode or $frameworkcode eq 'Default'
3510TFif ('C4::Context'->preference('OAI-PMH:AutoUpdateSets'))
4180TFif (my $itemnumber = $sth->fetchrow)
4240TFif $error
4460TFif ('C4::Context'->preference('NoZebra'))
4610TFif $error
4700TFif 'C4::Context'->preference('CataloguingLog')
4920TFif ($@)
4960TFif ($@)
5360TFunless defined $allowrelink
5400TFunless defined $heading
5450TFif (defined $current_link and !$allowrelink || !'C4::Context'->preference('LinkerRelink'))
5520TFif ($authid) { }
5530TF$fuzzy ? :
5550TFif defined $current_link and $current_link == $authid
5570TFif defined $current_link
5620TFif (defined $current_link and !$allowrelink || 'C4::Context'->preference('LinkerKeepStale')) { }
0TFelsif ('C4::Context'->preference('AutoCreateAuthorities')) { }
0TFelsif (defined $current_link) { }
5710TFif ('C4::Context'->preference('marcflavour') eq 'MARC21')
5780TFif $$_[0] =~ /[A-z]/ and $$_[0] ne 'a'
5910TFif ('C4::Context'->preference('marcflavour') eq 'MARC21')
6550TFif ($$row{'subfieldcode'} ne '' and $field->subfield($$row{'subfieldcode'})) { }
0TFelsif ($$row{'subfieldcode'} eq '') { }
6830TFif (not $sth->fetchrow_hashref)
7900TFunless ('C4::Context'->preference('item-level_itypes'))
8570TFif ($itemnumber) { }
8900TFunless defined $record
9120TFif ($fieldvalue > 0) { }
9150TFif $fieldvalue eq $holdingbrtagf
9190TFif ($subfvalue ne '') { }
9240TFif ($tag < 10) { }
9290TFif ($template eq 'opac')
9320TFif ($calculated and not $hasputtextbefore)
9440TFif $hasputtextbefore
9490TFif ($tag < 10) { }
9650TFif ($template eq 'opac')
9690TFif ($calculated and not $hasputtextbefore)
9790TFif $hasputtextbefore
10560TFunless $frameworkcode
10580TFif (defined $marc_structure_cache and exists $$marc_structure_cache{$forlibrarian}{$frameworkcode})
10770TF$forlibrarian || !$libopac ? :
11120TF$forlibrarian || !$libopac ? :
11720TFunless $kohafield and defined $frameworkcode
11740TFif (my $mf = $$relations{$frameworkcode}{$kohafield})
12020TFif ($marcxml) { }
12040TFif ($@)
12050TFunless $record
12080TFif $embeditems
12460TFif (not $record)
12890TF$$fmts6{$pos6} ? :
12910TFif ($genre eq 'book')
12920TFif $$fmts7{$pos7}
12960TFif ($genre eq 'book') { }
0TFelsif ($genre eq 'journal') { }
0TFelsif ($genre eq 'journalArticle') { }
13090TF$mtx eq 'dc' ? :
13110TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC') { }
13190TFif ($record->field('200'))
13250TF$mtx eq 'dc' ? :
13370TFif ($record->field('100'))
13420TFif ($record->field('700'))
13500TFif ($titletype eq 'a') { }
13520TFif $pubyear
13550TFif ($mtx eq 'journal') { }
13610TFif ($pages)
13950TFif ($marcflavour eq 'MARC21') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
14080TFif $subfield_value
14260TFif ($marcflavour eq 'MARC21') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
14380TFif ($subfield_value)
14410TFif 'C4::Context'->preference('CurrencyFormat') eq 'FR'
14710TFif (not $category)
14730TFunless defined $$tagslib{$tag}{$subfield}{'authorised_value'}
14760TFif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'branches')
14810TFif ($$tagslib{$tag}{$subfield}{'authorised_value'} eq 'itemtypes')
14890TFif ($category ne '') { }
14930TF$opac && $$data{'lib_opac'} ? :
15120TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'UNIMARC' or $marcflavour eq 'NORMARC')
15140TFif ($controlnumberField)
15330TFif ($marcflavour eq 'UNIMARC') { }
15440TFif ($isbn ne '')
15490TFif ($isbn ne $value)
15540TFif ($isbn)
15740TFif ($marcflavour eq 'UNIMARC') { }
15990TFif ($marcflavour eq 'UNIMARC') { }
16100TFif ($note ne '')
16150TFif ($note ne $value)
16200TFif ($note)
16390TFif ($marcflavour eq 'UNIMARC') { }
16520TF'C4::Context'->preference('TraceCompleteSubfields') ? :
16550TFunless $field->tag >= $mintag and $field->tag <= $maxtag
16660TFif $marcflavour eq 'UNIMARC' and $$subject_subfield[0] =~ /2|3|4|5/
16690TFif $marcflavour eq 'MARC21' and $$subject_subfield[0] =~ /2/
16750TFif ($counter != 0)
16780TFif ($code eq 9)
16820TFif (not $found9)
16860TFif ($counter != 0)
16920TFunless $$subject_subfield[0] eq 9 or $$subject_subfield[0] eq '0'
17180TFif ($marcflavour eq 'UNIMARC') { }
0TFelsif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
17300TFunless $field->tag >= $mintag and $field->tag <= $maxtag
17410TFif $marcflavour eq 'UNIMARC' and $$authors_subfield[0] =~ /3|5/
17470TFif ($count_auth != 0)
17520TFif ($subfield9) { }
17570TFif ($marcflavour eq 'UNIMARC' and $$authors_subfield[0] eq '4')
17620TFif $marcflavour eq 'UNIMARC' and $$authors_subfield[0] =~ /4/
17660TFif ($count_auth != 0)
17690TFunless $$authors_subfield[0] eq '9' or $$authors_subfield[0] eq '0'
18050TFif ($marcflavour eq 'MARC21') { }
18080TFunless ($url =~ /^\w+:/)
18090TFif ($field->indicator(1) eq '7') { }
0TFelsif ($field->indicator(1) eq '1') { }
18270TFif $link
18280TFif defined $s3 and $s3 =~ /^[Tt]able/
18510TFif ($marcflavour eq 'UNIMARC') { }
18790TFif ($$series_subfield[0] eq 'v')
18870TFif ($counter != 0) { }
18930TFif ($counter != 0)
18960TFif ($volume_number) { }
18990TFif ($$series_subfield[0] ne '9')
19340TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
19980TFunless my $dtm = $$db_to_marc{''}{$name}
20010TFif (my $field = $record->field($tag)) { }
20310TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
20350TFif ($hostrecord->subfield('100', 'a')) { }
0TFelsif ($hostrecord->subfield('110', 'a')) { }
20450TFif (my $field260 = $hostrecord->field('260'))
20570TFif ($hostrecord->field('001'))
20590TFif ($hostrecord->field('003'))
21170TFunless $auth_type
21240TFif $auth_type eq 'ITEM'
21310TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC' and @$tags[$i] eq '100' and @$subfields[$i] eq 'a')
21360TFif ($enc eq '01' or $enc eq '50' or $enc eq '03') { }
21510TFif (@$tags[$i] ne $prevtag) { }
21520TFunless @$tags[$i] eq ''
21570TFif (@$indicator[$j]) { }
21630TFif (not $first) { }
21650TFif (@$tags[$i] and @$tags[$i] > 10 and @$values[$i] ne '') { }
21740TFif (@$values[$i] ne '')
21770TFif (@$tags[$i] eq '000') { }
0TFelsif (@$tags[$i] < 10) { }
21970TFif (@$indicator[$j]) { }
22030TFif (@$values[$i] eq '') { }
22050TFif ($first)
22140TFif $xml =~ /<datafield/
22150TFif ('C4::Context'->preference('marcflavour') eq 'UNIMARC' and not $unimarc_and_100_exist)
22220TFif $auth_type eq 'UNIMARCAUTH'
22430TFif (not defined $s or $s eq '')
22830TFif ($param_name =~ /^tag_/)
22850TFif (utf8::decode($param_value))
23030TFif ($param eq 'biblionumber') { }
0TFelsif ($param =~ /^tag_(\d*)_indicator1_/) { }
23050TFif ($biblionumbertagfield < 10) { }
23100TFif $newfield
23190TFif ($tag < 10) { }
23210TFif ($tag eq '000') { }
0TFelsif ($cgi->param($params[$j + 1]) ne '') { }
23240TFlength $cgi->param($params[$j + 1]) == 24 ? :
23390TFunless defined $params[$j + 1]
23420TFif (not $params[$j + 1] =~ /_subfield_/)
23450TFif ($fval ne '' and $newfield) { }
0TFelsif ($fval ne '') { }
23550TFif $newfield
23810TFunless defined $frameworkcode
23830TFunless (defined $inverted_field_map)
23880TFif (defined $limit_table and $limit_table eq 'items') { }
23990TFunless exists $$inverted_field_map{$frameworkcode}{$tag}
24000TFif ($field->is_control_field) { }
24040TFunless exists $tables{$table}
24060TFif ($$result{$key}) { }
24070TFunless ($key eq 'biblionumber' || $key eq 'biblioitemnumber' and $field->data eq '')
24190TFunless exists $$inverted_field_map{$frameworkcode}{$tag}{'sfs'}{$code}
24230TFunless exists $tables{$table}
24250TFif ($$result{$key}) { }
24260TFunless ($key eq 'biblionumber' || $key eq 'biblioitemnumber' and $value eq '')
24380TFif (exists $$result{'copyrightdate'})
24410TFif ($temp =~ /c(\d\d\d\d)/ and $1 > 0) { }
24500TFif (exists $$result{'publicationyear'})
24520TFif ($temp =~ /c(\d\d\d\d)/ and $1 > 0) { }
24690TFunless @{$$relations{$frameworkcode}{$kohafield};}
25200TFif ($column eq 'cn_sort' or $column eq 'cn_source') { }
25430TFif ($field->tag < 10) { }
25440TFif ($kohafield) { }
25500TFif ($field->subfields)
25530TFif ($subfields[$subfieldcount][0] eq $subfield)
25540TFif ($kohafield) { }
25810TFif ($field->tag < 10) { }
25820TFif ($$result{$kohafield}) { }
25880TFif ($field->subfields)
25910TFif ($subfields[$subfieldcount][0] eq $subfield)
25920TFif ($$result{$kohafield}) { }
26680TFif ('C4::Context'->preference('NoZebra')) { }
26750TFif ($op eq 'specialUpdate') { }
26790TFif ($oldRecord)
27140TFif ($count == 0)
27560TFunless $marc
28000TFif ($server eq 'biblioserver') { }
28110TFunless $authref
28310TFif $field->tag < 10
28420TFif ($index{$key} =~ /$tag\*/ or $index{$key} =~ /$tag$subfieldcode/)
28510TFunless $_
28530TFunless (defined $result{$key}{$_} and $result{$key}{$_} =~ /$biblionumber,$title\-(\d);/)
28600TFif ($existing_biblionumbers)
28720TFunless ($indexed)
28780TFunless $_
28800TFunless ($result{'__RAW__'}{$_} =~ /$biblionumber,$title\-(\d);/)
28870TFif ($existing_biblionumbers)
29140TFif ($server eq 'biblioserver') { }
29260TFunless $authref
29450TFif $field->tag < 10
29570TFif ($index{$key} =~ /$tag\*/ or $index{$key} =~ /$tag$subfieldcode/)
29660TFunless $_
29700TFif (exists $result{$key}{$_} and $result{$key}{"$_"} =~ /$biblionumber,\Q$title\E\-(\d+);/) { }
29810TFif ($existing_biblionumbers) { }
29830TFdefined $1 ? :
30000TFunless ($indexed)
30060TFunless $_
30090TFif ($tmpstr =~ /$biblionumber,\Q$title\E\-(\d+);/) { }
30200TFif ($existing_biblionumbers) { }
30220TF$1 ? :
30570TFunless $biblio_tag
30590TFunless $biblio_tag
30610TFif ($biblio_tag == $biblioitem_tag) { }
30720TFif $old_field
30800TFif ($biblio_tag < 10) { }
30880TFif $old_field
30920TFif ($biblioitem_tag < 10) { }
31000TFif $old_field
31200TFunless $biblioitem_tag
31240TFif (my $field = $marc->field($biblioitem_tag)) { }
31260TFif ($cn_sort ne '')
31340TFif ($cn_sort)
31540TFunless (defined $$biblio{'serial'})
31560TFif ($$biblio{'seriestitle'})
31780TFif ($dbh->errstr)
32170TFif $$biblio{'biblionumber'}
32220TFif ($dbh->errstr or not $$biblio{'biblionumber'})
32870TFif ($dbh->errstr)
33510TFif ($dbh->errstr)
33800TFif (my $data = $sth->fetchrow_hashref)
34290TFif (my $data = $sth->fetchrow_hashref)
34760TFif (not $frameworkcode)
34850TFif ($encoding eq 'UNIMARC')
34870TFif ($string and length $record->subfield(100, 'a') == 36) { }
34960TFunless ($record->subfield(100, 'a'))
35020TFif ($encoding =~ /MARC21|UNIMARC/)
35060TFif $f005
35100TFif ('C4::Context'->preference('NoZebra'))
35520TFunless my $tagslib = GetMarcStructure($forlibrarian, $frameworkcode)
35680TFif ('HASH' eq ref $$tagslib{$tag}{$subfield})
35690TFif (defined $$tagslib{$tag}{$subfield}{'authorised_value'} and exists $$bibliolevel_authorised_values{$$tagslib{$tag}{$subfield}{'authorised_value'}})
35700TFif (defined $record->field($tag))
35720TFif (defined $this_subfield_value)
36700TFif ($marcflavour eq 'MARC21' or $marcflavour eq 'NORMARC') { }
0TFelsif ($marcflavour eq 'UNIMARC') { }
36710TFif ($field = $host->field('100') || $host->field('110') || $host->field('11'))
36730TFif ($s)
36770TFif ($field = $host->field('245'))
36790TFif ($s)
36830TFif ($field = $host->field('260'))
36850TFif ($s)
36890TFif ($field = $host->field('240'))
36910TFif ($s)
36950TFif ($field = $host->field('022'))
36970TFif ($s)
37010TFif ($field = $host->field('020'))
37030TFif ($s)
37070TFif ($field = $host->field('001'))
37150TFif ($field = $host->field('700') || $host->field('710') || $host->field('720'))
37170TFif ($s)
37220TFif ($field = $host->field('200'))
37240TFif ($s)
37290TFif ($field = $host->field('210'))
37310TFif ($s)
37360TFif ($field = $host->field('210'))
37380TFif ($s)
37430TFif ($field = $host->field('205'))
37450TFif ($s)
37500TFif ($field = $host->field('856'))
37520TFif ($s)
37570TFif ($field = $host->field('011'))
37590TFif ($s)
37640TFif ($field = $host->field('010'))
37660TFif ($s)
37700TFif ($field = $host->field('001'))