Added avail into the template parameters
authorgenjimoto <genjimoto>
Fri, 3 Jun 2005 04:15:29 +0000 (04:15 +0000)
committergenjimoto <genjimoto>
Fri, 3 Jun 2005 04:15:29 +0000 (04:15 +0000)
opac/opac-search.pl

index aec973f..25d0321 100755 (executable)
@@ -87,10 +87,14 @@ if ($op eq "do_search") {
     $searchdesc .= 'filtered by itemtypes ';
     $searchdesc .= join(" ",@itemtypes)
   }
+
   if ($branchesstring ne ''){
     $searchdesc .= ' in branches ';
     $searchdesc .= join(" ",@branches)
   }
+  if ($avail ne ''){
+    $searchdesc .= '. Only available items shown.'
+  }
        $resultsperpage= $query->param('resultsperpage');
        $resultsperpage = 19 if(!defined $resultsperpage);
        my $orderby = $query->param('orderby');
@@ -352,6 +356,7 @@ $template->param( phraseorterm => $phraseorterm );
               categorylist => $categorylist,
               mediatypelist => $mediatypelist,
               itemtypesstring => $itemtypesstring,
+              avail => $avail,
                                                        );
 
 } else {