koha-bugs
[Top][All Lists]
Advanced

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

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


From: bugzilla-daemon
Subject: [Koha-bugs] [Bug 1013] New: marclist gets chopped
Date: 5 Aug 2005 22:20:07 -0000

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: address@hidden
        ReportedBy: address@hidden
         QAContact: address@hidden


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.



reply via email to

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