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

Return to bug 20954