|
Lines 78-86
sub filter {
Link Here
|
| 78 |
push @records, $precord; |
78 |
push @records, $precord; |
| 79 |
} |
79 |
} |
| 80 |
|
80 |
|
| 81 |
my @results; |
|
|
| 82 |
foreach my $current_record (@records) { |
81 |
foreach my $current_record (@records) { |
| 83 |
my $result = $current_record->clone(); |
82 |
my $result = $current_record; |
| 84 |
my $interface = $self->{options}->{interface} // 'opac'; |
83 |
my $interface = $self->{options}->{interface} // 'opac'; |
| 85 |
my $frameworkcode = $self->{options}->{frameworkcode} // q{}; |
84 |
my $frameworkcode = $self->{options}->{frameworkcode} // q{}; |
| 86 |
my $hide = _should_hide_on_interface(); |
85 |
my $hide = _should_hide_on_interface(); |
|
Lines 103-117
sub filter {
Link Here
|
| 103 |
} |
102 |
} |
| 104 |
); |
103 |
); |
| 105 |
} |
104 |
} |
| 106 |
push @results, $result; |
|
|
| 107 |
} |
| 108 |
|
| 109 |
if ( scalar @results == 1 ) { |
| 110 |
return $results[0]; |
| 111 |
} |
| 112 |
else { |
| 113 |
return \@results; |
| 114 |
} |
105 |
} |
|
|
106 |
return; |
| 115 |
} |
107 |
} |
| 116 |
|
108 |
|
| 117 |
sub _filter_field { |
109 |
sub _filter_field { |