From a5d298ad45012851dd7cfb17b7237bf63c793fe3 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Tue, 1 Sep 2009 10:03:37 -0600 Subject: [PATCH] bugfix breeding results of cataloging search has wrong id The breeding id, rather than coming from the database, was set by a counter. Not so good links in the search results that way. Signed-off-by: Galen Charlton --- cataloguing/addbooks.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index d52977267c..68367f700b 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -111,14 +111,13 @@ if ($query) { ( $countbr, @resultsbr ) = BreedingSearch( $title, $isbn ); } my $breeding_loop = []; -my $id = 0; for my $resultsbr (@resultsbr) { push @{$breeding_loop}, { - id => $id++, + id => $resultsbr->{import_record_id}, isbn => $resultsbr->{isbn}, copyrightdate => $resultsbr->{copyrightdate}, editionstatement => $resultsbr->{editionstatement}, - file => $resultsbr->{file}, + file => $resultsbr->{file_name}, title => $resultsbr->{title}, author => $resultsbr->{author}, }; -- 2.39.5