@@ -, +, @@ --- C4/Search.pm | 15 +++++++++++++-- catalogue/detail.pl | 2 +- .../prog/en/modules/catalogue/detail.tmpl | 5 ++++- .../prog/en/modules/catalogue/results.tmpl | 19 +++++++++++++++---- 4 files changed, 33 insertions(+), 8 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1246,11 +1246,22 @@ sub searchResults { $times = $hits; # FIXME: if $hits is undefined, why do we want to equal it? } + # We get the biblionumber position in MARC + my ($bibliotag,$bibliosubf)=GetMarcFromKohaField('biblio.biblionumber',''); + my $fw; + # loop through all of the records we've retrieved for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) { my $marcrecord = MARC::File::USMARC::decode( $marcresults[$i] ); - my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, '' ); - $oldbiblio->{subtitle} = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $marcrecord, ''); + + if ($bibliotag<10){ + $fw = GetFrameworkCode($marcrecord->field($bibliotag)->data); + }else{ + $fw = GetFrameworkCode($marcrecord->subfield($bibliotag,$bibliosubf)); + } + + my $oldbiblio = TransformMarcToKoha( $dbh, $marcrecord, $fw ); + $oldbiblio->{subtitle} = GetRecordValue('subtitle', $marcrecord, $fw); $oldbiblio->{result_number} = $i + 1; # add imageurl to itemtype if there is one --- a/catalogue/detail.pl +++ a/catalogue/detail.pl @@ -65,7 +65,7 @@ my $marcauthorsarray = GetMarcAuthors( $record, $marcflavour ); my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour ); my $marcseriesarray = GetMarcSeries($record,$marcflavour); my $marcurlsarray = GetMarcUrls ($record,$marcflavour); -my $subtitle = C4::Biblio::get_koha_field_from_marc('bibliosubtitle', 'subtitle', $record, ''); +my $subtitle = GetRecordValue('subtitle', $record, $fw); # Get Branches, Itemtypes and Locations my $branches = GetBranches(); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tmpl @@ -56,7 +56,10 @@ function verify_images() {
-

+

+ +

+ " alt="" title="">

By ">

--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tmpl @@ -222,16 +222,27 @@ $(window).load(function() { "> No title - -, , + + + , + + , , "> No title - , , + + + , + + , , "> No title - , , + + + , + + , ,

--