Lines 43-48
use C4::Installer::PerlModules;
Link Here
|
43 |
use Koha; |
43 |
use Koha; |
44 |
use Koha::DateUtils qw(dt_from_string output_pref); |
44 |
use Koha::DateUtils qw(dt_from_string output_pref); |
45 |
use Koha::Acquisition::Currencies; |
45 |
use Koha::Acquisition::Currencies; |
|
|
46 |
use Koha::BiblioFrameworks; |
46 |
use Koha::Patron::Categories; |
47 |
use Koha::Patron::Categories; |
47 |
use Koha::Patrons; |
48 |
use Koha::Patrons; |
48 |
use Koha::Caches; |
49 |
use Koha::Caches; |
Lines 50-55
use Koha::Config::SysPrefs;
Link Here
|
50 |
use Koha::Illrequest::Config; |
51 |
use Koha::Illrequest::Config; |
51 |
use Koha::SearchEngine::Elasticsearch; |
52 |
use Koha::SearchEngine::Elasticsearch; |
52 |
use Koha::Logger; |
53 |
use Koha::Logger; |
|
|
54 |
use Koha::Filter::MARC::ViewPolicy; |
53 |
|
55 |
|
54 |
use C4::Members::Statistics; |
56 |
use C4::Members::Statistics; |
55 |
|
57 |
|
Lines 517-522
$template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs;
Link Here
|
517 |
} |
519 |
} |
518 |
} |
520 |
} |
519 |
|
521 |
|
|
|
522 |
{ |
523 |
my @frameworkcodes = Koha::BiblioFrameworks->search->get_column('frameworkcode'); |
524 |
my @hidden_biblionumbers; |
525 |
push @frameworkcodes, ""; # it's not in the biblio_frameworks table! |
526 |
for my $frameworkcode ( @frameworkcodes ) { |
527 |
my $shouldhidemarc_opac = Koha::Filter::MARC::ViewPolicy->should_hide_marc( |
528 |
{ |
529 |
frameworkcode => $frameworkcode, |
530 |
interface => "opac" |
531 |
} |
532 |
); |
533 |
push @hidden_biblionumbers, { frameworkcode => $frameworkcode, interface => 'opac' } |
534 |
if $shouldhidemarc_opac->{biblionumber}; |
535 |
|
536 |
my $shouldhidemarc_intranet = Koha::Filter::MARC::ViewPolicy->should_hide_marc( |
537 |
{ |
538 |
frameworkcode => $frameworkcode, |
539 |
interface => "intranet" |
540 |
} |
541 |
); |
542 |
push @hidden_biblionumbers, { frameworkcode => $frameworkcode, interface => 'intranet' } |
543 |
if $shouldhidemarc_intranet->{biblionumber}; |
544 |
} |
545 |
$template->param( warnHiddenBiblionumbers => \@hidden_biblionumbers ); |
546 |
} |
547 |
|
520 |
my %versions = C4::Context::get_versions(); |
548 |
my %versions = C4::Context::get_versions(); |
521 |
|
549 |
|
522 |
$template->param( |
550 |
$template->param( |