[Koha-bugs] [Bug 1013] New: marclist gets chopped

bugzilla-daemon at wilbur.katipo.co.nz bugzilla-daemon at wilbur.katipo.co.nz
Sat Aug 6 00:20:07 CEST 2005


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1013

           Summary: marclist gets chopped
           Product: Koha
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Searching
        AssignedTo: chris at katipo.co.nz
        ReportedBy: tgarip at neu.edu.tr
         QAContact: koha-bugs at lists.sourceforge.net


This bug I only noticed with authorities. After an Authors authority search 
the Used In column gives references you:
cgi-bin/koha/search.marc/search.pl?
type=intranet&op=do_search&marclist='1009','7009'&operator==&value=29348&and_or
=and&excluding=
The reason for '1009','7009' is because I use the same authority table both 
for tag 100 and 700. Everthing looks normal but when you click the search is 
only done on '1009'.
What I found out is that search.pl chops marclist in:
foreach my $marc (@marclist) {
		if ($marc) {
			my ($tag,$subfield) = MARCfind_marc_from_kohafield
($dbh,$marc,'');
			if ($tag) {
				push @tags,$dbh->quote("$tag$subfield");
			} else {
				push @tags, $dbh->quote(substr($marc,0,4));
				}
			
		} else {
			push @tags, "";
		}
	}
I am not very sure about this bug. I personally added another parameter so 
that it bypasses the substr part like 
if ($stype eq "author") {
						push @tags,$marc;
						}else{
This solves my problem but I will prefer an official stand on this



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Koha-bugs mailing list