Bugzilla – Attachment 2986 Details for
Bug 5615
ZOOM error 20003 "can't set prefix query" on some authority searches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixes the search queries of the SearchAuthorities subroutine.
st_fix_auth_finder.patch (text/plain), 1.32 KB, created by
Frédérick Capovilla
on 2011-01-13 15:13:03 UTC
(
hide
)
Description:
Fixes the search queries of the SearchAuthorities subroutine.
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2011-01-13 15:13:03 UTC
Size:
1.32 KB
patch
obsolete
>diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index d07cca4..34c51fc 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -245,13 +245,16 @@ sub SearchAuthorities { > $attr .=" \@attr 5=1 \@attr 4=6 ";## Word list, right truncated, anywhere > } > $attr =$attr."\"".@$value[$i]."\""; >+ $q2 = $and.$q2 if $q2; #Add @and if we already have existing queries > $q2 .=$attr; > $dosearch=1; > }#if value > } > ##Add how many queries generated >- if ($query=~/\S+/){ >- $query= $and.$query.$q2 >+ if ($query=~/\S+/){ >+ if($q2=~/\S+/){ >+ $query= $and.$query.$q2; >+ } > } else { > $query=$q2; > } >@@ -264,8 +267,9 @@ sub SearchAuthorities { > '@attr 7=2 @attr 1=Heading 0' > :'' > ); >- $query=($query?"\@or $orderstring $query":"\@or \@attr 1=_ALLRECORDS \@attr 2=103 '' $orderstring "); >- >+ $query=($query?$query:"\@attr 1=_ALLRECORDS \@attr 2=103 ''"); >+ $query="\@or $orderstring $query" if $orderstring; >+ > $offset=0 unless $offset; > my $counter = $offset; > $length=10 unless $length;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5615
: 2986