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

(-)a/C4/SIP/ILS/Item.pm (-4 / +8 lines)
Lines 81-90 sub new { Link Here
81
        return;
81
        return;
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
    $self->{permanent_location}            = $item->homebranch;
86
    $self->{'collection_code'} = $item->ccode;
86
    $self->{'collection_code'}             = $item->ccode;
87
    $self->{  'call_number'  } = $item->itemcallnumber;
87
    $self->{'call_number'}                 = $item->itemcallnumber;
88
    $self->{'shelving_location'}           = $item->location;
89
    $self->{'permanent_shelving_location'} = $item->permanent_location;
88
90
89
    my $it = $item->effective_itemtype;
91
    my $it = $item->effective_itemtype;
90
    my $itemtype = Koha::Database->new()->schema()->resultset('Itemtype')->find( $it );
92
    my $itemtype = Koha::Database->new()->schema()->resultset('Itemtype')->find( $it );
Lines 129-134 my %fields = ( Link Here
129
    barcode             => 0,
131
    barcode             => 0,
130
    onloan              => 0,
132
    onloan              => 0,
131
    collection_code     => 0,
133
    collection_code     => 0,
134
    shelving_location   => 0,
135
    permanent_shelving_location   => 0,
132
    call_number         => 0,
136
    call_number         => 0,
133
    enumchron           => 0,
137
    enumchron           => 0,
134
    location            => 0,
138
    location            => 0,
(-)a/C4/SIP/Sip/MsgType.pm (-1 / +10 lines)
Lines 671-677 sub handle_checkin { Link Here
671
        if ($item) {
671
        if ($item) {
672
            $resp .= maybe_add( FID_MEDIA_TYPE,           $item->sip_media_type );
672
            $resp .= maybe_add( FID_MEDIA_TYPE,           $item->sip_media_type );
673
            $resp .= maybe_add( FID_ITEM_PROPS,           $item->sip_item_properties );
673
            $resp .= maybe_add( FID_ITEM_PROPS,           $item->sip_item_properties );
674
            $resp .= maybe_add( FID_COLLECTION_CODE,      $item->collection_code );
674
            if ( my $CR = $server->{account}->{cr_item_field} ) {
675
                $resp .= maybe_add( FID_COLLECTION_CODE, $item->$CR );
676
            } else {
677
                $resp .= maybe_add( FID_COLLECTION_CODE, $item->collection_code );
678
            }
675
            $resp .= maybe_add( FID_CALL_NUMBER,          $item->call_number );
679
            $resp .= maybe_add( FID_CALL_NUMBER,          $item->call_number );
676
            $resp .= maybe_add( FID_DESTINATION_LOCATION, $item->destination_loc );
680
            $resp .= maybe_add( FID_DESTINATION_LOCATION, $item->destination_loc );
677
            $resp .= maybe_add( FID_HOLD_PATRON_ID,       $item->hold_patron_bcode );
681
            $resp .= maybe_add( FID_HOLD_PATRON_ID,       $item->hold_patron_bcode );
Lines 1140-1145 sub handle_item_information { Link Here
1140
        $resp .= maybe_add( FID_PERM_LOCN,    $item->permanent_location );
1144
        $resp .= maybe_add( FID_PERM_LOCN,    $item->permanent_location );
1141
        $resp .= maybe_add( FID_CURRENT_LOCN, $item->current_location );
1145
        $resp .= maybe_add( FID_CURRENT_LOCN, $item->current_location );
1142
        $resp .= maybe_add( FID_ITEM_PROPS,   $item->sip_item_properties );
1146
        $resp .= maybe_add( FID_ITEM_PROPS,   $item->sip_item_properties );
1147
        if ( my $CR = $server->{account}->{cr_item_field} ) {
1148
                $resp .= maybe_add( FID_COLLECTION_CODE, $item->$CR );
1149
        } else {
1150
          $resp .= maybe_add( FID_COLLECTION_CODE, $item->collection_code );
1151
        }
1143
1152
1144
        if ( ( $i = $item->fee ) != 0 ) {
1153
        if ( ( $i = $item->fee ) != 0 ) {
1145
            $resp .= add_field( FID_CURRENCY, $item->fee_currency );
1154
            $resp .= add_field( FID_CURRENCY, $item->fee_currency );
(-)a/etc/SIPconfig.xml (-1 / +1 lines)
Lines 51-56 Link Here
51
      <login id="lpl-sc-beacock" password="xyzzy"
51
      <login id="lpl-sc-beacock" password="xyzzy"
52
             delimiter="|" error-detect="enabled" institution="LPL"
52
             delimiter="|" error-detect="enabled" institution="LPL"
53
             send_patron_home_library_in_af="1"
53
             send_patron_home_library_in_af="1"
54
             cr_item_field="shelving_location"
54
             ae_field_template="[% patron.surname %][% IF patron.firstname %], [% patron.firstname %][% END %]"
55
             ae_field_template="[% patron.surname %][% IF patron.firstname %], [% patron.firstname %][% END %]"
55
             da_field_template="[% patron.surname %][% IF patron.firstname %], [% patron.firstname %][% END %]"
56
             da_field_template="[% patron.surname %][% IF patron.firstname %], [% patron.firstname %][% END %]"
56
             av_field_template="[% accountline.description %] [% accountline.amountoutstanding | format('%.2f') %]" >
57
             av_field_template="[% accountline.description %] [% accountline.amountoutstanding | format('%.2f') %]" >
57
- 

Return to bug 21979