fix for 1913: Remove opaclargeimage system preference
[koha_fer] / admin / systempreferences.pl
index f7523fb..d7a22e6 100755 (executable)
@@ -49,7 +49,6 @@ use C4::Languages qw(getTranslatedLanguages);
 use C4::ClassSource;
 use C4::Log;
 use C4::Output;
-use C4::Context;
 
 # use Smart::Comments;
 
@@ -69,6 +68,8 @@ my %tabsysprefs;
     $tabsysprefs{acquisitions}="Acquisitions";
     $tabsysprefs{gist}="Acquisitions";
     $tabsysprefs{emailPurchaseSuggestions}="Acquisitions";
+       $tabsysprefs{RenewSerialAddsSuggestion}="Acquisitions";
+    $tabsysprefs{serialsadditems}="Acquisitions";
 
 # Admin
     $tabsysprefs{singleBranchMode}="Admin";
@@ -147,6 +148,10 @@ my %tabsysprefs;
     $tabsysprefs{previousIssuesDefaultSortOrder}="Circulation";
     $tabsysprefs{todaysIssuesDefaultSortOrder}="Circulation";
     $tabsysprefs{HomeOrHoldingBranch}="Circulation";
+       $tabsysprefs{RandomizeHoldsQueueWeight}="Circulation";
+       $tabsysprefs{StaticHoldsQueueWeight}="Circulation";
+    $tabsysprefs{AllowOnShelfHolds}="Circulation";
+    $tabsysprefs{AllowHoldsOnDamagedItems}="Circulation";
 
 # Staff Client
     $tabsysprefs{TemplateEncoding}="StaffClient";
@@ -174,16 +179,12 @@ my %tabsysprefs;
     $tabsysprefs{NoReturnSetLost}="Patrons";
     $tabsysprefs{MaxFine}="Patrons";
     $tabsysprefs{NotifyBorrowerDeparture}="Patrons";
+    $tabsysprefs{AddPatronLists}="Patrons";
     $tabsysprefs{PatronsPerPage}="Patrons";
-
-# FRBR
-    $tabsysprefs{FRBRizeEditions}="FRBR";
-    $tabsysprefs{XISBN}="FRBR";
-    $tabsysprefs{OCLCAffiliateID}="FRBR";
-    $tabsysprefs{XISBNDailyLimit}="FRBR";
-    $tabsysprefs{PINESISBN}="FRBR";
-    $tabsysprefs{ThingISBN}="FRBR";
-    $tabsysprefs{OPACFRBRizeEditions}="FRBR";
+    $tabsysprefs{ExtendedPatronAttributes}="Patrons";
+    $tabsysprefs{AutoEmailOpacUser}="Patrons";
+    $tabsysprefs{AutoEmailPrimaryAddress}="Patrons";
+    $tabsysprefs{EnhancedMessagingPreferences}="Patrons";
 
 # I18N/L10N
     $tabsysprefs{dateformat}="I18N/L10N";
@@ -207,22 +208,46 @@ my %tabsysprefs;
     $tabsysprefs{sortbynonfiling}="Searching";
     $tabsysprefs{QueryAutoTruncate}="Searching";
     $tabsysprefs{QueryRemoveStopwords}="Searching";
+    $tabsysprefs{AdvancedSearchTypes}="Searching";
 
-# Amazon.com
-    $tabsysprefs{AmazonContent}="Amazon";
-    $tabsysprefs{AWSAccessKeyID}="Amazon";
-    $tabsysprefs{AmazonLocale}="Amazon";
-    $tabsysprefs{AmazonAssocTag}="Amazon";
-    $tabsysprefs{AmazonSimilarItems}="Amazon";
-    $tabsysprefs{OPACAmazonContent}="Amazon";
-    $tabsysprefs{OPACAmazonSimilarItems}="Amazon";
+# EnhancedContent
+   $tabsysprefs{AmazonContent}="EnhancedContent";
+   $tabsysprefs{AWSAccessKeyID}="EnhancedContent";
+   $tabsysprefs{AmazonLocale}="EnhancedContent";
+   $tabsysprefs{AmazonAssocTag}="EnhancedContent";
+   $tabsysprefs{AmazonSimilarItems}="EnhancedContent";
+   $tabsysprefs{OPACAmazonContent}="EnhancedContent";
+   $tabsysprefs{OPACAmazonSimilarItems}="EnhancedContent";
+
+# Baker & Taylor 
+   $tabsysprefs{BakerTaylorBookstoreURL} = 'EnhancedContent';
+   $tabsysprefs{BakerTaylorEnabled}      = 'EnhancedContent';
+   $tabsysprefs{BakerTaylorPassword}     = 'EnhancedContent';
+   $tabsysprefs{BakerTaylorUsername}     = 'EnhancedContent';
+# FRBR    
+   $tabsysprefs{FRBRizeEditions}="EnhancedContent";
+   $tabsysprefs{XISBN}="EnhancedContent";
+   $tabsysprefs{OCLCAffiliateID}="EnhancedContent";
+   $tabsysprefs{XISBNDailyLimit}="EnhancedContent";
+   $tabsysprefs{PINESISBN}="EnhancedContent";
+   $tabsysprefs{ThingISBN}="EnhancedContent";
+   $tabsysprefs{OPACFRBRizeEditions}="EnhancedContent";
+# Tags
+   $tabsysprefs{TagsEnabled}            = 'EnhancedContent';
+   $tabsysprefs{TagsExternalDictionary} = 'EnhancedContent';
+   $tabsysprefs{TagsInputOnDetail}      = 'EnhancedContent';
+   $tabsysprefs{TagsInputOnList}        = 'EnhancedContent';
+   $tabsysprefs{TagsShowOnDetail}       = 'EnhancedContent';
+   $tabsysprefs{TagsShowOnList}         = 'EnhancedContent';
+   $tabsysprefs{TagsModeration}         = 'EnhancedContent';
+   $tabsysprefs{GoogleJackets}                         = 'EnhancedContent';
+   $tabsysprefs{AuthorisedValueImages}  = "EnhancedContent";
 
 # OPAC
     $tabsysprefs{BiblioDefaultView}="OPAC";
     $tabsysprefs{LibraryName}="OPAC";
     $tabsysprefs{opaccolorstylesheet}="OPAC";
     $tabsysprefs{opaccredits}="OPAC";
