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

(-)a/C4/SIP/ILS/Item.pm (-1 / +5 lines)
Lines 82-88 sub new { Link Here
82
    }
82
    }
83
    my $self = $item->unblessed;
83
    my $self = $item->unblessed;
84
    $self->{      'id'       } = $item->barcode;     # to SIP, the barcode IS the id.
84
    $self->{      'id'       } = $item->barcode;     # to SIP, the barcode IS the id.
85
    $self->{permanent_location}= $item->homebranch;
85
    if(C4::Context->preference('UseLocationAsAQInSIP')) {
86
        $self->{permanent_location}= $item->permanent_location;
87
    } else {
88
        $self->{permanent_location}= $item->homebranch;
89
    }
86
    $self->{'collection_code'} = $item->ccode;
90
    $self->{'collection_code'} = $item->ccode;
87
    $self->{  'call_number'  } = $item->itemcallnumber;
91
    $self->{  'call_number'  } = $item->itemcallnumber;
88
92
(-)a/installer/data/mysql/atomicupdate/sip-send-location-code.sql (+2 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type`) VALUES
2
('UseLocationAsAQInSIP', '0', '', 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +7 lines)
Lines 498-503 Circulation: Link Here
498
                  yes: Cumulate
498
                  yes: Cumulate
499
                  no: "Don't cumulate"
499
                  no: "Don't cumulate"
500
            - the restriction periods.
500
            - the restriction periods.
501
        -
502
            - Use
503
            - pref: UseLocationAsAQInSIP
504
              choices:
505
                  yes: permanent_location
506
                  no: homebranch
507
            - for AQ field in SIP protocol.
501
    Holds Policy:
508
    Holds Policy:
502
        -
509
        -
503
            - pref: AllowHoldItemTypeSelection
510
            - pref: AllowHoldItemTypeSelection
504
- 

Return to bug 20058