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

(-)a/Koha/OAI/Server/Repository.pm (-2 / +5 lines)
Lines 211-222 sub get_biblio_marcxml { Link Here
211
    }
211
    }
212
    if ($record) {
212
    if ($record) {
213
213
214
        # Check if the bibliographic record is suppressed in OPAC
215
        if ( C4::Context->preference('OpacSuppression') && $biblio->opac_suppressed ) {
216
            return;
217
        }
218
214
        my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {};
219
        my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {};
215
        if ( $biblio->hidden_in_opac( { rules => $rules } ) ) {
220
        if ( $biblio->hidden_in_opac( { rules => $rules } ) ) {
216
            return;
221
            return;
217
        }
222
        }
218
223
219
        #TODO: Also hide record if OpacSuppression is in use
220
    }
224
    }
221
225
222
    return ( $record ? $record->as_xml_record( C4::Context->preference('marcflavour') ) : undef, $decoding_error );
226
    return ( $record ? $record->as_xml_record( C4::Context->preference('marcflavour') ) : undef, $decoding_error );
223
- 

Return to bug 37713