| Lines 80-103
          my $warnIsRootUser   = (! $loggedinuser);
      
      
        Link Here | 
        
          | 80 | my $warnNoActiveCurrency = (! defined C4::Budgets->GetCurrency()); | 80 | my $warnNoActiveCurrency = (! defined C4::Budgets->GetCurrency()); | 
        
          | 81 | my @xml_config_warnings; | 81 | my @xml_config_warnings; | 
        
          | 82 |  | 82 |  | 
            
              |  |  | 83 | my $context = new C4::Context; | 
            
              | 84 |  | 
        
          | 83 | if ( ! defined C4::Context->config('zebra_bib_index_mode') ) { | 85 | if ( ! defined C4::Context->config('zebra_bib_index_mode') ) { | 
        
          | 84 |     push @xml_config_warnings, { | 86 |     push @xml_config_warnings, { | 
        
          | 85 |         error => 'zebra_bib_index_mode_warn' | 87 |         error => 'zebra_bib_index_mode_warn' | 
        
          | 86 |     }; | 88 |     }; | 
            
              |  |  | 89 |     if ($context->{'server'}->{'biblioserver'}->{'config'} !=~ /zebra-biblios-dom.cfg/) { | 
            
              | 90 |         push @xml_config_warnings, { | 
            
              | 91 |             error => 'zebra_bib_mode_seems_grs1' | 
            
              | 92 |         }; | 
            
              | 93 |     } | 
            
              | 94 |     else { | 
            
              | 95 |         push @xml_config_warnings, { | 
            
              | 96 |             error => 'zebra_bib_mode_seems_dom' | 
            
              | 97 |         }; | 
            
              | 98 |     } | 
        
          | 87 | } else { | 99 | } else { | 
        
          | 88 |     push @xml_config_warnings, { error => 'zebra_bib_grs_warn' } | 100 |     push @xml_config_warnings, { error => 'zebra_bib_grs_warn' } | 
        
          | 89 |         if C4::Context->config('zebra_bib_index_mode') eq 'grs1'; | 101 |         if C4::Context->config('zebra_bib_index_mode') eq 'grs1'; | 
        
          | 90 | } | 102 | } | 
        
          | 91 |  | 103 |  | 
            
              |  |  | 104 | if ( (C4::Context->config('zebra_bib_index_mode') eq 'dom') && ($context->{'server'}->{'biblioserver'}->{'config'} !=~ /zebra-biblios-dom.cfg/) ) { | 
            
              | 105 |     push @xml_config_warnings, { | 
            
              | 106 |         error => 'zebra_bib_index_mode_mismatch_warn' | 
            
              | 107 |     }; | 
            
              | 108 | } | 
            
              | 109 |  | 
            
              | 110 | if ( (C4::Context->config('zebra_auth_index_mode') eq 'grs1') && ($context->{'server'}->{'biblioserver'}->{'config'} =~ /zebra-biblios-dom.cfg/) ) { | 
            
              | 111 |     push @xml_config_warnings, { | 
            
              | 112 |         error => 'zebra_bib_index_mode_mismatch_warn' | 
            
              | 113 |     }; | 
            
              | 114 | } | 
            
              | 115 |  | 
        
          | 92 | if ( ! defined C4::Context->config('zebra_auth_index_mode') ) { | 116 | if ( ! defined C4::Context->config('zebra_auth_index_mode') ) { | 
        
          | 93 |     push @xml_config_warnings, { | 117 |     push @xml_config_warnings, { | 
        
          | 94 |         error => 'zebra_auth_index_mode_warn' | 118 |         error => 'zebra_auth_index_mode_warn' | 
        
          | 95 |     }; | 119 |     }; | 
            
              |  |  | 120 |     if ($context->{'server'}->{'authorityserver'}->{'config'} !=~ /zebra-authorities-dom.cfg/) { | 
            
              | 121 |         push @xml_config_warnings, { | 
            
              | 122 |             error => 'zebra_auth_mode_seems_grs1' | 
            
              | 123 |         }; | 
            
              | 124 |     } | 
            
              | 125 |     else { | 
            
              | 126 |         push @xml_config_warnings, { | 
            
              | 127 |             error => 'zebra_auth_mode_seems_dom' | 
            
              | 128 |         }; | 
            
              | 129 |     } | 
        
          | 96 | } else { | 130 | } else { | 
        
          | 97 |     push @xml_config_warnings, { error => 'zebra_auth_grs_warn' } | 131 |     push @xml_config_warnings, { error => 'zebra_auth_grs_warn' } | 
        
          | 98 |         if C4::Context->config('zebra_auth_index_mode') eq 'grs1'; | 132 |         if C4::Context->config('zebra_auth_index_mode') eq 'grs1'; | 
        
          | 99 | } | 133 | } | 
        
          | 100 |  | 134 |  | 
            
              |  |  | 135 | if ( (C4::Context->config('zebra_auth_index_mode') eq 'dom') && ($context->{'server'}->{'authorityserver'}->{'config'} !=~ /zebra-authorities-dom.cfg/) ) { | 
            
              | 136 |     push @xml_config_warnings, { | 
            
              | 137 |         error => 'zebra_auth_index_mode_mismatch_warn' | 
            
              | 138 |     }; | 
            
              | 139 | } | 
            
              | 140 |  | 
            
              | 141 | if ( (C4::Context->config('zebra_auth_index_mode') eq 'grs1') && ($context->{'server'}->{'authorityserver'}->{'config'} =~ /zebra-authorities-dom.cfg/) ) { | 
            
              | 142 |     push @xml_config_warnings, { | 
            
              | 143 |         error => 'zebra_auth_index_mode_mismatch_warn' | 
            
              | 144 |     }; | 
            
              | 145 | } | 
            
              | 146 |  | 
        
          | 101 | # Test QueryParser configuration sanity | 147 | # Test QueryParser configuration sanity | 
        
          | 102 | if ( C4::Context->preference( 'UseQueryParser' ) ) { | 148 | if ( C4::Context->preference( 'UseQueryParser' ) ) { | 
        
          | 103 |     # Get the QueryParser configuration file name | 149 |     # Get the QueryParser configuration file name |