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

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

Return to bug 37713