From 3e33648693cced9902642431710c4f573685fb24 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 23 Aug 2024 13:39:08 +0000 Subject: [PATCH] Bug 31161: (QA follow-up) Remove FIXME Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- Koha/OAI/Server/Repository.pm | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Koha/OAI/Server/Repository.pm b/Koha/OAI/Server/Repository.pm index 7db7f874b6..cef649169f 100644 --- a/Koha/OAI/Server/Repository.pm +++ b/Koha/OAI/Server/Repository.pm @@ -195,16 +195,12 @@ sub get_biblio_marcxml { } if ($record) { - #FIXME: Syspref this? - my $hide_record = 1; - if ($hide_record) { - my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {}; - if ( $biblio->hidden_in_opac( { rules => $rules } ) ) { - return; - } - - #TODO: Also hide record if OpacSuppression is in use + my $rules = C4::Context->yaml_preference('OpacHiddenItems') // {}; + if ( $biblio->hidden_in_opac( { rules => $rules } ) ) { + return; } + + #TODO: Also hide record if OpacSuppression is in use } if ( $record && $expanded_avs ) { my $frameworkcode = GetFrameworkCode($biblionumber) || ''; -- 2.39.5