koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/C4 Search.pm,1.45,1.46


From: Andrew Arensburger
Subject: [Koha-cvs] CVS: koha/C4 Search.pm,1.45,1.46
Date: Fri, 11 Oct 2002 06:06:56 -0700

Update of /cvsroot/koha/koha/C4
In directory usw-pr-cvs1:/tmp/cvs-serv10775

Modified Files:
        Search.pm 
Log Message:
Added a FIXME comment.


Index: Search.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Search.pm,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** Search.pm   11 Oct 2002 03:14:51 -0000      1.45
--- Search.pm   11 Oct 2002 13:06:52 -0000      1.46
***************
*** 993,996 ****
--- 993,1002 ----
    }
    if ($type eq 'subject'){
+     # FIXME - Subject search is badly broken. The query defined by
+     # $query returns a single item (the subject), but later code
+     # expects a ref-to-hash with all sorts of stuff in it.
+     # Also, the count of items (biblios?) with the given subject is
+     # wrong.
+ 
      my @key=split(' ',$search->{'subject'});
      my address@hidden;
***************
*** 1115,1119 ****
      $publishercode=$bibitemdata->{'publishercode'};
    }
!   print STDERR "$dewey $subclass $publishercode\n";
    $dewey=~s/\.*0*$//;
    ($dewey == 0) && ($dewey='');
--- 1121,1126 ----
      $publishercode=$bibitemdata->{'publishercode'};
    }
! #  print STDERR "$dewey $subclass $publishercode\n";
!   # FIXME - The Dewey code is a string, not a number.
    $dewey=~s/\.*0*$//;
    ($dewey == 0) && ($dewey='');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]