|
Lines 1976-1981
Note that permanent location is a code, and location may be an authval.
Link Here
|
| 1976 |
.empty() |
1976 |
.empty() |
| 1977 |
.attr('class', 'alert alert-danger') |
1977 |
.attr('class', 'alert alert-danger') |
| 1978 |
.append(__x('Failure: Item {barcode} cannot be checked in', { barcode })) |
1978 |
.append(__x('Failure: Item {barcode} cannot be checked in', { barcode })) |
|
|
1979 |
} else if (response.error_code === 'reserved') { |
| 1980 |
const button = $('<button type="button">') |
| 1981 |
.addClass('btn btn-xs') |
| 1982 |
.text(__('Ignore holds and add to bundle')) |
| 1983 |
.on('click', function () { |
| 1984 |
addToBundle(url, { external_id: barcode, ignore_holds: true }); |
| 1985 |
}); |
| 1986 |
$('#addResult') |
| 1987 |
.empty() |
| 1988 |
.attr('class', 'alert alert-warning') |
| 1989 |
.append(__x('Warning: Item {barcode} is reserved', { barcode })) |
| 1990 |
.append(' ', button); |
| 1979 |
} else { |
1991 |
} else { |
| 1980 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1992 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
| 1981 |
} |
1993 |
} |
| 1982 |
- |
|
|