From 9cd7de6f98089ad47b4655071a0294a050882c6e 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 Signed-off-by: Henri-Damien LAURENT --- cataloguing/addbooks.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl index 00ccd7ad65..dd897e1549 100755 --- a/cataloguing/addbooks.pl +++ b/cataloguing/addbooks.pl @@ -110,14 +110,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