From 10e1cbeb1421a6351ac0df4d0c76a8ae79d4dd9d Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Fri, 5 Jul 2013 16:35:45 +0200 Subject: [PATCH] Bug 10544: ensure that stocknumber searches work for MARC21 Bug 6256 replaced in bib1.att stocknumber by Number-local-acquisition for number 1062. In this case, Number-local-acquisition must be used in record.abs and stocknumber can be an alias of it in ccl.properties. Test plan (for MARC21/GRS1): - drop zebra database (rebuild_zebra.pl -r ...) - reindex - test in simple search : ccl=Number-local-acquisition,alwaysmatches='' => you get all records with a stocknumber - test in simple search : ccl=stocknumber,alwaysmatches='' => you get the same results Signed-off-by: Chris Cormack Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall Signed-off-by: Galen Charlton --- etc/zebradb/ccl.properties | 3 ++- etc/zebradb/marc_defs/marc21/biblios/record.abs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 1587b731b6..e86760caf9 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -999,7 +999,8 @@ mc-loc location acqsource 1=8015 coded-location-qualifier 1=8016 price 1=8017 -stocknumber 1=1062 +Number-local-acquisition 1=1062 +stocknumber Number-local-acquisition inv stocknumber stack 1=8018 issues 1=8019 diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs index b4a79f8b35..e867cecf83 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/record.abs +++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs @@ -309,7 +309,7 @@ melm 952$e acqsource melm 952$f coded-location-qualifier melm 952$g price #melm 952$h -melm 952$i stocknumber +melm 952$i Number-local-acquisition melm 952$j stack:n,stack:w #melm 952$k melm 952$l issues:n,issues:w,issues:s -- 2.39.5