Lines 40-46
use C4::Auth qw( check_cookie_auth get_template_and_user );
Link Here
|
40 |
use C4::Context; |
40 |
use C4::Context; |
41 |
use C4::Output qw( output_with_http_headers is_ajax output_html_with_http_headers ); |
41 |
use C4::Output qw( output_with_http_headers is_ajax output_html_with_http_headers ); |
42 |
use C4::Scrubber; |
42 |
use C4::Scrubber; |
43 |
use C4::Items qw( GetItemsInfo ); |
|
|
44 |
use C4::Tags qw( |
43 |
use C4::Tags qw( |
45 |
add_tag |
44 |
add_tag |
46 |
get_approval_rows |
45 |
get_approval_rows |
Lines 261-267
if ($loggedinuser) {
Link Here
|
261 |
next unless $record; |
260 |
next unless $record; |
262 |
my @hidden_items; |
261 |
my @hidden_items; |
263 |
if ($should_hide) { |
262 |
if ($should_hide) { |
264 |
my $items = $biblio->items; |
263 |
my $items = $biblio->items->search_ordered; |
265 |
my @all_itemnumbers = $items->get_column('itemnumber'); |
264 |
my @all_itemnumbers = $items->get_column('itemnumber'); |
266 |
my @items_to_show = $items->filter_by_visible_in_opac({ opac => 1, patron => $patron })->as_list; |
265 |
my @items_to_show = $items->filter_by_visible_in_opac({ opac => 1, patron => $patron })->as_list; |
267 |
@hidden_items = array_minus( @all_itemnumbers, @items_to_show ); |
266 |
@hidden_items = array_minus( @all_itemnumbers, @items_to_show ); |
268 |
- |
|
|