From d83a055504a9f80e165d403f9ca3f692cb45cb18 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Wed, 30 Apr 2008 21:07:29 -0500 Subject: [PATCH] Adding authorised value icons display in the search results pages. --- C4/Auth.pm | 2 ++ C4/Search.pm | 2 ++ koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 3 ++- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 9 +++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 4bf459e29c..fe8068d7b0 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -260,6 +260,7 @@ sub get_template_and_user { singleBranchMode => C4::Context->preference("singleBranchMode"), TagsEnabled => C4::Context->preference("TagsEnabled"), GoogleJackets => C4::Context->preference("GoogleJackets"), + AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), ); } else { @@ -320,6 +321,7 @@ sub get_template_and_user { XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), TagsEnabled => C4::Context->preference("TagsEnabled"), GoogleJackets => C4::Context->preference("GoogleJackets"), + AuthorisedValueImages => C4::Context->preference("AuthorisedValueImages"), ); } $template->param(listloop=>[{shelfname=>"Freelist", shelfnumber=>110}]); diff --git a/C4/Search.pm b/C4/Search.pm index 4b597ebc47..45a4a069a3 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1254,6 +1254,8 @@ sub searchResults { . $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} if ( $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); } + my $biblio_authorised_value_images = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{biblionumber} ) ); + $oldbiblio->{authorised_value_images} = $biblio_authorised_value_images; my $aisbn = $oldbiblio->{'isbn'}; $aisbn =~ /(\d*[X]*)/; $oldbiblio->{amazonisbn} = $1; 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 11c573156e..e3e0ed5f39 100755 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl @@ -170,7 +170,7 @@ - +
@@ -178,6 +178,7 @@
+
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl index 2aabe802f3..5509058e5d 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl @@ -174,6 +174,7 @@ $(document).ready(function(){ " name="biblionumber" value="" title="Click to add to cart" /> . + @@ -182,6 +183,14 @@ $(document).ready(function(){ + + + + " alt="" title=""> + + + + -- 2.39.5