|
Lines 51-58
use C4::Koha;
Link Here
|
| 51 |
use C4::Tags qw(get_tags); |
51 |
use C4::Tags qw(get_tags); |
| 52 |
use C4::SocialData; |
52 |
use C4::SocialData; |
| 53 |
use C4::External::OverDrive; |
53 |
use C4::External::OverDrive; |
| 54 |
use C4::Members qw(GetMember); |
|
|
| 55 |
|
54 |
|
|
|
55 |
use Koha::Libraries; |
| 56 |
use Koha::ItemTypes; |
56 |
use Koha::ItemTypes; |
| 57 |
use Koha::LibraryCategories; |
57 |
use Koha::LibraryCategories; |
| 58 |
use Koha::Ratings; |
58 |
use Koha::Ratings; |
|
Lines 632-639
my $search_context = {};
Link Here
|
| 632 |
$search_context->{'interface'} = 'opac'; |
632 |
$search_context->{'interface'} = 'opac'; |
| 633 |
if (C4::Context->preference('OpacHiddenItemsExceptions')){ |
633 |
if (C4::Context->preference('OpacHiddenItemsExceptions')){ |
| 634 |
# we need to fetch the borrower info here, so we can pass the category |
634 |
# we need to fetch the borrower info here, so we can pass the category |
| 635 |
my $borrower = GetMember( borrowernumber => $borrowernumber ); |
635 |
my $borrower = Koha::Patrons->find( { borrowernumber => $borrowernumber } ); |
| 636 |
$search_context->{'category'} = $borrower->{'categorycode'}; |
636 |
$search_context->{'category'} = $borrower->categorycode; |
| 637 |
} |
637 |
} |
| 638 |
|
638 |
|
| 639 |
for (my $i=0;$i<@servers;$i++) { |
639 |
for (my $i=0;$i<@servers;$i++) { |
| 640 |
- |
|
|