Adding authorised value icons display in the search results

pages.
This commit is contained in:
Joshua Ferraro 2008-04-30 21:07:29 -05:00
parent 57b3b951c1
commit d83a055504
4 changed files with 15 additions and 1 deletions

View File

@ -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}]);

View File

@ -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;

View File

@ -170,7 +170,7 @@
</span>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="AuthorisedValueImages" -->
<!-- TMPL_IF NAME="authorised_value_images" -->
<div class="authorised_value_images">
<!-- TMPL_LOOP NAME="authorised_value_images" -->
@ -178,6 +178,7 @@
<!-- /TMPL_LOOP -->
</div>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="TagsShowOnDetail" -->
<div class="results_summary">

View File

@ -174,6 +174,7 @@ $(document).ready(function(){
<td class="select selectcol"><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --><input type="checkbox" id="bib<!-- TMPL_VAR NAME="biblionumber" -->" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" title="Click to add to cart" /> <label for="bib<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_IF --><!--TMPL_IF EXPR="opacbookbag || virtualshelves" --></label><!-- /TMPL_IF --></td>
<td class="select selectcol"><!-- TMPL_VAR NAME="result_number" -->.</td>
<!-- TMPL_UNLESS NAME="item-level_itypes" -->
<td class="itypecol">
<!-- TMPL_IF name="imageurl" -->
@ -182,6 +183,14 @@ $(document).ready(function(){
</td>
<!-- /TMPL_UNLESS-->
<!-- TMPL_IF NAME="AuthorisedValueImages" -->
<td class="itypecol">
<!-- TMPL_LOOP NAME="authorised_value_images" -->
<img src="<!-- TMPL_VAR name="imageurl" -->" alt="<!-- TMPL_VAR name="label" -->" title="<!-- TMPL_VAR name="label" -->">
<!-- /TMPL_LOOP -->
</td>
<!-- /TMPL_IF -->
<td>
<!-- TMPL_IF NAME="XSLTResultsDisplay" -->
<!-- TMPL_VAR NAME="XSLTResultsRecord" -->