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 60-65 Link Here
60
          <screen_msg_regex find="Greetings from Koha." replace="Welcome to your library!" />
60
          <screen_msg_regex find="Greetings from Koha." replace="Welcome to your library!" />
61
          <screen_msg_regex find="Invalid patron barcode." replace="Barcode not found, are you sure this is your library card?" />
61
          <screen_msg_regex find="Invalid patron barcode." replace="Barcode not found, are you sure this is your library card?" />
62
          <patron_attribute field="XY" code="CODE" />
62
          <patron_attribute field="XY" code="CODE" />
63
          <syspref-overrides>
64
              <AllFinesNeedOverride>0</AllFinesNeedOverride>
65
          </syspref-overrides>
63
      </login>
66
      </login>
64
  </accounts>
67
  </accounts>
65
68
Lines 100-103 in our case "ILS". Link Here
100
            retries="5" />
103
            retries="5" />
101
    </institution>
104
    </institution>
102
</institutions>
105
</institutions>
106
107
<!-- This section allows system preferences to be overridden on a global basis.
108
     If the same system preference is overridden at the login level, the login
109
     version will take precedence.
110
-->
111
<syspref-overrides>
112
      <AllFinesNeedOverride>0</AllFinesNeedOverride>
113
</syspref-overrides>
114
103
</acsconfig>
115
</acsconfig>
104
- 

Return to bug 20954