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

(-)a/C4/SIP/ILS/Item.pm (-1 / +2 lines)
Lines 264-270 sub sip_circulation_status { Link Here
264
    my $self = shift;
264
    my $self = shift;
265
    my $server = shift;
265
    my $server = shift;
266
266
267
    my $missing_status = $server->{account}->{missing_lost_status};
267
    # Defines what lost status means "missing" for this SIP account
268
    my $missing_status = $server->{account}->{lost_status_for_missing};
268
269
269
    if ( $self->{_object}->get_transfer ) {
270
    if ( $self->{_object}->get_transfer ) {
270
        return '10'; # in transit between libraries
271
        return '10'; # in transit between libraries
(-)a/etc/SIPconfig.xml (-1 / +1 lines)
Lines 80-86 Link Here
80
             format_due_date="0"
80
             format_due_date="0"
81
             inhouse_item_types=""
81
             inhouse_item_types=""
82
             inhouse_patron_categories=""
82
             inhouse_patron_categories=""
83
             missing_lost_status="4"
83
             lost_status_for_missing="4" <!-- defines which Koha lost status will return the circulation status 13 ( i.e. missing ) for this account -->
84
             blocked_item_types="VM|MU"
84
             blocked_item_types="VM|MU"
85
             seen_on_item_information="mark_found"> <!-- could be "keep_lost", empty to disable -->
85
             seen_on_item_information="mark_found"> <!-- could be "keep_lost", empty to disable -->
86
             <!-- lost_block_checkout sets flag if patron has more than the given current checkouts that are lost ( itemlost > 0 by default ) -->
86
             <!-- lost_block_checkout sets flag if patron has more than the given current checkouts that are lost ( itemlost > 0 by default ) -->
(-)a/t/db_dependent/SIP/Transaction.t (-2 / +1 lines)
Lines 1116-1122 subtest item_circulation_status => sub { Link Here
1116
    $sip_item = C4::SIP::ILS::Item->new( $item->barcode );
1116
    $sip_item = C4::SIP::ILS::Item->new( $item->barcode );
1117
    $status   = $sip_item->sip_circulation_status;
1117
    $status   = $sip_item->sip_circulation_status;
1118
    is( $status, '12', "Item circulation status is lost" );
1118
    is( $status, '12', "Item circulation status is lost" );
1119
    $status = $sip_item->sip_circulation_status( { account => { missing_lost_status => "1" } } );
1119
    $status = $sip_item->sip_circulation_status( { account => { lost_status_for_missing => "1" } } );
1120
    is( $status, '13', "Item circulation status is missing" );
1120
    is( $status, '13', "Item circulation status is missing" );
1121
    $item->itemlost(0)->store();
1121
    $item->itemlost(0)->store();
1122
1122
1123
- 

Return to bug 34868