From 92f2909d57bfeccb5b3265ae63ff215a68655029 Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 14 Aug 2007 19:06:50 +0200 Subject: [PATCH] reintroducing an important line in TransformeMarcToKoha Signed-off-by: Chris Cormack --- C4/Biblio.pm | 1 + C4/Search.pm | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 48c5056a0a..38b5a3968d 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -2298,6 +2298,7 @@ sub TransformMarcToKoha { &TransformMarcToKohaOneField( "biblio", $field, $record, $result, $frameworkcode ); } + my $sth2 = $dbh->prepare("SHOW COLUMNS from biblioitems"); $sth2->execute; while ( ($field) = $sth2->fetchrow ) { if ( $field eq 'notes' ) { $field = 'bnotes'; } diff --git a/C4/Search.pm b/C4/Search.pm index 26372e86f2..e6cecd3d6f 100755 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -860,9 +860,7 @@ sub searchResults { for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) { my $marcrecord; $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] ); - my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, '' ); - # add image url if there is one if ( $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} =~ /^http:/ ) { $oldbiblio->{imageurl} = -- 2.39.2