From fc3e9ac70b1b0b99f317b6ffff5f39ea1bed4914 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Thu, 24 Jan 2008 09:02:51 -0500 Subject: [PATCH] Partial fix for Bug 1578: detect material type and don't load COinS unless the material type is known. Signed-off-by: Joshua Ferraro --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 3 ++- opac/opac-detail.pl | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl index 14ba7853b0..8bdda33f77 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -70,7 +70,8 @@

Physical details:

- &rft.btitle=&rft.date=&rft.tpages=&rft.isbn=&rft.aucorp=&rft.place=&rft.pub=&rft.edition=&rft.series=&rft.genre="> + + &rft.au=&rft.btitle=&rft.date=&rft.tpages=&rft.isbn=&rft.aucorp=&rft.place=&rft.pub=&rft.edition=&rft.series=&rft.genre=">

ISBN: "> diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 958e9d6027..5777a80076 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -120,6 +120,16 @@ foreach ( keys %{$dat} ) { $template->param( "$_" => $dat->{$_} . "" ); } +# COinS format FIXME: for books Only +my $coins_format; +my $fmt = substr $record->leader(), 6,2; +my $fmts; +$fmts->{'am'} = 'book'; +$coins_format = $fmts->{$fmt}; +$template->param( + ocoins_format => $coins_format, +); + my $reviews = getreviews( $biblionumber, 1 ); foreach ( @$reviews ) { my $borrower_number_review = $_->{borrowernumber}; -- 2.39.5