reintroducing an important line in TransformeMarcToKoha
authorPaul POULAIN <paul@koha-fr.org>
Tue, 14 Aug 2007 17:06:50 +0000 (19:06 +0200)
committerChris Cormack <crc@liblime.com>
Wed, 15 Aug 2007 02:32:52 +0000 (21:32 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
C4/Biblio.pm
C4/Search.pm

index 48c5056..38b5a39 100644 (file)
@@ -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'; }
index 26372e8..e6cecd3 100755 (executable)
@@ -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} =