View | Details | Raw Unified | Return to bug 25019
Collapse All | Expand All

(-)a/Koha/Filter/MARC/ViewPolicy.pm (-13 / +4 lines)
Lines 78-87 sub filter { Link Here
78
        push @records, $precord;
78
        push @records, $precord;
79
    }
79
    }
80
80
81
    my $params = $self->params;
82
    my $interface     = $params->{options}->{interface} // 'opac';
83
    my $frameworkcode = $params->{options}->{frameworkcode} // q{};
84
81
    foreach my $current_record (@records) {
85
    foreach my $current_record (@records) {
82
        my $result        = $current_record;
86
        my $result        = $current_record;
83
        my $interface     = $self->{options}->{interface} // 'opac';
84
        my $frameworkcode = $self->{options}->{frameworkcode} // q{};
85
        my $hide          = _should_hide_on_interface();
87
        my $hide          = _should_hide_on_interface();
86
88
87
        my $marcsubfieldstructure = GetMarcStructure( 0, $frameworkcode, { unsafe => 1 } );
89
        my $marcsubfieldstructure = GetMarcStructure( 0, $frameworkcode, { unsafe => 1 } );
Lines 153-168 sub _filter_field { Link Here
153
    return;
155
    return;
154
}
156
}
155
157
156
sub initialize {
157
    my $self  = shift;
158
    my $param = shift;
159
160
    my $options = $param->{options};
161
    $self->{options} = $options;
162
    $self->Koha::RecordProcessor::Base::initialize($param);
163
    return;
164
}
165
166
# Copied and modified from 3.10.x help file
158
# Copied and modified from 3.10.x help file
167
# marc_subfields_structure.hidden
159
# marc_subfields_structure.hidden
168
# allows you to select from 19 possible visibility conditions, 17 of which are implemented. They are the following:
160
# allows you to select from 19 possible visibility conditions, 17 of which are implemented. They are the following:
169
- 

Return to bug 25019