From 67134b5febb4be8dbb27d9f05c111a973b775918 Mon Sep 17 00:00:00 2001 From: kados Date: Sun, 11 Dec 2005 00:57:08 +0000 Subject: [PATCH] Adding usmarc zebra configuration files. --- misc/zebra/usmarc/explain.att | 27 ++++++++++++++++++++ misc/zebra/usmarc/usmarc.abs | 46 +++++++++++++++++++++++++++++++++++ misc/zebra/usmarc/usmarc.mar | 3 +++ misc/zebra/usmarc/usmarc.tag | 13 ++++++++++ misc/zebra/usmarc/zebra.cfg | 32 ++++++++++++++++++++++++ 5 files changed, 121 insertions(+) create mode 100644 misc/zebra/usmarc/explain.att create mode 100644 misc/zebra/usmarc/usmarc.abs create mode 100644 misc/zebra/usmarc/usmarc.mar create mode 100644 misc/zebra/usmarc/usmarc.tag create mode 100644 misc/zebra/usmarc/zebra.cfg diff --git a/misc/zebra/usmarc/explain.att b/misc/zebra/usmarc/explain.att new file mode 100644 index 0000000000..04eb034c76 --- /dev/null +++ b/misc/zebra/usmarc/explain.att @@ -0,0 +1,27 @@ +# The Explain Attribute Set +# +# $Id$ +name explain +reference Exp-1 + +att 1 ExplainCategory +att 2 HumanStringLanguage +att 3 DatabaseName +att 4 Targetname +att 5 AttributeSetOID +att 6 RecordSyntaxOID +att 7 TagSetOID +att 8 ExtendedServicesOID +att 9 DateAdded +att 10 DateChanged +att 11 DateExpired +att 12 ElementSetName +att 13 ProcessingContext +att 14 ProcessingName +att 15 TermListName +att 16 SchemaOID +att 17 Producer +att 18 Supplier +att 19 Availability +att 20 Proprietary +att 21 UserFee diff --git a/misc/zebra/usmarc/usmarc.abs b/misc/zebra/usmarc/usmarc.abs new file mode 100644 index 0000000000..681070cad3 --- /dev/null +++ b/misc/zebra/usmarc/usmarc.abs @@ -0,0 +1,46 @@ +# $Id$ +name usmarc +reference USmarc +attset bib1.att +tagset usmarc.tag + +marc usmarc.mar + +esetname B usmarc-b.est +esetname F @ + +# 020a is isbn +elm 020 isbn - +elm 020/? isbn !:w +elm 020/?/a isbn !:w,!:p + +# 090 is mapped to biblionumber in Koha +elm 090 Local-number - +elm 090/? Local-number - +elm 090/?/9 Local-number !:w + +# All 245 subfields mapped to title (word) and +# 245 subfield a mapped to tile (phrase). +elm 245 title - +elm 245/? title !:w +elm 245/?/a title !:w,!:p + +# 100 mapped to Author-name-personal and Author. +elm 100 Author-name-personal - +elm 100/? Author-name-personal !:w,!:p,Author:w,Author:p + +# 110 mapped to Author-name-corporate and Author +elm 110 Author-name-corporate - +elm 110/? Author-name-corporate !:w,!:p,Author:w,Author:p + +# 111 mapped to Author-name-conference and Author +elm 111 Author-name-conference - +elm 111/? Author-name-conference !:w,!:p,Author:w,Author:p + +# Tag 260 subfield a mapped to Place-publication +elm 260 Place-publication - +elm 260/? Place-publication - +elm 260/?/a Place-publication !:w +elm 260/?/b Publisher !:w +elm 260/?/c Date !:w + diff --git a/misc/zebra/usmarc/usmarc.mar b/misc/zebra/usmarc/usmarc.mar new file mode 100644 index 0000000000..25559682a7 --- /dev/null +++ b/misc/zebra/usmarc/usmarc.mar @@ -0,0 +1,3 @@ +# $Id$ +name usmarc +reference USmarc diff --git a/misc/zebra/usmarc/usmarc.tag b/misc/zebra/usmarc/usmarc.tag new file mode 100644 index 0000000000..4a0b9cd54d --- /dev/null +++ b/misc/zebra/usmarc/usmarc.tag @@ -0,0 +1,13 @@ +# Pseudo-tagset for USMARC +# +# $Id$ + +name usmarc +type 4 +include tagsetm.tag + +#tag 1 a string +#tag 2 b string +tag 245 245 string +tag 100 100 string +tag 090 c string diff --git a/misc/zebra/usmarc/zebra.cfg b/misc/zebra/usmarc/zebra.cfg new file mode 100644 index 0000000000..4922b61a70 --- /dev/null +++ b/misc/zebra/usmarc/zebra.cfg @@ -0,0 +1,32 @@ +# Simple Zebra configuration file that defines +# a database with USMARC records for Koha +# Joshua Ferraro < jmf at liblime dot com > +# +# Where are the config files located? +profilePath: ${srcdir:-.}:${srcdir:-.}/../../tab +recordId: (bib1,Local-number) +storeKeys:1 + +# Files that describe the attribute sets supported. +attset: bib1.att +attset: explain.att + +# Specify record type +recordType: grs.marc.usmarc + +# Lock File Area +lockDir: lock + +# Temp File area for result sets +setTmpDir: tmp + +# Temp File area for index program +keyTmpDir: tmp + +# Approx. Memory usage during indexing +memMax: 400 + +database: NPLKoha + +systag rank rank +systag sysno sysno -- 2.39.2