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

(-)a/C4/ILSDI/Services.pm (-7 / +9 lines)
Lines 956-963 sub _availability { Link Here
956
    my ($itemnumber) = @_;
956
    my ($itemnumber) = @_;
957
    my $item = Koha::Items->find($itemnumber);
957
    my $item = Koha::Items->find($itemnumber);
958
958
959
    use Koha::I18N;
960
959
    unless ( $item ) {
961
    unless ( $item ) {
960
        return ( undef, 'unknown', 'Error: could not retrieve availability for this ID', undef );
962
        return ( undef, __('unknown'), __('Error: could not retrieve availability for this ID'), undef );
961
    }
963
    }
962
964
963
    my $biblionumber = $item->biblioitemnumber;
965
    my $biblionumber = $item->biblioitemnumber;
Lines 966-982 sub _availability { Link Here
966
    my $itemcallnumber = $item->itemcallnumber;
968
    my $itemcallnumber = $item->itemcallnumber;
967
969
968
    if ( $item->notforloan ) {
970
    if ( $item->notforloan ) {
969
        return ( $biblionumber, 'not available', 'Not for loan', $location, $itemcallnumber );
971
        return ( $biblionumber, __('not available'), __('Not for loan'), $location, $itemcallnumber );
970
    } elsif ( $item->onloan ) {
972
    } elsif ( $item->onloan ) {
971
        return ( $biblionumber, 'not available', 'Checked out', $location, $itemcallnumber );
973
        return ( $biblionumber, __('not available'), __('Checked out'), $location, $itemcallnumber );
972
    } elsif ( $item->itemlost ) {
974
    } elsif ( $item->itemlost ) {
973
        return ( $biblionumber, 'not available', 'Item lost', $location, $itemcallnumber );
975
        return ( $biblionumber, __('not available'), __('Item lost'), $location, $itemcallnumber );
974
    } elsif ( $item->withdrawn ) {
976
    } elsif ( $item->withdrawn ) {
975
        return ( $biblionumber, 'not available', 'Item withdrawn', $location, $itemcallnumber );
977
        return ( $biblionumber, __('not available'), __('Item withdrawn'), $location, $itemcallnumber );
976
    } elsif ( $item->damaged ) {
978
    } elsif ( $item->damaged ) {
977
        return ( $biblionumber, 'not available', 'Item damaged', $location, $itemcallnumber );
979
        return ( $biblionumber, __('not available'), __('Item damaged'), $location, $itemcallnumber );
978
    } else {
980
    } else {
979
        return ( $biblionumber, 'available', undef, $location, $itemcallnumber );
981
        return ( $biblionumber, __('available'), undef, $location, $itemcallnumber );
980
    }
982
    }
981
}
983
}
982
984
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/ilsdi.tt (+2 lines)
Lines 124-129 Link Here
124
                                </dd>
124
                                </dd>
125
                                <dt><strong>return_fmt</strong> (Optional)</dt>
125
                                <dt><strong>return_fmt</strong> (Optional)</dt>
126
                                <dd>requests a particular format or set of formats in reporting availability</dd>
126
                                <dd>requests a particular format or set of formats in reporting availability</dd>
127
                                <dt><strong>language (Optional)</strong></dt>
128
                                <dd>requests a particular language for the output, default is the opac cookie language if set, the first language in opac language list or english</dd>
127
                            </dl>
129
                            </dl>
128
130
129
                            <h3>Example call</h3>
131
                            <h3>Example call</h3>
(-)a/opac/ilsdi.pl (-2 / +1 lines)
Lines 100-106 my %required = ( Link Here
100
# List of optional arguments
100
# List of optional arguments
101
my %optional = (
101
my %optional = (
102
    'Describe'            => [],
102
    'Describe'            => [],
103
    'GetAvailability'     => [ 'return_type', 'return_fmt' ],
103
    'GetAvailability'     => [ 'return_type', 'return_fmt', 'language' ],
104
    'GetRecords'          => ['schema'],
104
    'GetRecords'          => ['schema'],
105
    'GetAuthorityRecords' => ['schema'],
105
    'GetAuthorityRecords' => ['schema'],
106
    'LookupPatron'        => ['id_type'],
106
    'LookupPatron'        => ['id_type'],
107
- 

Return to bug 22347