line |
true |
false |
branch |
288
|
0 |
1 |
if ($opts{'id'}) { } |
|
0 |
1 |
elsif ($opts{'name'}) { } |
297
|
0 |
0 |
if (ref $rv eq 'HASH') { } |
314
|
0 |
0 |
if (ref $rv eq 'HASH') { } |
343
|
1 |
1 |
if ($term_name) |
357
|
1 |
1 |
if ($term_note) |
378
|
1 |
1 |
if ($facet_id) |
395
|
0 |
0 |
if ($self->term_id) { } |
399
|
0 |
0 |
if ($return > 1 or not $return) |
404
|
0 |
0 |
if (scalar @related_resources > 0 and @related_resources) { } |
|
0 |
0 |
elsif (scalar @related_resources <= 0 or not @related_resources) { } |
407
|
0 |
0 |
if (scalar @{$arr_ref;} > 0) |
411
|
0 |
0 |
if ($$arr_val[0] == $related_resources[$i]) |
421
|
0 |
0 |
if ($return > 1 or not $return) |
426
|
0 |
0 |
if (scalar @{$arr_ref;} > 0) |
430
|
0 |
0 |
if ($$arr_val[0] == $related_resources[$i]) { } |
437
|
0 |
0 |
unless ($found) |
445
|
0 |
0 |
if ($return > 1 or not $return) |
453
|
0 |
0 |
if (scalar @suggested_resources > 0 and @suggested_resources) { } |
|
0 |
0 |
elsif (scalar @suggested_resources == 0) { } |
456
|
0 |
0 |
if (scalar @{$arr_ref;} > 0) |
460
|
0 |
0 |
if ($$arr_val[0] == $suggested_resources[$i]) |
470
|
0 |
0 |
if ($return > 1 or not $return) |
475
|
0 |
0 |
if (scalar @{$arr_ref;} > 0) |
479
|
0 |
0 |
if ($$arr_val[0] == $suggested_resources[$i]) { } |
486
|
0 |
0 |
unless ($found) |
494
|
0 |
0 |
if ($return > 1 or not $return) |
499
|
0 |
0 |
if (scalar @{$arr_ref;} > 0) |
501
|
0 |
0 |
if ($return eq undef) |
513
|
0 |
0 |
if ($return > 1 or not $return) |
519
|
0 |
0 |
if (scalar @related_resources > 0 and @related_resources) |
522
|
0 |
0 |
if ($return > 1 or not $return) |
527
|
0 |
0 |
if (scalar @suggested_resources > 0 and @suggested_resources) |
530
|
0 |
0 |
if ($return > 1 or not $return) |
544
|
0 |
0 |
if ($$self{'term_id'}) |
548
|
0 |
0 |
if ($rv != 1) |
551
|
0 |
0 |
if ($rv > 0) |
553
|
0 |
0 |
if ($rv < 1 or not $rv) |
557
|
0 |
0 |
if ($rv > 0) |
559
|
0 |
0 |
if ($rv < 1 or not $rv) |
563
|
0 |
0 |
if ($rv > 0) |
565
|
0 |
0 |
if ($rv < 1 or not $rv) |
588
|
0 |
0 |
if ($opts{'sort'}) |
589
|
0 |
0 |
if ($opts{'sort'} eq 'name') |
594
|
0 |
0 |
if ($opts{'field'} and $opts{'value'}) |
597
|
0 |
0 |
if ($field eq 'name') { } |
|
0 |
0 |
elsif ($field eq 'description') { } |
607
|
0 |
0 |
if ($limit_clause) |
610
|
0 |
0 |
if ($sort_clause) |
631
|
0 |
0 |
if ($opts{'new'}) |
635
|
0 |
0 |
if ($opts{'del'}) |
639
|
0 |
0 |
if ($opts{'sort'}) |
644
|
0 |
0 |
if ($opts{'strict'}) { } |
645
|
0 |
0 |
if ($opts{'strict'} == 1) { } |
|
0 |
0 |
elsif ($opts{'strict'} == 0) { } |
|
0 |
0 |
elsif (not $opts{'strict'} =~ /^\d$/ and $opts{'strict'} == 1 || $opts{'strict'} == 0 or $opts{'strict'} ne 'off' or $opts{'strict'} ne 'on') { } |
657
|
0 |
0 |
if (@new_related_resources) |
659
|
0 |
0 |
unless ($new_related_resource =~ /^\d+$/) |
662
|
0 |
0 |
if ($strict_relations eq 'on') |
667
|
0 |
0 |
if ($resource_list_val == $new_related_resource) { } |
674
|
0 |
0 |
if ($found_resource == 0) |
679
|
0 |
0 |
if ($$self{'related_resources'}) { } |
681
|
0 |
0 |
if ($new_related_resource == @$related_resource[0]) { } |
691
|
0 |
0 |
if ($found) { } |
701
|
0 |
0 |
if (@del_related_resources) |
705
|
0 |
0 |
if ($$self{'related_resources'}[$i][0] == $del_related_resource) |
718
|
0 |
0 |
if ($sort) |
719
|
0 |
0 |
if ($sort eq 'name') |
743
|
0 |
0 |
if ($opts{'new'}) |
747
|
0 |
0 |
if ($opts{'del'}) |
751
|
0 |
0 |
if ($opts{'sort'}) |
756
|
0 |
0 |
if ($opts{'strict'}) { } |
757
|
0 |
0 |
if ($opts{'strict'} == 1) { } |
|
0 |
0 |
elsif ($opts{'strict'} == 0) { } |
|
0 |
0 |
elsif ($opts{'strict'} =~ /^\d$/ and $opts{'strict'} != 1 || $opts{'strict'} != 0 or $opts{'strict'} ne 'off' or $opts{'strict'} ne 'on') { } |
770
|
0 |
0 |
if (@new_suggested_resources) |
772
|
0 |
0 |
unless ($new_suggested_resource =~ /^\d+$/) |
775
|
0 |
0 |
if ($strict_relations eq 'on') |
780
|
0 |
0 |
if ($resource_list_val == $new_suggested_resource) { } |
787
|
0 |
0 |
if ($found_resource == 0) |
792
|
0 |
0 |
if ($$self{'suggested_resources'}) { } |
794
|
0 |
0 |
if ($new_suggested_resource == @$suggested_resource[0]) { } |
804
|
0 |
0 |
if ($found) { } |
814
|
0 |
0 |
if (@del_suggested_resources) |
818
|
0 |
0 |
if ($$self{'suggested_resources'}[$i][0] == $del_suggested_resource) |
830
|
0 |
0 |
if ($sort) |
831
|
0 |
0 |
if ($sort eq 'name') |
857
|
0 |
0 |
if ($opts{'output'}) { } |
863
|
0 |
0 |
if ($opts{'new'}) |
867
|
0 |
0 |
if ($opts{'del'}) |
872
|
0 |
0 |
if ($opts{'strict'}) { } |
873
|
0 |
0 |
if ($opts{'strict'} == 1) { } |
|
0 |
0 |
elsif ($opts{'strict'} == 0) { } |
|
0 |
0 |
elsif ($opts{'strict'} =~ /^\d$/ and $opts{'strict'} != 1 || $opts{'strict'} != 0 or $opts{'strict'} ne 'off' or $opts{'strict'} ne 'on') { } |
889
|
0 |
0 |
if (@new_librarians) |
891
|
0 |
0 |
unless ($new_librarian =~ /^\d+$/) |
894
|
0 |
0 |
if ($strict_relations eq 'on') |
898
|
0 |
0 |
if ($librarian_list_val == $new_librarian) { } |
905
|
0 |
0 |
if ($found_librarian == 0) |
910
|
0 |
0 |
if ($librarians) { } |
912
|
0 |
0 |
if ($new_librarian == $librarian_present) { } |
922
|
0 |
0 |
if ($found) { } |
928
|
0 |
0 |
if ($rv > 1 or not $rv) |
934
|
0 |
0 |
if (@del_librarians) |
938
|
0 |
0 |
if ($$librarians[$i] == $del_librarian_id) |
941
|
0 |
0 |
if ($rv > 1 or not $rv) |
953
|
0 |
0 |
if ($output eq 'object') |
958
|
0 |
0 |
if ($output eq 'object') { } |
|
0 |
0 |
elsif ($output eq 'id') { } |
966
|
0 |
0 |
if (scalar @librarian_objects >= 1) { } |
980
|
0 |
0 |
unless ($sort_option) |
993
|
0 |
0 |
if ($sort_option eq 'name') |
1009
|
0 |
0 |
unless (scalar @overlap_ids >= 1) |
1025
|
0 |
0 |
unless ('MyLibrary::Term'->new('id', $overlap_id)) |
1031
|
0 |
0 |
if ($n == 1) { } |
1041
|
0 |
0 |
if ($n == 1) { } |
1073
|
0 |
0 |
unless ($opts{'resource_ids'}) |
1079
|
0 |
0 |
unless (scalar @resource_ids >= 1) |