View | Details | Raw Unified | Return to bug 29418
Collapse All | Expand All

(-)a/C4/HoldsQueue.pm (-4 / +4 lines)
Lines 180-188 Top level function that turns reserves into tmp_holdsqueue and hold_fill_targets Link Here
180
sub CreateQueue {
180
sub CreateQueue {
181
    my $dbh   = C4::Context->dbh;
181
    my $dbh   = C4::Context->dbh;
182
182
183
    $dbh->do("DELETE FROM tmp_holdsqueue");  # clear the old table for new info
184
    $dbh->do("DELETE FROM hold_fill_targets");
185
186
    my $total_bibs            = 0;
183
    my $total_bibs            = 0;
187
    my $total_requests        = 0;
184
    my $total_requests        = 0;
188
    my $total_available_items = 0;
185
    my $total_available_items = 0;
Lines 201-209 sub CreateQueue { Link Here
201
198
202
    $branches_to_use = load_branches_to_pull_from($use_transport_cost_matrix);
199
    $branches_to_use = load_branches_to_pull_from($use_transport_cost_matrix);
203
200
204
    my $bibs_with_pending_requests = GetBibsWithPendingHoldRequests();
201
    my $bibs_to_process = GetBibsWithPendingHoldRequests();
205
202
206
    foreach my $biblionumber (@$bibs_with_pending_requests) {
203
    foreach my $biblionumber (@$bibs_with_pending_requests) {
204
        $dbh->do("DELETE FROM tmp_holdsqueue where biblionumber=?", undef, $biblionumber);  # clear the old table for new info
205
        $dbh->do("DELETE FROM hold_fill_targets where biblionumber=?", undef, $biblionumber);
206
207
        $total_bibs++;
207
        $total_bibs++;
208
        my $hold_requests   = GetPendingHoldRequestsForBib($biblionumber);
208
        my $hold_requests   = GetPendingHoldRequestsForBib($biblionumber);
209
        my $available_items = GetItemsAvailableToFillHoldRequestsForBib($biblionumber, $branches_to_use);
209
        my $available_items = GetItemsAvailableToFillHoldRequestsForBib($biblionumber, $branches_to_use);
(-)a/Koha/Biblio.pm (+2 lines)
Lines 527-532 sub get_marc_components { Link Here
527
527
528
    my $searchstr = $self->get_components_query;
528
    my $searchstr = $self->get_components_query;
529
529
530
    warn Data::Dumper::Dumper( $searchstr );
531
530
    my $components;
532
    my $components;
531
    if (defined($searchstr)) {
533
    if (defined($searchstr)) {
532
        my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::BIBLIOS_INDEX});
534
        my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::BIBLIOS_INDEX});
(-)a/Koha/SearchEngine/Zebra/QueryBuilder.pm (-1 / +2 lines)
Lines 127-132 sub build_authorities_query_compat { Link Here
127
sub clean_search_term {
127
sub clean_search_term {
128
    my ( $self, $term ) = @_;
128
    my ( $self, $term ) = @_;
129
129
130
    $term =~ s/([\s\\]*:\s*)+$//;
131
130
    return $term;
132
    return $term;
131
}
133
}
132
134
133
- 

Return to bug 29418