[Koha] opac search

Zeki Celikbas celikbas at itu.edu.tr
Fri Aug 10 02:20:02 NZST 2001


hi all,

I am searching at my opac i've realize something at the search 
screen, BRANCHes was empty. But i was entered all the 
necessary branch codes at koha using mysql client. Then i've loan 
one of the book to somebody. then same screen was below. the 
firs book's branch is still empty but secont has "On Loan" true.

TITLE                     AUTHOR           COUNT      BRANCH
mekanik problem    Halliday, David    1
Fizik ders              Sümer,  Ali          1               On Loan

i've decided to have a look at the "opac-search.pl" code, i saw 
some lines which is below. it's come me interesting that there was 
some variable inside code which is static. I thing this variables 
must be taken from mysql

.........
      if ($nacount > 0){
        $stuff[4]=$stuff[4]."On Loan";
	if ($nacount >1 ){
	  $stuff[4]=$stuff[4]." ($nacount)";
	}
	$stuff[4].=" ";
      }
      if ($lcount > 0){
        $stuff[4]=$stuff[4]."Levin";
	if ($lcount >1 ){
	  $stuff[4]=$stuff[4]." ($lcount)";
	}
	$stuff[4].=" ";
      }
      if ($fcount > 0){
        $stuff[4]=$stuff[4]."Foxton";
	if ($fcount >1 ){
	  $stuff[4]=$stuff[4]." ($fcount)";
	}
	$stuff[4].=" ";
      }
      if ($scount > 0){
        $stuff[4]=$stuff[4]."Shannon";
	if ($scount >1 ){
	  $stuff[4]=$stuff[4]." ($scount)";
	}
	$stuff[4].=" ";
      }
      if ($mending > 0){
        $stuff[4]=$stuff[4]."Mending";
	if ($mending >1 ){
	  $stuff[4]=$stuff[4]." ($mending)";
	}
	$stuff[4].=" ";
      }
      if ($transit > 0){
        $stuff[4]=$stuff[4]."In Transit";
	if ($transit >1 ){
	  $stuff[4]=$stuff[4]." ($transit)";
	}
	$stuff[4].=" ";
      }
.........


Zeki Celikbas
Librarian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Istanbul Technical University e:mailto:celikbas at itu.edu.tr
Faculty of Aero. & Astro.     w:http://www2.itu.edu.tr/~celikbas
80626 Maslak Istanbul Turkey  t:(212)2853108 f: (212)2853139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Koha mailing list