From 795463f55b661b8e16742d78a9153712a7a170bd Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Mon, 17 Dec 2007 20:25:02 -0600 Subject: [PATCH] fix for bug 1604: when doing a 'scan', "count" isn't displayed Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 15 ++++++--------- .../prog/en/modules/catalogue/results.tmpl | 2 +- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 9c7e7a1e96..a108525db2 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -429,8 +429,8 @@ sub getRecords { my $tmprecord = MARC::Record->new(); $tmprecord->encoding('UTF-8'); my $tmptitle; - - # srote the minimal record in author/title (depending on MARC flavour) + my $tmpauthor; + # the minimal record in author/title (depending on MARC flavour) if ( C4::Context->preference("marcflavour") eq "UNIMARC" ) { @@ -441,15 +441,12 @@ sub getRecords { ); } else { - $tmptitle = MARC::Field->new( - '245', ' ', ' ', - a => $term, - b => $occ - ); + $tmptitle = MARC::Field->new('245', ' ', ' ',a => $term,); + $tmpauthor = MARC::Field->new('100', ' ', ' ',a => $occ,); } $tmprecord->append_fields($tmptitle); - $results_hash->{'RECORDS'}[$j] = - $tmprecord->as_usmarc(); + $tmprecord->append_fields($tmpauthor); + $results_hash->{'RECORDS'}[$j] = $tmprecord->as_usmarc(); } else { $record = $results[ $i - 1 ]->record($j)->raw(); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl index 8cd9ba8a1a..85b01c5759 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -149,7 +149,7 @@ $(window).load(function() { """> - + -- 2.39.5