Bug 36137: Make update_totalissues cron always skip the holds queue
To test: 1. Run the update_totalissues cron, the holds queue is updated. 2. APPLY PATCH, restart services 3. Run update_totalissues cron again, this time the holds queue should always be skipped. Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commit307acdf96b
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitbc8788cf93
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
fe41a554fa
commit
63e9de86f8
2 changed files with 4 additions and 2 deletions
|
@ -3019,6 +3019,8 @@ Update the total issue count for a particular bib record.
|
||||||
|
|
||||||
=item C<$value> is the absolute value that total issues count should be set to. If provided, C<$increase> is ignored.
|
=item C<$value> is the absolute value that total issues count should be set to. If provided, C<$increase> is ignored.
|
||||||
|
|
||||||
|
=item C<$skip_holds_queue> parameter to optionally skip updating the holds queue.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
|
@ -168,10 +168,10 @@ sub process_query {
|
||||||
if ( not $test_only ) {
|
if ( not $test_only ) {
|
||||||
my $ret;
|
my $ret;
|
||||||
if ( $incremental && $totalissues > 0 ) {
|
if ( $incremental && $totalissues > 0 ) {
|
||||||
$ret = UpdateTotalIssues( $biblionumber, $totalissues );
|
$ret = UpdateTotalIssues( $biblionumber, $totalissues, undef, 1 );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$ret = UpdateTotalIssues( $biblionumber, 0, $totalissues );
|
$ret = UpdateTotalIssues( $biblionumber, 0, $totalissues, 1 );
|
||||||
}
|
}
|
||||||
unless ($ret) {
|
unless ($ret) {
|
||||||
print "Error while processing bib $biblionumber\n" if $verbose;
|
print "Error while processing bib $biblionumber\n" if $verbose;
|
||||||
|
|
Loading…
Reference in a new issue