-    $tabsysprefs{opaclargeimage}="OPAC";
     $tabsysprefs{opaclayoutstylesheet}="OPAC";
     $tabsysprefs{OpacNav}="OPAC";
     $tabsysprefs{opacsmallimage}="OPAC";
@@ -231,9 +256,8 @@ my %tabsysprefs;
     $tabsysprefs{opacuserjs}="OPAC";
     $tabsysprefs{SubscriptionHistory}="OPAC";
     $tabsysprefs{opacheader}="OPAC";
-
-    $tabsysprefs{hideBiblioNumber}="OPAC";
     $tabsysprefs{noOPACUserLogin}="OPAC";
+    $tabsysprefs{hideBiblioNumber}="OPAC";
     $tabsysprefs{OPACDisplayExtendedSubInfo}="OPAC";
     $tabsysprefs{OpacMainUserBlock}="OPAC";
     $tabsysprefs{OPACSubscriptionDisplay}="OPAC";
@@ -265,6 +289,10 @@ my %tabsysprefs;
     $tabsysprefs{OpacBrowser}="OPAC";
     $tabsysprefs{kohaspsuggest} = "OPAC";
     $tabsysprefs{OpacRenewalAllowed} = "OPAC";
+    $tabsysprefs{OPACItemHolds} = "OPAC";
+    $tabsysprefs{OPACGroupResults}="OPAC";
+    $tabsysprefs{XSLTDetailsDisplay}="OPAC";
+    $tabsysprefs{XSLTResultsDisplay}="OPAC";
 
 # LOGFeatures
     $tabsysprefs{CataloguingLog}  = "Logs";
@@ -282,22 +310,6 @@ my %tabsysprefs;
    $tabsysprefs{'OAI-PMH:Set'}       = "OAI-PMH";
    $tabsysprefs{'OAI-PMH:Subset'}    = "OAI-PMH";
 
-# Tags
-   $tabsysprefs{TagsEnabled}            = 'Tags';
-   $tabsysprefs{TagsExternalDictionary} = 'Tags';
-   $tabsysprefs{TagsInputOnDetail}      = 'Tags';
-   $tabsysprefs{TagsInputOnList}        = 'Tags';
-   $tabsysprefs{TagsShowOnDetail}       = 'Tags';
-   $tabsysprefs{TagsShowOnList}         = 'Tags';
-   $tabsysprefs{TagsModeration}         = 'Tags';
-
-# Baker & Taylor 
-   $tabsysprefs{BakerTaylorBookstoreURL} = 'BakerTaylor';
-   $tabsysprefs{BakerTaylorEnabled}      = 'BakerTaylor';
-   $tabsysprefs{BakerTaylorPassword}     = 'BakerTaylor';
-   $tabsysprefs{BakerTaylorUsername}     = 'BakerTaylor';
-
-
 sub StringSearch  {
     my ($searchstring,$type)=@_;
     my $dbh = C4::Context->dbh;
@@ -316,7 +328,7 @@ sub StringSearch  {
         while (my $data=$sth->fetchrow_hashref){
             $data->{value} =~ s/</&lt;/g;
             $data->{value} =~ s/>/&gt;/g;
-            $data->{value}=substr($data->{value},0,100)."..." if length($data->{value}) >100;
+            $data->{value}=substr($data->{value},0,60)."..." if length($data->{value}) >60;
             push(@results,$data);
             $cnt++;
         }
@@ -330,7 +342,7 @@ sub StringSearch  {
                 while (my $data=$sth->fetchrow_hashref){
                     $data->{value} =~ s/</&lt;/g;
                     $data->{value} =~ s/>/&gt;/g;
-                    $data->{value}=substr($data->{value},0,100)."..." if length($data->{value}) >100;
+                    $data->{value}=substr($data->{value},0,60)."..." if length($data->{value}) >60;
                     push(@results,$data);
                     $cnt++;
                 }
@@ -347,7 +359,7 @@ sub StringSearch  {
         my $sth=$dbh->prepare($strsth);
         $sth->execute();
         while (my $data=$sth->fetchrow_hashref){
-            $data->{value}=substr($data->{value},0,100);
+            $data->{value}=substr($data->{value},0,60);
             push(@results,$data);
             $cnt++;
         }