View | Details | Raw Unified | Return to bug 20954
Collapse All | Expand All

(-)a/C4/SIP/Sip/MsgType.pm (+13 lines)
Lines 331-336 sub handle { Link Here
331
    my $config = $server->{config};
331
    my $config = $server->{config};
332
    my $self;
332
    my $self;
333
333
334
    # Set system preference overrides, first global, then account level
335
    # Clear overrides from previous message handling first
336
    foreach my $key ( %ENV ) {
337
        delete $ENV{$key} if index($key, 'OVERRIDE_SYSPREF_') > 0;
338
    }
339
    foreach my $key ( keys %{ $config->{'syspref-overrides'} } ) {
340
        $ENV{"OVERRIDE_SYSPREF_$key"} = $config->{'syspref-overrides'}->{$key};
341
    }
342
    foreach my $key ( keys %{ $server->{account}->{'syspref-overrides'} } ) {
343
        $ENV{"OVERRIDE_SYSPREF_$key"} =
344
          $server->{account}->{'syspref-overrides'}->{$key};
345
    }
346
334
    #
347
    #
335
    # What's the field delimiter for variable length fields?
348
    # What's the field delimiter for variable length fields?
336
    # This can't be based on the account, since we need to know
349
    # This can't be based on the account, since we need to know
(-)a/etc/SIPconfig.xml (-1 / +12 lines)
Lines 57-62 Link Here
57
          <screen_msg_regex find="Greetings from Koha." replace="Welcome to your library!" />
57
          <screen_msg_regex find="Greetings from Koha." replace="Welcome to your library!" />
58
          <screen_msg_regex find="Invalid patron barcode." replace="Barcode not found, are you sure this is your library card?" />
58
          <screen_msg_regex find="Invalid patron barcode." replace="Barcode not found, are you sure this is your library card?" />
59
          <patron_attribute field="XY" code="CODE" />
59
          <patron_attribute field="XY" code="CODE" />
60
          <syspref-overrides>
61
              <AllFinesNeedOverride>0</AllFinesNeedOverride>
62
          </syspref-overrides>
60
      </login>
63
      </login>
61
  </accounts>
64
  </accounts>
62
65
Lines 97-100 in our case "ILS". Link Here
97
            retries="5" />
100
            retries="5" />
98
    </institution>
101
    </institution>
99
</institutions>
102
</institutions>
103
104
<!-- This section allows system preferences to be overridden on a global basis.
105
     If the same system preference is overridden at the login level, the login
106
     version will take precedence.
107
-->
108
<syspref-overrides>
109
      <AllFinesNeedOverride>0</AllFinesNeedOverride>
110
</syspref-overrides>
111
100
</acsconfig>
112
</acsconfig>
101
- 

Return to bug 20954