From e7282020f755ec2c8a9cae606f3a3f79eb66150f Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 19 Nov 2008 14:58:12 +0100 Subject: [PATCH] Restoring startsby search on authorities. [RM note: fixes bug 2792] Signed-off-by: Galen Charlton --- C4/AuthoritiesMarc.pm | 2 +- etc/zebradb/etc/default.idx | 2 +- etc/zebradb/marc_defs/unimarc/biblios/record.abs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index bd768f5216..b1029e67ce 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -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 } diff --git a/etc/zebradb/etc/default.idx b/etc/zebradb/etc/default.idx index 17f76084db..8ffbc59791 100644 --- a/etc/zebradb/etc/default.idx +++ b/etc/zebradb/etc/default.idx @@ -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) diff --git a/etc/zebradb/marc_defs/unimarc/biblios/record.abs b/etc/zebradb/marc_defs/unimarc/biblios/record.abs index 7c502af16b..75b3a6139a 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs +++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs @@ -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 -- 2.39.5