From 785e2f7ef646ebb995e9dbf726c84c3768e2a9d6 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 --- 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 7db7f874b6d..cef649169f9 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.2