Enhance bib range handling and update version code to 4.72.749

This commit introduces a new parameter to the `fxInfosBibRange` function to conditionally include gaps in the statistics calculation, improving data accuracy. Additionally, the AJAX handler is updated to support a 'lite' mode for optimized data retrieval. JavaScript functions are modified to pass this new option, enhancing the overall functionality of the bib assignments. The version code is incremented to reflect these changes.
This commit is contained in:
2026-07-08 10:04:02 -04:00
parent c2972aa015
commit a7e027177c
4 changed files with 15 additions and 7 deletions

View File

@ -95,7 +95,8 @@
bibBatchProgressHide();
}
function bibAfterBatchGoSuccess(row, data, isResetMode) {
function bibAfterBatchGoSuccess(row, data, isResetMode, options) {
options = options || {};
let existing = document.querySelector('.epr-row-view');
if (existing) {
existing.remove();
@ -105,7 +106,7 @@
row.insertAdjacentHTML('afterend', data.html);
}
bibAfterBatchGoRefreshOnly(row, isResetMode);
bibAfterBatchGoRefreshOnly(row, isResetMode, options);
}
function bibAfterBatchGoRefreshOnly(row, isResetMode, options) {
@ -148,6 +149,7 @@
var useLoader = options.loader !== false;
var skipAnomalies = options.skipAnomalies === true;
var refreshLite = options.refreshLite === true || isResetMode === true;
return bibFetch('/ajax_bib_range.php', {
method: 'POST',
@ -156,6 +158,7 @@
'action=refresh_ranges'
+ '&epr_id=' + encodeURIComponent(row.dataset.eprId)
+ '&mode=assign'
+ (refreshLite ? '&lite=1' : '')
+ bibAjaxLangSuffix()
}, { loader: useLoader })
.then(function (res) {