reintroducing an important line in TransformeMarcToKoha

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Paul POULAIN 2007-08-14 19:06:50 +02:00 committed by Chris Cormack
parent 55ac115e61
commit 92f2909d57
2 changed files with 1 additions and 2 deletions

View 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'; }

View File

@ -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} =