[Koha-patches] [PATCH] bugfix breeding results of cataloging search has wrong id
Michael Hafen
mdhafen at tech.washk12.org
Tue Sep 1 18:03:37 CEST 2009
The breeding id, rather than coming from the database, was set by a counter.
Not so good links in the search results that way.
---
cataloguing/addbooks.pl | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/cataloguing/addbooks.pl b/cataloguing/addbooks.pl
index 00ccd7a..dd897e1 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},
};
--
1.6.0.4
More information about the Koha-patches
mailing list