- my $borcat = q{};
- if ( C4::Context->preference('OpacHiddenItemsExceptions') ) {
- # we need to fetch the borrower info here, so we can pass the category
- my $borrower = Koha::Patrons->find( { borrowernumber => $borrowernumber } );
- $borcat = $borrower ? $borrower->categorycode : $borcat;
- }