Lines 1803-1808
Note that permanent location is a code, and location may be an authval.
Link Here
|
1803 |
.empty() |
1803 |
.empty() |
1804 |
.attr('class', 'alert alert-danger') |
1804 |
.attr('class', 'alert alert-danger') |
1805 |
.append(__x('Failure: Item {barcode} cannot be checked in', { barcode })) |
1805 |
.append(__x('Failure: Item {barcode} cannot be checked in', { barcode })) |
|
|
1806 |
} else if (response.error_code === 'reserved') { |
1807 |
const button = $('<button type="button">') |
1808 |
.addClass('btn btn-xs') |
1809 |
.text(__('Ignore holds and add to bundle')) |
1810 |
.on('click', function () { |
1811 |
addToBundle(url, { external_id: barcode, ignore_holds: true }); |
1812 |
}); |
1813 |
$('#addResult') |
1814 |
.empty() |
1815 |
.attr('class', 'alert alert-warning') |
1816 |
.append(__x('Warning: Item {barcode} is reserved', { barcode })) |
1817 |
.append(' ', button); |
1806 |
} else { |
1818 |
} else { |
1807 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1819 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1808 |
} |
1820 |
} |
1809 |
- |
|
|