use C4::Context;
use C4::Koha;
use C4::Languages;
+use C4::ClassSource;
use C4::Output;
use C4::Context;
$tabsysprefs{Intranet_includes}="Admin";
$tabsysprefs{AutoLocation}="Admin";
$tabsysprefs{DebugLevel}="Admin";
+ $tabsysprefs{SessionStorage}="Admin";
# Authorities
$tabsysprefs{authoritysep}="Authorities";
$tabsysprefs{AuthDisplayHierarchy}="Authorities";
+ $tabsysprefs{dontmerge}="Authorities";
+ $tabsysprefs{BiblioAddsAuthorities}="Authorities";
# Catalogue
$tabsysprefs{advancedMARCEditor}="Catalogue";
$tabsysprefs{autoBarcode}="Catalogue";
$tabsysprefs{NoZebra}="Catalogue";
$tabsysprefs{NoZebraIndexes}="Catalogue";
$tabsysprefs{ReceiveBackIssues}="Catalogue";
+ $tabsysprefs{DefaultClassificationSource}="Catalogue";
+ $tabsysprefs{RoutingSerials}="Catalogue";
# Circulation
$tabsysprefs{maxoutstanding}="Circulation";
$tabsysprefs{TransfersMaxDaysWarning}="Circulation";
$tabsysprefs{useDaysMode}="Circulation";
$tabsysprefs{ReservesNeedReturns}="Circulation";
+ $tabsysprefs{CircAutocompl}="Circulation";
# Intranet
$tabsysprefs{TemplateEncoding}="Intranet";
$tabsysprefs{patronimages}="Members";
$tabsysprefs{MinPasswordLength}="Members";
$tabsysprefs{uppercasesurnames}="Members";
+ $tabsysprefs{NoReturnSetLost}="Members";
+ $tabsysprefs{MaxFine}="Members";
+ $tabsysprefs{NotifyBorrowerDeparture}="Members";
# OPAC
$tabsysprefs{AmazonAssocTag}="OPAC";
$tabsysprefs{opacheader}="OPAC";
# OPACFeatures
+ $tabsysprefs{SearchMyLibraryFirst}="OPACFeatures";
$tabsysprefs{Disable_Dictionary}="OPACFeatures";
$tabsysprefs{hidelostitems}="OPACFeatures";
$tabsysprefs{opacbookbag}="OPACFeatures";
push @options, { option => $theme, counter => $counter };
$counter++;
}
+ } elsif ($data->{'type'} eq 'ClassSource') {
+ $template->param('type-choice' => 1);
+ my $type='';
+ @options=();
+ my $sources = GetClassSources();
+ my $counter=0;
+ foreach my $cn_source (sort keys %$sources) {
+ if ($cn_source eq $data->{'value'}) {
+ push @options, { option => $cn_source, counter => $counter, selected => 1 };
+ } else {
+ push @options, { option => $cn_source, counter => $counter };
+ }
+ $counter++;
+ }
} elsif ($data->{'type'} eq 'Languages') {
$template->param('type-choice' => 1);
my $type='';