Lines 1827-1832
Note that permanent location is a code, and location may be an authval.
Link Here
|
1827 |
.empty() |
1827 |
.empty() |
1828 |
.attr('class', 'alert alert-danger') |
1828 |
.attr('class', 'alert alert-danger') |
1829 |
.append(__x('Failure: Item {barcode} cannot be checked in', { barcode })) |
1829 |
.append(__x('Failure: Item {barcode} cannot be checked in', { barcode })) |
|
|
1830 |
} else if (response.error_code === 'reserved') { |
1831 |
const button = $('<button type="button">') |
1832 |
.addClass('btn btn-xs') |
1833 |
.text(__('Ignore holds and add to bundle')) |
1834 |
.on('click', function () { |
1835 |
addToBundle(url, { external_id: barcode, ignore_holds: true }); |
1836 |
}); |
1837 |
$('#addResult') |
1838 |
.empty() |
1839 |
.attr('class', 'alert alert-warning') |
1840 |
.append(__x('Warning: Item {barcode} is reserved', { barcode })) |
1841 |
.append(' ', button); |
1830 |
} else { |
1842 |
} else { |
1831 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1843 |
$('#addResult').replaceWith('<div id="addResult" class="alert alert-danger">'+_("Failure: Item '%s' belongs to another bundle").format(barcode)+'</div>'); |
1832 |
} |
1844 |
} |
1833 |
- |
|
|