Restoring startsby search on authorities.
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 19 Nov 2008 13:58:12 +0000 (14:58 +0100)
committerGalen Charlton <galen.charlton@liblime.com>
Sat, 25 Apr 2009 01:56:58 +0000 (20:56 -0500)
[RM note: fixes bug 2792]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
C4/AuthoritiesMarc.pm
etc/zebradb/etc/default.idx
etc/zebradb/marc_defs/unimarc/biblios/record.abs

index bd768f5..b1029e6 100644 (file)
@@ -234,7 +234,7 @@ sub SearchAuthorities {
                 }elsif (@$operator[$i] eq "="){
                     $attr.=" \@attr 4=107 ";           #Number Exact match
                 }elsif (@$operator[$i] eq "start"){
-                    $attr.=" \@attr 4=1 \@attr 5=1 ";#Phrase, Right truncated
+                    $attr.=" \@attr 3=2 \@attr 4=1 \@attr 5=1 ";#Firstinfield Phrase, Right truncated
                 } else {
                     $attr .=" \@attr 5=1 \@attr 4=6 ";## Word list, right truncated, anywhere
                 }
index 17f7608..8ffbc59 100644 (file)
@@ -19,7 +19,7 @@ charmap word-phrase-utf.chr
 index p
 completeness 1
 charmap word-phrase-utf.chr
-#firstinfield 1
+firstinfield 1
 
 # URX (URL) index
 # Used if structure=urx (@attr 4=104)
index 7c502af..75b3a61 100644 (file)
@@ -126,7 +126,7 @@ melm 207    Printed-music,Printed-music:p
 
 melm 210$a    pl,pl:p
 melm 210$c    Publisher,Publisher:p
-melm 210$d    pubdate:n,pubdate:s
+melm 210$d    pubdate:n,pubdate:y,pubdate:s
 
 melm 215        Extent