Bug 32250: Linking authorities does not change holdability

If the only change is a linked heading, we don't need to rebuild
the holds queue

To test:
1 - Set preference RealTimeHoldsQueue to enable
2 - Run link_bibs_to_authorities
3 - Note holds queue jobs generated
4 - Apply patch
5 - repeat
6 - No holds queue updates

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Nick Clemens 2023-01-13 19:42:53 +00:00 committed by Tomas Cohen Arazi
parent b7feb64619
commit d29e5c6e0f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -226,7 +226,7 @@ sub process_bib {
);
}
if ( not $test_only ) {
ModBiblio( $record, $biblionumber, $frameworkcode, { disable_autolink => 1 });
ModBiblio( $record, $biblionumber, $frameworkcode, { disable_autolink => 1, skip_holds_queue => 1 });
#Last param is to note ModBiblio was called from linking script and bib should not be linked again
$num_bibs_modified++;
}