Bugzilla – Attachment 170164 Details for
Bug 32055
Remove GetImportRecordMatches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32055: Removed GetImportRecordMatches subroutine
Bug-32055-Removed-GetImportRecordMatches-subroutin.patch (text/plain), 1.95 KB, created by
Eric Garcia
on 2024-08-08 19:30:48 UTC
(
hide
)
Description:
Bug 32055: Removed GetImportRecordMatches subroutine
Filename:
MIME Type:
Creator:
Eric Garcia
Created:
2024-08-08 19:30:48 UTC
Size:
1.95 KB
patch
obsolete
>From c8df612cf9d684f950b4fd5f22b8b2cc4037e6ff Mon Sep 17 00:00:00 2001 >From: Eric Garcia <cubingguy714@gmail.com> >Date: Thu, 8 Aug 2024 19:13:40 +0000 >Subject: [PATCH] Bug 32055: Removed GetImportRecordMatches subroutine > >--- > C4/ImportBatch.pm | 37 ------------------------------------- > 1 file changed, 37 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 0cfd132edf..5e54df51ff 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -1478,43 +1478,6 @@ sub SetImportRecordStatus { > > } > >-=head2 GetImportRecordMatches >- >- my $results = GetImportRecordMatches($import_record_id, $best_only); >- >-=cut >- >-sub GetImportRecordMatches { >- my $import_record_id = shift; >- my $best_only = @_ ? shift : 0; >- >- my $dbh = C4::Context->dbh; >- # FIXME currently biblio only >- my $sth = $dbh->prepare_cached("SELECT title, author, biblionumber, >- candidate_match_id, score, record_type, >- chosen >- FROM import_records >- JOIN import_record_matches USING (import_record_id) >- LEFT JOIN biblio ON (biblionumber = candidate_match_id) >- WHERE import_record_id = ? >- ORDER BY score DESC, biblionumber DESC"); >- $sth->bind_param(1, $import_record_id); >- my $results = []; >- $sth->execute(); >- while (my $row = $sth->fetchrow_hashref) { >- if ($row->{'record_type'} eq 'auth') { >- $row->{'authorized_heading'} = GetAuthorizedHeading( { authid => $row->{'candidate_match_id'} } ); >- } >- next if ($row->{'record_type'} eq 'biblio' && not $row->{'biblionumber'}); >- push @$results, $row; >- last if $best_only; >- } >- $sth->finish(); >- >- return $results; >- >-} >- > =head2 SetImportRecordMatches > > SetImportRecordMatches($import_record_id, @matches); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32055
:
170163
|
170164
|
176454
|
179938
|
179939