Add more zebra configuration
authorMJ Ray <mjr@phonecoop.coop>
Mon, 1 Oct 2007 15:13:56 +0000 (16:13 +0100)
committerChris Cormack <crc@liblime.com>
Mon, 1 Oct 2007 20:34:16 +0000 (15:34 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
37 files changed:
Makefile.PL
etc/ccl.properties [deleted file]
etc/cql.properties [deleted file]
etc/koha-conf.xml
etc/pqf.properties [deleted file]
etc/zebra-authorities.cfg [deleted file]
etc/zebra-biblios.cfg [deleted file]
etc/zebradb/authorities/lock/norm..LCK [new file with mode: 0644]
etc/zebradb/authorities/lock/shadow..LCK [new file with mode: 0644]
etc/zebradb/authorities/lock/state..LCK [new file with mode: 0644]
etc/zebradb/authorities/register/dict-0.mf [new file with mode: 0644]
etc/zebradb/authorities/register/gmatch-0.mf [new file with mode: 0644]
etc/zebradb/authorities/register/isambA-0.mf [new file with mode: 0644]
etc/zebradb/authorities/register/recdA-0.mf [new file with mode: 0644]
etc/zebradb/authorities/register/reci-0.mf [new file with mode: 0644]
etc/zebradb/authorities/tab/bib1.att [new file with mode: 0644]
etc/zebradb/authorities/tab/record.abs [new file with mode: 0644]
etc/zebradb/biblios/lock/norm..LCK [new file with mode: 0644]
etc/zebradb/biblios/lock/shadow..LCK [new file with mode: 0644]
etc/zebradb/biblios/tab/bib1.att [new file with mode: 0644]
etc/zebradb/biblios/tab/record.abs [new file with mode: 0644]
etc/zebradb/ccl.properties [new file with mode: 0644]
etc/zebradb/cql.properties [new file with mode: 0644]
etc/zebradb/pqf.properties [new file with mode: 0644]
etc/zebradb/tab/default.idx [new file with mode: 0644]
etc/zebradb/tab/explain.abs [new file with mode: 0644]
etc/zebradb/tab/explain.att [new file with mode: 0644]
etc/zebradb/tab/explain.tag [new file with mode: 0644]
etc/zebradb/tab/gils.att [new file with mode: 0644]
etc/zebradb/tab/kohalis [new file with mode: 0644]
etc/zebradb/tab/numeric.chr [new file with mode: 0644]
etc/zebradb/tab/sort-string-utf.chr [new file with mode: 0644]
etc/zebradb/tab/tagsetm.tag [new file with mode: 0644]
etc/zebradb/tab/usmarc.mar [new file with mode: 0644]
etc/zebradb/tab/word-phrase-utf.chr [new file with mode: 0644]
etc/zebradb/zebra-authorities.cfg [new file with mode: 0644]
etc/zebradb/zebra-biblios.cfg [new file with mode: 0644]

index 28f3d1b..af2a46c 100644 (file)
@@ -163,8 +163,9 @@ WriteMakefile(
       'rewrite-config.PL' => [
          '$(PREFIX)/share/koha/etc/koha-conf.xml',
          '$(PREFIX)/share/koha/etc/koha-httpd.conf',
-         '$(PREFIX)/share/koha/etc/zebra-biblios.cfg',
-         '$(PREFIX)/share/koha/etc/zebra-authorities.cfg'
+         '$(PREFIX)/share/koha/etc/zebradb/tab/kohalis',
+         '$(PREFIX)/share/koha/etc/zebradb/zebra-biblios.cfg',
+         '$(PREFIX)/share/koha/etc/zebradb/zebra-authorities.cfg'
          ]
    }
 #     'opac/getfromintranet.PL' => ['$(INST_LIBDIR)/opac/cgi-bin/detail.pl','$(INST_LIBDIR)/opac/cgi-bin/moredetail.pl','$(INST_LIBDIR)/opac/cgi-bin/search.pl','$(INST_LIBDIR)/opac/cgi-bin/subjectsearch.pl','$(INST_LIBDIR)/opac/cgi-bin/logout.pl'],
diff --git a/etc/ccl.properties b/etc/ccl.properties
deleted file mode 100644 (file)
index 110345a..0000000
+++ /dev/null
@@ -1,1045 +0,0 @@
-# CCL field mappings
-# $Id$
-# There are four types of lines in a CCL profile: 
-#  1. qualifier specification
-#      qualifier-name   [  attributeset   ,]  type   =   val   [  attributeset   ,]  type   =   val   ...
-# 
-#  2. qualifier alias
-#      q q1 q2 q3
-#
-#  3. comments
-#      comments begin with 
-#
-#  4. directives
-#      @   directive    value
-#
-# see http://indexdata.dk/yaz/doc/tools.tkl#CCL for more details
-#
-# The rule below is used when no fields are specified
-term t=l,r  s=al
-#
-# Simple rule for a field called "clean"
-clean t=l,r
-
-### 1. BIB1 USE ATTRIBUTES MAPPED TO CCL QUALIFIERS
-#
-# SEE http://www.loc.gov/z3950/agency/bib1.html
-#
-# The notation '$' following a USMARC tag refers to a
-# subfield of the named field.  The notation 'i' following a
-# USMARC tag refers to values of the second indicator in the named
-# field; when the second indicator of the field has the value
-# , the data in the field is associated with that Use
-# attribute.
-#
-#Use                  Value Definition                      USMARC tag(s)
-#-------------------- ----- ------------------------------  ------------------
-#Abstract               62  An abbreviated, accurate        520
-#                           representation of a work,
-#                           usually without added
-#                           interpretation or criticism.
-Abstract 1=62
-ab Abstract
-
-#Any                  1016  The record is selected if there
-#                           exists a Use attribute that the
-#                           target supports (and considers
-#                           appropriate - see note 1) such
-#                           that the record would be
-#                           selected if the target were to
-#                           substitute that attribute.
-#       Notes:
-#        (1) When the origin uses 'any' the intent is that the target
-#            locate records via commonly used access points. The target
-#            may define 'any' to refer to a selected set of Use
-#            attributes corresponding to its commonly used access points.
-#        (2) In set terminology: when Any is the Use attribute, the set
-#            of records selected is the union of the sets of records
-#            selected by each of the (appropriate) Use attributes that
-#            the target supports.
-Any 4=6 1=1016
-kw Any
-
-#Anywhere             1035  The record is selected if the
-#                           term value (as qualified by the
-#                           other attributes) occurs anywhere
-#                           in the record.
-#
-#            Note: A target might choose to support 'Anywhere' only in
-#            combination with specific (non-Use) attributes. For example, a
-#            target might support 'Anywhere' only in combination with the
-#            Relation attribute 'AlwaysMatches' (see below), to locate all
-#            records in a database.
-#
-#       Notes on relationship of Any and Anywhere:
-#        (1) A target may support Any but not Anywhere, or vice versa, or
-#            both.  However, if a target supports both, then it should
-#            exclude 'Anywhere' from the list of Use attributes
-#            corresponding to 'Any' (if it does not do so, then the set
-#            of records located by 'Any' will be a superset of those
-#            located by 'Anywhere').
-#        (2) A distinction between the two attributes may be informally
-#            expressed as follows: 'anywhere' might result in more
-#            expensive searching than 'any'; if the target (and origin)
-#            support both 'any' and 'anywhere', if the origin uses 'Any'
-#            (rather than 'Anywhere') it is asking the target to locate
-#            the term only if it can do so relatively inexpensively.
-#Anywhere 1=1035
-
-#Author-name          1003  A personal or corporate author, 100, 110, 111, 400
-#                           or a conference or meeting      410, 411, 700, 710,
-#                           name.  (No subject name         711, 800, 810, 811
-#                           headings are included.)
-Author 5=1 1=1003 s=pw
-au Author
-
-#Author-name-and-     1000  A personal or corporate author, 100/2XX, 110/2XX,
-#title                      or a conference or meeting      111/2XX, subfields
-#                           name, and the title of the      $a & $t in
-#                           item.  (No subject name         following: 400,410,
-#                           headings are included.)  The    411, 700, 710, 711,
-#                           syntax of the name-title        800, 810, 811
-#                           combination is up to the
-#                           target, unless used with the
-#                           Structure attribute Key (see
-#                           below).
-#Author-title 1=1000
-
-#Author-name-         1005  An organization or a group      110, 410, 710, 810
-#corporate                  of persons that is identified
-#                           by a particular name. (Differs
-#                           from attribute "name-corporate
-#                           (2)" in that corporate name
-#                           subject headings are not
-#                           included.)
-#Author-name-corporate 1=1005
-
-#Author-name-         1006  A meeting of individuals or     111, 411, 711, 811
-#conference                 representatives of various
-#                           bodies for the purpose of
-#                           discussing topics of common
-#                           interest. (Differs from
-#                           attribute "name-conference
-#                           (3)" in that conference name
-#                           subject headings are not
-#                           included.)
-#Author-name-conference 1=1006
-#af Author-name-conference
-
-#Author-name-personal 1004  A person's real name,           100, 400, 700, 800
-#                           pseudonym, title of nobility
-#                           nickname, or initials.
-#                           (Differs from attribute
-#                           "name-personal (1)" in that
-#                           personal name subject headings
-#                           are not included.)
-#Author-name-personal 1=1004
-
-#Author-Title-Subject 1036  An author or a title or a        1XX, 2XX, 4XX,
-#                           subject.                         6XX, 7XX, 8XX
-#
-#            Note: When the Use attribute is Author-name-and-title (1000)
-#            the term contains both an author name and a title.  When the
-#            Use attribute is Author-Title-Subject (1036), the term
-#            contains an author name or a title or a subject.
-#Author-Title-Subject 1=1036
-
-#Body of text         1010  Used in full-text searching to
-#                           indicate that the term is to
-#                           be searched only in that
-#                           portion of the record that the
-#                           target considers the body of
-#                           the text, as opposed to some
-#                           other discriminated part such
-#                           as a headline, title, or
-#                           abstract.
-#Body-of-text 1=1010
-
-#Classification-Bliss   15  A classification number from
-#                           the Bliss Classification,
-#                           developed by Henry Evelyn
-#                           Bliss.
-#Bliss-classification 1=15
-
-#Classification-Dewey   13  A classification number from    082
-#                           the Dewey Decimal
-#                           Classification, developed by
-#                           Melvyl Dewey.
-#Dewey-classification 1=13
-
-#Classification-        50  A classification number         086
-#government-publication     assigned to a government
-#                           document by a government
-#                           agency at any level (e.g.,
-#                           state, national,
-#                           international).
-#Number-govt-pub 1=50
-
-#Classification-LC      16  A classification number from    050
-#                           the US Library of Congress
-#                           Classification.
-#LC-call-number 1=16
-#
-#Classification-local   20  A local classification
-#                           number from a system not
-#                           specified elsewhere in this
-#                           list of attributes.
-Local-classification 4=1 1=20
-lcn Local-classification
-callnum Local-classification
-#Local-classification cc callnum dewey
-#
-#Classification-NAL     18  A classification number from    070
-#                           the US National Agriculture
-#                           Library Classification.
-#NAL-call-number 1=18
-#
-#Classification-NLM     17  A classification number from    060
-#                           the US National Library of
-#                           Medicine Classification.
-#NLM-call-number 1=17
-#
-#Classification-MOS     19  A classification number from
-#                           Mathematics Subject
-#                           Classification, compiled
-#                           in the Editorial Offices of
-#                           Mathematical Reviews and
-#                           Zentralblatt fur Mathematik.
-#MOS-call-number 1=19
-#
-#Classification-UDC     14  A classification number from    080
-#                           Universal Decimal
-#                           Classification, a system based
-#                           on the Dewey Decimal
-#                           Classification.
-#UDC-classification 1=14
-#
-#Code-bib-level       1021  A one-character alphabetic       Leader/07
-#                           code indicating the
-#                           bibliographic level such as
-#                           monograph, serial or collection
-#                           of the record.
-#Bib-level 1=1021
-#
-#Code-geographic-area   55  A code that indicates the       043
-#                           geographic area(s) that appear
-#                           or are implied in the headings
-#                           assigned to the item during
-#                           cataloging.
-#Code-geographic 1=55
-#
-#Code-geographic-     1022  A code that represents the      052
-#class                      geographic area and if
-#                           applicable the geographic
-#                           subarea covered by an item.
-#                           The codes are derived from
-#                           the LC Classification-Class G
-#                           and the expanded Cutter number
-#                           list.
-#Geographic-class 1=1022
-#
-#Code-institution       56  An authoritative-agency         040, 852$a
-#                           symbol for an institution
-#                           that is the source of the
-#                           record or the holding
-#                           location.  The code space is
-#                           defined by the target.
-#Code-institution 1=56
-#
-#Code-language          54  A code that indicates the       008/35-37, 041
-#                           language of the item.
-#                           The codes are defined by the
-#                           target.
-language          1=54
-ln language
-
-#Code-map-scale       1024  Coded form of cartographic      034
-#                           mathematical data, including
-#                           scale, projection and/or
-#                           coordinates related to the
-#                           item.
-#Map-scale 1=1024
-
-#Code-microform-        61  The code specifying the         007/11
-#generation                 generation of a microform.
-#Microform-generation 1=61
-#material-designation Microform-generation
-
-#Code-record-type     1001  A code that specifies the       Leader/06
-#                           characteristics and defines
-#                           the components of the record.
-#                           The codes are target-specific.
-Record-type 1=1001
-rtype Record-type
-mc-rtype Record-type
-mus 1=1001
-
-#Concept-reference    1015  Used within Z39.50-1988;
-#                           included here for historical
-#                           reasons but its use is
-#                           deprecated.
-#Concept-reference 1=1015
-
-#Concept-text         1014  Used within Z39.50-1988;
-#                           included here for historical
-#                           reasons but its use is
-#                           deprecated.
-#Concept-text        1=1014
-
-#Content-type         1034  The type of materials           derived value
-#                           contained in the item or        from 008/24-27
-#                           publication.  For example:
-#                           review, catalog, encyclopedia,
-#                           directory.
-Content-type         1=1034 t=b
-ctype Content-type
-
-#Control number-BNB     10  Character string that uniquely  015
-#                           identifies a record in the
-#                           British National Bibliography.
-#BNB-card-number 1=10
-
-#Control number-BNF     11  Character string that uniquely  015
-#                           identifies a record in the
-#                           Bibliotheque Nationale Francais.
-#BGF-number 1=11
-
-#Control number-DB      52  Character string that uniquely  015
-#                           identifies a record in the
-#                           Deutsche Bibliothek.
-#Number-db 1=52
-
-#Control number-LC       9  Character string that uniquely  010, 011
-#                           identifies a record in the
-#                           Library of Congress database.
-#LC-card-number 1=9
-#lc-card LC-card-number
-
-#Control number-local   12  Character string that uniquely  001, 035
-#                           identifies a record in a local
-#                           system (i.e., any system that
-#                           is not one of the four listed
-#                           above).
-Local-number 1=12
-
-#Date                   30  The point of time at which      005, 008/00-05,
-#                           a transaction or event          008/07-10, 260$c,
-#                           takes place.                    008/11-14, 033,etc.
-Date 1=30 4=109 r=r
-#yr Date
-
-#Date-publication       31  The date (usually year) in      008/07-10, 260$c
-#                           which a document is published.  046, 533$d
-Date-of-publication 1=31 4=109 r=r
-#dp Date-of-publication
-yr Date-of-publication
-
-#Date-acquisition       32  The date when a document was    541$d
-#                           acquired.
-Date-of-acquisition 1=32
-acqdate Date-of-acquisition
-#da Date-of-acquisition
-
-#Date/time added to   1011  The date and time that a        008/00-05
-#database                   record was added to the
-#                           database.
-#Date-time-added-to-db 1=1011
-
-#Date/time last       1012  The date and time a record      005
-#modified                   was last updated.
-#Date-time-last-modified       1=1012
-
-#Identifier--         1013  Used in full-text searching
-#authority/format           to indicate to the target
-#                           system the format of the
-#                           document that should be
-#                           returned to the originating
-#                           system.  The attribute carries
-#                           not only the format code, but
-#                           also the authority (e.g.,
-#                           system) that assigned that
-#                           code.
-#Authority/format-id 1=1013
-
-#Identifier-CODEN       60  A six-character, unique,        030
-#                           alphanumeric code assigned
-#                           to serial and monographic
-#                           publications by the CODEN
-#                           section of the Chemical
-#                           Abstracts Service.
-#CODEN 1=60
-
-#Identifier-document  1032  An identifier or Doc-ID,  
-#                           assigned by a server, that 
-#                           uniquely identifies a document 
-#                           on that server. May or may 
-#                           not be persistent. May be, 
-#                           for example, a URL.
-#            Note: this definition was modified October 1997.
-#Doc-id 1=1032
-
-#Identifier-ISBN         7  International Standard Book     020
-#                           Number -- internationally
-#                           agreed upon number that
-#                           identifies a book uniquely.
-#                           Cf. ANSI/NISO Z39.21 and
-#                           ISO 2108.
-ISBN         1=7
-nb ISBN
-
-#Identifier-ISSN         8  International Standard Serial   022, 4XX$x,
-#                           Number -- internationally       7XX$x
-#                           agreed upon number that
-#                           identifies a serial uniquely.
-#                           Cf. ANSI/NISO z39.9 and
-#                           ISO 3297.
-ISSN         1=8
-ns ISSN
-
-#Identifier-legal-      49  The copyright registration      017
-#deposit                    number that is assigned to
-#                           an item when the item is
-#                           deposited for copyright.
-#Number-legal-deposit 1=49
-
-#Identifier-local-call  53  Call number (e.g., shelf location)
-#                           assigned by a local system
-#                           (not a classification number).
-#Number-local-call 1=53
-
-#Identifier-national-   48  Character string that uniquely  015
-#bibliography               identifies a record in a
-#                           national bibliography.
-#Number-natl-biblio 1=48
-
-#Identifier-publisher-  51  A formatted number assigned     028
-#for-music                  by a publisher to a sound
-#                           recording or to printed music.
-#Number-music-publisher 1=51
-
-#Identifier-report    1027  A report number assigned to     027, 088
-#                           the item. This number could be
-#                           the STRN (Standard Technical
-#                           Report Number) or another
-#                           report number.
-#                           Cf. ANSI/NISO Z39.23 and
-#                           ISO 10444.
-#Report-number 1=1027
-
-#Identifier-standard  1007  Standard numbers such as ISBN,  010, 011, 015, 017,
-#                           ISSN, music publishers          018, 020, 022, 023,
-#                           numbers, CODEN, etc., that      024, 025, 027, 028,
-#                           are indexed together in many    030, 035, 037
-#                           online public-access catalogs.
-#Identifier-standard  1=1007 4=6
-Local-number  1=12
-#sn Identifier-standard
-sn Local-number
-#
-#Identifier-stock     1028  A stock number that could be    037
-#                           used for ordering the item.
-Stock-number 1=1028
-bc Stock-number
-
-#Identifier-thematic  1030  The numeric designation for a   $n in the following:
-#                           part/section of a work such as  130, 240, 243, 630,
-#                           the serial, opus or thematic    700, 730
-#                           index number.
-#Thematic-number 1=1030
-
-#Indexed-by           1023  For serials, a publication      510
-#                           in which the serial has been
-#                           indexed and/or abstracted.
-#Indexed-by          1=1023
-
-#Material-type        1031  A free-form string, more        derived value from
-#                           specific than the one-letter    Leader/06-07, 007,
-#                           code in Leader/06, that         008, and 502
-#                           describes the material type
-#                           of the item, e.g., cassette,
-#                           kit, computer database,
-#                           computer file.
-Material-type  1=1031
-#itemtype Material-type
-#collection Material-type
-collection-code Material-type
-mt Material-type
-mc-collection Material-type
-#dt-lh Material-type
-
-#Music-key            1025  A statement of the key in       $r in the following:
-#                           which the music is written.     130, 240, 243, 630,
-#                                                           700, 730
-#Music-key            1=1025
-
-#Name                 1002  The name of a person, corporate 100, 110, 111, 400,
-#                           body, conference, or meeting.   410, 411, 600, 610,
-#                           (Subject name headings are      611, 700, 710, 711,
-#                           included.)                      800, 810, 811
-#Name                 1=1002
-
-#Name-and-title         57  The name of a person, corporate 100/2XX, 110/2XX,
-#                           body, conference, or meeting,   111/2XX, subfields
-#                           and the title of an item.       $a & $t in
-#                           (Subject name headings are      following: 400,410,
-#                           included.)  The syntax of the   411, 600, 610, 611,
-#                           name-title combination is up    700, 710, 711, 800,
-#                           to the target, unless used      810, 811
-#                           with the Structure attribute
-#                           Key (see below).
-#Name-and-title         1=57
-
-#Name-corporate          2  An organization or a group      110, 410, 610, 710,
-#                           of persons that is identified   810
-#                           by a particular name. (Subject
-#                           name headings are included.)
-#Corporate-name 1=2
-#cpn Corporate-name
-
-#Name-conference         3  A meeting of individuals or     111, 411, 611, 711
-#                           representatives of various      811
-#                           bodies for the purpose of
-#                           discussing topics of common
-#                           interest.  (Subject name
-#                           headings are included.)
-#Conference-name 1=3
-#cfn Conference-name
-
-#Name-editor          1020  A person who prepared for       100 $a or 700 $a when
-#                           publication an item that is     the corresponding $e
-#                           not his or her own.             contains value 'ed.'
-#Editor 1=1020
-
-#Name-geographic        58  Name of a country,              651
-#                           jurisdiction, region, or
-#                           geographic feature.
-#Name-geographic        1=58
-
-#Name-geographic-place- 59  City or town where an item      008/15-17, 260$a
-#publication                was published.
-
-#Name-personal           1  A person's real name,           100, 400, 600, 700,
-#                           pseudonym, title of nobility    800
-#                           nickname, or initials.
-#Personal-name 1=1
-#pn Personal-name
-
-#Name-publisher       1018  The organization responsible    260$b
-#                           for the publication of the
-#                           item.
-Publisher 1=1018
-pb Publisher
-
-#Note                   63  A concise statement in which    5XX
-#                           such information as extended
-#                           physical description,
-#                           relationship to other works,
-#                           or contents may be recorded.
-Note                   1=63
-nt Note
-
-#Record-source        1019  The USMARC code or name of the  008/39, 040
-#                           organization(s) that created
-#                           the original record, assigned
-#                           the USMARC content designation
-#                           and transcribed the record into
-#                           machine-readable form, or
-#                           modified the existing USMARC
-#                           record; the cataloging source.
-#Record-source        1=1019
-
-#Server-choice        1017  The target substitutes one or
-#                           more access points.  The origin
-#                           leaves the choice to the target.
-#
-#
-#       Notes on relationship of Any and Server-choice:
-#        (1) When the origin uses 'Server-choice' it is asking the target
-#            to select one or more access points, and to use its best
-#            judgment in making that selection.  When 'Any' is used,
-#            there is no selection process involved; the target is to
-#            apply all of the (appropriate) supported Use attributes.
-#            The origin is asking the target to make a choice of access
-#            points.
-#        (2) The target might support 'Any' and not 'Server-choice', or
-#            vice versa, or both.  If the target supports both, when the
-#            origin uses 'Server-choice', the target might choose 'Any';
-#            however, it might choose any other Use attribute.
-#Server-choice        1=1017
-
-#Subject                21  The primary topic on which a    600, 610, 611, 630,
-#                           work is focused.                650, 651, 653, 654,
-#                                                           655, 656, 657, 69X
-Subject                1=21
-su Subject
-su-to Subject
-su-geo Subject
-su-ut Subject
-#Subject-BDI            23  Subject headings from
-#                           Bibliotek Dokumentasjon
-#                           Informasjon -- a controlled
-#                           subject vocabulary used and
-#                           maintained by the five Nordic
-#                           countries (Denmark, Finland,
-#                           Iceland, Norway, and Sweden).
-#BDI-index-subject 1=23
-
-#Subject-INSPEC         24  Subject headings from           600i2, 610i2,
-#                           Information Services for the    611i2, 630i2,
-#                           Physics and Engineering         650i2, 651i2
-#                           Communities -- the Information
-#                           Services Division of the
-#                           Institution of Electrical
-#                           Engineers.
-#INSPEC-subject 1=24
-
-#Subject-LC             27  Subject headings from           600i0, 610i0,
-#                           US Library of Congress          611i0, 630i0,
-#                           Subject Headings.               650i0, 651i0
-#LC-subject-heading 1=27
-
-#Subject-LC-          1008  Subject headings, for use       600i1, 610i1,
-#children's                 with children's literature,     611i1, 630i1,
-#                           that conform to the             650i1, 651i1
-#                           formulation guidelines in
-#                           the "AC Subject Headings"
-#                           section of the Library of
-#                           Congress Subject Headings.
-#Subject-LC-childrens 1=1008
-
-#Subject-local          29  Subjects headings defined
-#                           locally.
-#Local-subject-index 1=29
-
-#Subject-MESH           25  Subject headings from           600i2, 610i2,
-#                           Medical Subject Headings --     611i2, 630i2,
-#                           maintained by the US National   650i2, 651i2
-#                           Library of Medicine.
-#MESH-subject 1=25
-
-#Subject-name-        1009  A person's real name,           600
-#personal                   pseudonym, title of nobility
-#                           nickname, or initials that
-#                           appears in a subject heading.
-Subject-name-personal 1=1009
-su-na 1=1009
-#Subject-name-personal
-#Subject-PA             26  Subject headings from           600i2, 610i2,
-#                           Thesaurus of Psychological      611i2, 630i2,
-#                           Index Terms -- maintained       650i2, 651i2
-#                           by the Retrieval Services Unit
-#                           of the American Psychological
-#                           Association.
-#PA-subject 1=26
-
-#Subject-PRECIS         45  Subject headings from
-#                           PREserved Context Index
-#                           System -- a string of indexing
-#                           terms set down in a prescribed
-#                           order, each term being preceded
-#                           by a manipulation code which
-#                           governs the production of
-#                           pre-coordinated subject index
-#                           entries under selected terms --
-#                           maintained by the British
-#                           Library.
-#Subject-precis 1=45
-
-#Subject-RAMEAU         22  Subject headings from
-#                           Repertoire d'authorite de
-#                           matieres encyclopedique
-#                           unifie -- maintained by the
-#                           Bibliotheque Nationale
-#                           (France).
-#Subject-Rameau 1=22
-
-#Subject-RSWK           46  Subject headings from
-#                           Regeln fur den
-#                           Schlagwortkatalog --
-#                           maintained by the Deutsches
-#                           Bibliotheksinstitut.
-#Subject-rswk 1=46
-
-#Subject-RVM            28  Subject headings from           600i6, 610i6,
-#                           Repertoire des vedettes-        611i6, 630i6,
-#                           matiere -- maintained by the    650i6, 651i6
-#                           Bibliotheque de l'Universite
-#                           de Laval.
-#RVM-subject-heading 1=28
-
-#Subject-subdivision    47  An extension to a subject       6XX$x, 6XX$y,
-#                           heading indicating the form,    6XX$z
-#                           place, period of time treated,
-#                           or aspect of the subject
-#                           treated.
-#Subject-subdivision 1=47
-
-#Title                   4  A word, phrase, character,      130, 21X-24X, 440,
-#                           or group of characters,         490, 730, 740, 830,
-#                           normally appearing in an item,  840, subfield $t
-#                           that names the item or the      in the following:
-#                           work contained in it.           400, 410, 410, 600,
-#                                                           610, 611, 700, 710,
-#                                                           711, 800, 810, 811
-Title 1=4
-#5=1 1=4 s=pw
-#1=4
-ti Title
-
-#Title-abbreviated      43  Shortened form of the title;    210, 211 (obs.),
-#                           either assigned by national     246
-#                           centers under the auspices of
-#                           the International Serials Data
-#                           System, or a title (such as an
-#                           acronym) that is popularly
-#                           associated with the item.
-#Title-abbreviated      1=43
-
-#Title-added-title-page 37  A title on a title page         246i5
-#                           preceding or following the
-#                           title page chosen as the basis
-#                           for the description of the
-#                           item.  It may be more general
-#                           (e.g., a series title page),
-#                           or equally general (e.g., a
-#                           title page in another
-#                           language).
-#Title-added-title-page 1=37
-
-#Title-caption          38  A title given at the beginning  246i6
-#                           of the first page of the text.
-#Title-caption          1=38
-
-#Title-collective       34  A title proper that is an       243
-#                           inclusive title for an item
-#                           containing several works.
-#Title-collective       1=34
-
-#Title-cover            36  The title printed on the        246i4
-#                           cover of an item as issued. 
-Title-cover            1=36
-
-#Title-expanded         44  An expanded (or augmented)      214 (obs.), 246
-#                           title has been enlarged with
-#                           descriptive words by the
-#                           cataloger to provide
-#                           additional indexing and
-#                           searching capabilities.
-#Title-expanded         1=44
-
-#Title-former           42  A former title or title         247, 780
-#                           variation when one
-#                           bibliographic record
-#                           represents all issues of
-#                           a serial that has changed
-#                           title.
-#Title-former           1=42
-
-#Title-host-item      1033  The title of the item            773$t
-#                           containing the part
-#                           described in the record, for
-#                           example, a journal title
-#                           when the record describes an
-#                           article in the journal.
-Host-item      1=1033
-
-#Title-key              33  The unique name assigned to     222
-#                           a serial by the International
-#                           Serials Data System (ISDS).
-#Title-key              1=33
-
-#Title-other-variant    41  A variation from the title      212 (obs.), 246i3,
-#                           page title appearing elsewhere  247, 740
-#                           in the item (e.g., a variant
-#                           cover title, caption title,
-#                           running title, or title from
-#                           another volume) or in another
-#                           issue.
-#Title-other-variant    1=41
-
-#Title-parallel         35  The title proper in another     246i1
-#                           language and/or script.
-#Title-parallel         1=35
-
-#Title-related-       1026  Serial titles related to this   247, 780, 785
-#periodical                 item, either the immediate
-#                           predecessor or the immediate
-#                           successor.
-#Related-periodical 1=1026
-#Title-running          39  A title, or abbreviated title,  246i7
-#                           that is repeated at the head
-#                           or foot of each page or leaf.
-#Title-running          1=39
-
-#Title-series            5  Collective title applying to    440, 490, 830, 840,
-#                           a group of separate, but        subfield $t in the
-#                           related, items.                 following: 400,410,
-#                                                           411, 800, 810, 811
-Title-series            1=5
-#series Title-series
-se Title-series
-
-#Title-spine            40  A title appearing on the        246i8
-#                           spine of an item.
-#Title-spine            1=40
-
-#Title-uniform           6  The particular title by which   130, 240, 730,
-#                           a work is to be identified      subfield $t in the
-#                           for cataloging purposes.        following: 700,710,
-#                                                           711
-Title-uniform           1=6
-ut Title-uniform
-#Authority-number           Koha-Auth-Number  The Number   
-#                           for an authority to be searched subfield $9 in the
-#                           for cataloging purposes.        following: 700,701,702,710,
-#                                                           711,712 and some 6XX fields (Unimarc)
-Authority-number           1=8910
-an Authority-Number
-Koha-Auth-Number Authority-Number
-
-#Authority/format-id        authtypecode  The Code 
-#                           associated to an authority type
-#                                                            152$b in authority records
-Authority/format-id           1=Authority/format-id
-at Authority/format-id
-
-#Heading-Entity             Information for Heading in an 
-#                           authority record 
-#                                                             usually 2.. fields
-Heading-Entity           1=Heading-Entity
-he Heading-Entity
-
-
-### 2. BIB1 RELATION ATTRIBUTES
-lt 2=1
-le 2=2
-eq 2=3
-ge 2=4
-ne 2=5
-phonetic 2=6
-stem 2=100
-relevance 2=102
-rk 2=102
-rank relevance
-
-AlwaysMatches 2=103
-Within 2=104
-
-### 3. BIB1 POSITION ATTRIBUTES
-first-in-field 3=1
-
-# we have to fake startswith until zebra supports it
-# starts with if we want no truncation ... need to ad 'term #'
-# finds 'starts with it' but not italian
-# see http://lists.indexdata.dk/pipermail/yazlist/2006-July/001664.html
-startswithnt 3=1 5=101 6=3
-
-# starts with with truncation
-first-in-subfield 3=2
-any-position-in-field 3=3
-
-### 4. BIB1 STRUCTURE ATTRIBUTES
-st-phrase 4=1
-phr st-phrase
-st-word        4=2
-st-key         4=3
-st-year        4=4
-st-date-normalized     4=5
-st-word-list   4=6
-wrdl 4=6
-
-# there was a reason I didn't want to use this but it's
-# escaped me -- JF
-wrd 4=6
-
-#st-word
-st-date-un-normalized  4=100
-st-name-normalized     4=101
-st-name-un-normalized  4=102
-st-structure   4=103
-st-urx         4=104
-st-free-form-text      4=105
-st-document-text       4=106
-st-local       number 4=107
-st-string      4=108
-st-numeric     4=109
-#string 109
-
-### 5. BIB1 TRUNCATION ATTRIBUTES
-right-Truncation 5=1
-rt right-Truncation
-left-Truncation        5=2
-left-and-right         5=3
-do-not-truncate        5=100
-process-in-search-term         5=101
-regExpr-1      5=102
-fuzzy 5=103
-regExpr-2      5=103
-Z39-58 5=104
-
-### 6. BIB1 STRUCTURE ATTRIBUTES
-incomplete-subfield    6=1
-complete-subfield      6=2
-complete-field         6=3
-
-### COMBINATIONS OF THE ABOVE
-ext 4=1 6=3
-
-## ATTRIBUTES NOT IN BIB1 OR ELSE ONES I DON"T KNOW WHERE IN BIB1 THEY BELONG
-#Language
-#ln 1=8805
-#language 1=8805
-
-#Musical Composition
-#mc
-
-# Publisher Location
-
-Place-publication 1=59
-pl Place-publication
-#pl 1=59
-
-# Extent
-Extent 1=8001
-
-#Summary                       1=8002
-#att 8900            
-#Call-Number 1=8900
-#date-entered-on-file 1=8800
-#date1 1=8801
-#date2 1=8802
-#language 8805
-ff8-22 1=8822
-ff8-23 1=8823
-ff8-34 1=8834
-
-#att 8700            ff7-00
-#att 8701            ff7-01
-#att 8702            ff7-02
-#att 9520            withdrawn
-#att 9521            lost
-lost 1=9521 4=109
-#att 9522            onloan
-
-############## SUBJECT-RELATED
-# Topical Term
-#tt
-# Descriptor
-#de
-# Genre/Form
-#ge
-# Geographic Coverage
-#gc
-
-## Additional Author distinctions needed for field weighting
-# lastname,firstname entry in $100$a
-Author-personal-bibliography 1=8900
-aub Author-personal-bibliography
-# Author-in-order - firstname lastname in 245$c statement of responsibility
-Author-in-order 1=8901
-auo Author-in-order
-
-### LIMITS
-# AUDIENCE
-audience 1=8822
-aud audience
-
-# CONTENT and Literary form
-fiction 1=8833
-fic fiction
-#mystery 1=
-biography 1=8834
-bio biography
-
-# FORMAT
-format 1=8823
-
-# format limit
-l-format 1=8703
-
-#fmt format
-
-# BRANCH (of local library)
-branch 1=1033
-
-Illustration-code 1=Illustration-code 
-# Item Type
-
-# Year limit
-#yr 1=8801 4=109 r=r
-
-## STATUSES
-onloan 1=9522
-datedue 1=9522
-
-popularity 1=9523
-
-# Material Category
-mc 1=8700
-## TYPE LIMITS
-dt-bks 1=8700
-dt-vis 1=8700
-dt-sr 1=8700
-dt-cf 1=8700
-dt-map 1=8700
-
-# Rank Weights
-r1 9=32
-r2 9=28
-r3 9=26
-r4 9=10
-r5 9=22
-r6 9=20
-r7 9=18
-r8 9=16
-r9 9=14
-
-# Sorting
-title-sort-za 7=2 1=36
-title-sort-az 7=1 1=36
-# CCL DIRECTIVES
-# Truncation characters (it seems to take multiple arguments)
-@truncation ? *
-# field specifies how multiple fields are to be combined.
-# There are two modes: or: multiple qualifier fields are
-# ORed, merge: attributes for the qualifier fields are
-# merged and assigned to one term.
-@field merge
-# case specificies if CCL operatores and qualifiers
-# should be compared with case sensitivity or not.
-# Specify 0 for case sensitive; 1 for case insensitive.
-@case 0
-# Tokens for CCL operators (it seems you can assign multiple tokens per operator which is nice)
-@and and +
-@or or |
-# make sure - doesn't conflict with another usage of this token
-@not not
-@set set
-# Not sure if you can specify tokens for prox operators, but here are the defaults
-# proximity of a, b - distance n - any order:
-# a %n b
-# proximity of a, b - distance n - in order:
-# a !n b
-# Integer n may be omitted - in which case distance is 1.
-
-# Rules for a few GILS fields
-#north  gils-attset,u=2040 r=o
-#south  gils-attset,u=2041 r=o
-#east  gils-attset,u=2038 r=o
-#west  gils-attest,u=2039 r=o
-#distributor gils-attset,u=2000 s=pw
-#distributorname gils-attset,u=2001 s=pw
-
-# Explain fields
-ExplainCategory      exp1,1=1
-HumanStringLanguage  exp1,1=2
-DatabaseName         exp1,1=3
-TargetName           exp1,1=4
-AttributeSetOID      exp1,1=5
-RecordSyntaxOID      exp1,1=6
-TagSetOID            exp1,1=7
-ExtededServiceOID    exp1,1=8
-DateAdded            exp1,1=9
-DateChanged          exp1,1=10
-DateExpires          exp1,1=11
-ElementSetName       exp1,1=12
diff --git a/etc/cql.properties b/etc/cql.properties
deleted file mode 100644 (file)
index c61de44..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-# CCL field mappings
-# $Id: default.bib,v 1.1 2006/06/13 16:44:21 mike Exp $
-# 
-# The rule below is used when no fields are specified
-term t=l,r  s=al
-#
-# Simple rule for a field called "clean"
-clean t=l,r
-#
-# Rules for some BIB-1 fields
-au   u=1003    s=pw 
-ti   u=4    s=pw
-isbn u=7
-issn u=8
-cc   u=20
-su   u=21   s=pw
-date u=30   r=r
-dp   u=31   r=r
-da   u=32   r=r
-la   u=54   s=pw
-ab   u=62   s=pw
-note u=63   s=pw
-af   u=1006 s=pw
-#
-# Rules for a few GILS fields
-north  gils-attset,u=2040 r=o
-south  gils-attset,u=2041 r=o
-east  gils-attset,u=2038 r=o
-west  gils-attest,u=2039 r=o
-distributor gils-attset,u=2000 s=pw
-distributorname gils-attset,u=2001 s=pw
-
-# Explain fields
-ExplainCategory      exp1,1=1
-HumanStringLanguage  exp1,1=2
-DatabaseName         exp1,1=3
-TargetName           exp1,1=4
-AttributeSetOID      exp1,1=5
-RecordSyntaxOID      exp1,1=6
-TagSetOID            exp1,1=7
-ExtededServiceOID    exp1,1=8
-DateAdded            exp1,1=9
-DateChanged          exp1,1=10
-DateExpires          exp1,1=11
-ElementSetName       exp1,1=12
index abe67a3..43687f5 100644 (file)
 <!-- BIBLIOGRAPHIC RECORDS -->
 <server id="biblioserver"  listenref="biblioserver"> 
     <directory>__BASE_DIR__/zebradb/biblios</directory>
-    <config>__PREFIX__/share/koha/etc/zebra-biblios.cfg</config>
-    <cql2rpn>__PREFIX__/share/koha/etc/pqf.properties</cql2rpn>
+    <config>__PREFIX__/share/koha/etc/zebradb/zebra-biblios.cfg</config>
+    <cql2rpn>__PREFIX__/share/koha/etc/zebradb/pqf.properties</cql2rpn>
 </server>
 <serverinfo id="biblioserver">
-        <ccl2rpn>__PREFIX__/share/koha/etc/ccl.properties</ccl2rpn>
+        <ccl2rpn>__PREFIX__/share/koha/etc/zebradb/ccl.properties</ccl2rpn>
         <user>__ZEBRA_USER__</user>    
         <password>__ZEBRA_PASS__</password>
 </serverinfo>
 <!-- AUTHORITY RECORDS -->
 <server id="authorityserver"  listenref="authorityserver" >
     <directory>__BASE_DIR__/zebradb/authorities</directory>
-    <config>__PREFIX__/share/koha/etc/zebra-authorities.cfg</config>
+    <config>__PREFIX__/share/koha/etc/zebradb/zebra-authorities.cfg</config>
 </server>
 <serverinfo id="authorityserver">
-    <ccl2rpn>__PREFIX__/share/koha/etc/ccl.properties</ccl2rpn>
+    <ccl2rpn>__PREFIX__/share/koha/etc/zebradb/ccl.properties</ccl2rpn>
     <user>__ZEBRA_USER__</user>
     <password>__ZEBRA_PASS__</password>
 </serverinfo>
diff --git a/etc/pqf.properties b/etc/pqf.properties
deleted file mode 100644 (file)
index 9d1ff86..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-# $Id$
-#
-# Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF()
-# back-end and the YAZ CQL-to-PQF converter.  This specifies the
-# interpretation of various CQL indexes, relations, etc. in terms
-# of Type-1 query attributes.
-#
-# This configuration file generates queries using BIB-1 attributes.
-# See http://www.loc.gov/z3950/agency/zing/cql/dc-indexes.html
-# for the Maintenance Agency's work-in-progress mapping of Dublin Core
-# indexes to Attribute Architecture (util, XD and BIB-2)
-# attributes.
-
-# Identifiers for prefixes used in this file. (index.*)
-set.cql                = info:srw/cql-context-set/1/cql-v1.1
-set.rec                = info:srw/cql-context-set/2/rec-1.0
-set.dc         = info:srw/cql-context-set/1/dc-v1.1
-set.bath       = http://zing.z3950.org/cql/bath/2.0/
-
-# default set (in query)
-set            = info:srw/cql-context-set/1/dc-v1.1
-
-# The default access point and result-set references
-index.cql.serverChoice                 = 1=1016
-       # srw.serverChoice is deprecated in favour of cql.serverChoice
-       # BIB-1 "any"
-
-index.rec.id                           = 1=12
-
-index.dc.identifier                            = 1=1007          
-index.dc.title                         = 1=4
-index.dc.subject                       = 1=21
-index.dc.creator                       = 1=1003
-index.dc.author                                = 1=1003
-index.dc.itemtype                       = 1=1031
-index.dc.barcode                        = 1=1028
-index.dc.branch                         = 1=1033
-index.dc.isbn                           = 1=7
-index.dc.issn                           = 1=8
-index.dc.any                           = 1=1016
-index.dc.note                  = 1=63
-
-       ### Unofficial synonym for "creator"
-index.dc.editor                                = 1=1020
-index.dc.publisher                     = 1=1018
-index.dc.description                   = 1=62
-       # "abstract"
-index.dc.date                          = 1=30
-index.dc.resourceType                  = 1=1031
-       # guesswork: "Material-type"
-index.dc.format                                = 1=1034
-       # guesswork: "Content-type"
-index.dc.resourceIdentifier            = 1=12
-       # "Local number"
-#index.dc.source                               = 1=1019
-       # "Record-source"
-index.dc.language                      = 1=54
-       # "Code--language"
-       
-index.dc.Place-publication             = 1=59
-       # "Place-publication"
-
-index.dc.relation                      = 1=?
-       ### No idea how to represent this
-index.dc.coverage                      = 1=?
-       ### No idea how to represent this
-index.dc.rights                                = 1=?
-       ### No idea how to represent this
-
-# Relation attributes are selected according to the CQL relation by
-# looking up the "relation.<relation>" property:
-#
-relation.<                             = 2=1
-relation.le                            = 2=2
-relation.eq                            = 2=3
-relation.exact                         = 2=3
-relation.ge                            = 2=4
-relation.>                             = 2=5
-relation.<>                            = 2=6
-
-### These two are not really right:
-relation.all                           = 2=3
-relation.any                           = 2=3
-
-# BIB-1 doesn't have a server choice relation, so we just make the
-# choice here, and use equality (which is clearly correct).
-relation.scr                           = 2=3
-
-# Relation modifiers.
-#
-relationModifier.relevant              = 2=102
-relationModifier.fuzzy                  = 5=103
-       ### 100 is "phonetic", which is not quite the same thing
-relationModifier.stem                  = 2=101
-relationModifier.phonetic              = 2=100
-
-# Position attributes may be specified for anchored terms (those
-# beginning with "^", which is stripped) and unanchored (those not
-# beginning with "^").  This may change when we get a BIB-1 truncation
-# attribute that says "do what CQL does".
-#
-position.first                         = 3=1 6=1
-       # "first in field"
-position.any                           = 3=3 6=1
-       # "any position in field"
-position.last                          = 3=4 6=1
-       # not a standard BIB-1 attribute
-position.firstAndLast                  = 3=3 6=3
-       # search term is anchored to be complete field
-
-# Structure attributes may be specified for individual relations; a
-# default structure attribute my be specified by the pseudo-relation
-# "*", to be used whenever a relation not listed here occurs.
-#
-structure.exact                                = 4=108
-       # string
-structure.all                          = 4=2
-structure.any                          = 4=2
-structure.*                            = 4=1
-       # phrase
-
-# Truncation attributes used to implement CQL wildcard patterns.  The
-# simpler forms, left, right- and both-truncation will be used for the
-# simplest patterns, so that we produce PQF queries that conform more
-# closely to the Bath Profile.  However, when a more complex pattern
-# such as "foo*bar" is used, we fall back on Z39.58-style masking.
-#
-truncation.right                       = 5=1
-truncation.left                                = 5=2
-truncation.both                                = 5=3
-truncation.none                                = 5=100
-truncation.z3958                       = 5=104
-
-# Finally, any additional attributes that should always be included
-# with each term can be specified in the "always" property.
-#
-always                                 = 6=1
-# 6=1: completeness = incomplete subfield
-
-
-# Bath Profile support, added Thu Dec 18 13:06:20 GMT 2003
-# See the Bath Profile for SRW at
-#      http://zing.z3950.org/cql/bath.html
-# including the Bath Context Set defined within that document.
-#
-# In this file, we only map index-names to BIB-1 use attributes, doing
-# so in accordance with the specifications of the Z39.50 Bath Profile,
-# and leaving the relations, wildcards, etc. to fend for themselves.
-
-index.bath.keyTitle                    = 1=33
-index.bath.possessingInstitution       = 1=1044
-index.bath.name                                = 1=1002
-index.bath.personalName                        = 1=1
-index.bath.corporateName               = 1=2
-index.bath.conferenceName              = 1=3
-index.bath.uniformTitle                        = 1=6
-index.bath.isbn                                = 1=7
-index.bath.issn                                = 1=8
-index.bath.geographicName              = 1=58
-index.bath.notes                       = 1=63
-index.bath.topicalSubject              = 1=1079
-index.bath.genreForm                   = 1=1075
-
diff --git a/etc/zebra-authorities.cfg b/etc/zebra-authorities.cfg
deleted file mode 100644 (file)
index a63293e..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-
-# Simple Zebra configuration file that defines
-# a database with MARCXML records.
-# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
-#
-# Where are the config files located?
-profilePath:__PREFIX__/share/koha/etc/zebradb/authorities/tab:__PREFIX__/share/koha/etc/zebradb/tab
-
-encoding: UTF-8
-# modulePath - where to look for loadable zebra modules
-modulePath: /usr/lib/idzebra-2.0/modules
-
-# Files that describe the attribute sets supported.
-attset: bib1.att
-attset: explain.att
-attset:gils.att
-
-#systag sysno rank
-# Specify record type
-iso2709.recordType:grs.marcxml.record
-recordType:grs.xml
-recordId: (bib1,Local-Number)  
-# was auth1
-storeKeys:1
-storeData:1
-
-
-# Lock File Area
-lockDir: __BASE_DIR__/zebradb/authorities/lock
-perm.anonymous:r
-perm.kohaadmin:rw
-passw.kohalis
-shadow
-register: __BASE_DIR__/zebradb/authorities/register:4G
-shadow: __BASE_DIR__/zebradb/authorities/shadow:1G 
-
-# Temp File area for result sets
-setTmpDir: __BASE_DIR__/zebradb/authorities/tmp
-
-# Temp File area for index program
-keyTmpDir: __BASE_DIR__/zebradb/authorities/key
-
-# Approx. Memory usage during indexing
-memMax: 200M
-rank:rank-1
-
diff --git a/etc/zebra-biblios.cfg b/etc/zebra-biblios.cfg
deleted file mode 100644 (file)
index 9d93aca..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# Simple Zebra configuration file that defines
-# a database with MARCXML records.
-# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
-#
-# Where are the config files located?
-profilePath:__PREFIX__/share/koha/etc/zebradb/biblios/tab:__PREFIX__/share/koha/etc/zebradb/tab
-# modulePath - where to look for loadable zebra modules
-modulePath: /usr/lib/idzebra-2.0/modules
-
-encoding: UTF-8
-# Files that describe the attribute sets supported.
-attset: bib1.att
-attset: explain.att
-attset:gils.att
-
-# systag sysno rank
-# Specify record type
-iso2709.recordType:grs.marcxml.record
-recordType:grs.xml
-recordId: (bib1,Local-number)
-storeKeys:1
-storeData:1
-
-
-# Lock File Area
-lockDir: __BASE_DIR__/zebradb/biblios/lock
-perm.anonymous:r
-perm.kohaadmin:rw
-passw.kohalis
-shadow
-register: __BASE_DIR__/zebradb/biblios/register:4G
-shadow: __BASE_DIR__/zebradb/biblios/shadow:4G
-
-# Temp File area for result sets
-setTmpDir: __BASE_DIR__/zebradb/biblios/tmp
-
-# Temp File area for index program
-keyTmpDir: __BASE_DIR__/zebradb/biblios/key
-
-# Approx. Memory usage during indexing
-memMax: 500M
-rank:rank-1
diff --git a/etc/zebradb/authorities/lock/norm..LCK b/etc/zebradb/authorities/lock/norm..LCK
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/etc/zebradb/authorities/lock/shadow..LCK b/etc/zebradb/authorities/lock/shadow..LCK
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/etc/zebradb/authorities/lock/state..LCK b/etc/zebradb/authorities/lock/state..LCK
new file mode 100644 (file)
index 0000000..0db88d4
--- /dev/null
@@ -0,0 +1 @@
+o 1 18678
diff --git a/etc/zebradb/authorities/register/dict-0.mf b/etc/zebradb/authorities/register/dict-0.mf
new file mode 100644 (file)
index 0000000..570ad87
Binary files /dev/null and b/etc/zebradb/authorities/register/dict-0.mf differ
diff --git a/etc/zebradb/authorities/register/gmatch-0.mf b/etc/zebradb/authorities/register/gmatch-0.mf
new file mode 100644 (file)
index 0000000..03f818e
Binary files /dev/null and b/etc/zebradb/authorities/register/gmatch-0.mf differ
diff --git a/etc/zebradb/authorities/register/isambA-0.mf b/etc/zebradb/authorities/register/isambA-0.mf
new file mode 100644 (file)
index 0000000..4f4b723
Binary files /dev/null and b/etc/zebradb/authorities/register/isambA-0.mf differ
diff --git a/etc/zebradb/authorities/register/recdA-0.mf b/etc/zebradb/authorities/register/recdA-0.mf
new file mode 100644 (file)
index 0000000..defe33f
Binary files /dev/null and b/etc/zebradb/authorities/register/recdA-0.mf differ
diff --git a/etc/zebradb/authorities/register/reci-0.mf b/etc/zebradb/authorities/register/reci-0.mf
new file mode 100644 (file)
index 0000000..d7ec339
Binary files /dev/null and b/etc/zebradb/authorities/register/reci-0.mf differ
diff --git a/etc/zebradb/authorities/tab/bib1.att b/etc/zebradb/authorities/tab/bib1.att
new file mode 100644 (file)
index 0000000..1797cc2
--- /dev/null
@@ -0,0 +1,319 @@
+# $Id: bib1.att,v 1.1 2002/10/22 12:51:09 adam Exp $
+# Bib-1 Attribute Set
+name bib1
+reference Bib-1
+include gils.att
+
+
+att 1               Personal-name
+att 2               Corporate-name
+att 3               Conference-name
+att 4               Title
+att 5               Title-series
+att 6               Title-uniform
+att 7               ISBN
+att 8               ISSN
+att 9               LC-card-number
+att 10              BNB-card-number
+att 11              BGF-number
+att 12              Local-number
+att 13              Dewey-classification
+att 14              UDC-classification
+att 15              Bliss-classification
+att 16              LC-call-number
+att 17              NLM-call-number
+att 18              NAL-call-number
+att 19              MOS-call-number
+att 20              Local-classification
+att 21              Subject
+att 22              Subject-Rameau
+att 23              BDI-index-subject
+att 24              INSPEC-subject
+att 25              MESH-subject
+att 26              PA-subject
+att 27              LC-subject-heading
+att 28              RVM-subject-heading
+att 29              Local-subject-index
+att 30              Date
+att 31              pubdate
+att 32              Date-of-acquisition
+att 33              Title-key
+att 34              Title-collective
+att 35              Title-parallel
+att 36              Title-cover
+att 37              Title-added-title-page
+att 38              Title-caption
+att 39              Title-running
+att 40              Title-spine
+att 41              Title-other-variant
+att 42              Title-former
+att 43              Title-abbreviated
+att 44              Title-expanded
+att 45              Subject-precis
+att 46              Subject-rswk
+att 47              Subject-subdivision
+att 48              Number-natl-biblio
+att 49              Number-legal-deposit
+att 50              Number-govt-pub
+att 51              Number-music-publisher
+att 52              Number-db
+att 53              Number-local-call
+att 54              ln
+att 55              Code-geographic
+att 56              Code-institution
+att 57              Name-and-title
+att 58              Name-geographic
+att 59              pl
+att 60              CODEN
+att 61              Microform-generation
+att 62              Abstract
+att 63              Note
+att 1000            Author-title
+# Record-type
+att 1001            rtype
+att 1002            Name
+att 1003            Author
+att 1004            Author-name-personal
+att 1005            Author-name-corporate
+att 1006            Author-name-conference
+att 1007            Identifier-standard
+att 1008            Subject-LC-childrens
+att 1009            Subject-name-personal
+att 1010            Body-of-text
+att 1011            dateaddeddb
+att 1012            Date/time-last-modified
+att 1013            Authority/format-id
+att 1014            Concept-text
+att 1015            Concept-reference
+att 1016            Any 
+att 1017            Server-choice
+att 1018            Publisher
+att 1019            Record-source
+att 1020            Editor
+att 1021            Bib-level
+att 1022            Geographic-class
+att 1023            Indexed-by
+att 1024            Map-scale
+att 1025            Music-key
+att 1026            Related-periodical
+att 1027            Report-number
+att 1028            Stock-number
+att 1030            Thematic-number
+att 1031            Material-type
+att 1032            Doc-id
+att 1033            Host-item
+att 1034            ctype
+att 1035            Anywhere
+att 1036            Author-Title-Subject
+
+# Koha Specific Stuff
+att 8001                       Extent
+att 8910                       Koha-Auth-Number
+
+# record length according to the leader
+att 8005                       llength
+#att 8002                      Summary 
+#att 8900                      Call-Number
+
+# Usually Target Audience 008/22
+att 8822                       ta
+
+# Usually Form of item 008/23
+att 8823                       ff8-23
+
+# Usually Nature of contents 008/24-27
+att 8824                       ff8-24-27
+
+# Usually Content-type, also Form of item for maps 008/29
+att 8829                       ff8-29
+
+# Usually Literary Form 008/33
+att 8833                       lf
+#att 8833                      ff8-33
+
+# Usually Biography, also Special format characteristics for maps 008/34
+att 8834                       bio
+#att 8834                      ff8-34
+
+att 8700                       ff7-00
+att 8701                       ff7-01
+att 8702                       ff7-02
+att 8703                       ff7-01-02
+
+att 9100                       dynixbib-id
+att 9520                       withdrawn
+att 9521                       lost
+att 9522                       onloan
+
+att 9523                       popularity
+# Author-personal-bibliography - lastname,firstname in 100$a
+att 8900               Author-personal-bibliography
+# Author-in-order - firstname lastname in 245$c statement of responsibility
+att 8901               Author-in-order
+
+
+# Koha Specific Stuff
+
+att 8900                       Call-Number
+att 8800                       date-entered-on-file
+att 8801                       date1
+att 8802                       date2
+att 8805                       language
+att 8822                       ff8-22
+att 8833                       ff8-33
+att 8834                       ff8-34
+
+att 8700                       ff7-00
+att 8701                       ff7-01
+att 8702                       ff7-02
+
+######################################################################
+######################################################################
+#Authorities
+######################################################################
+######################################################################
+
+#######################################
+#Coded Entries
+#######################################
+
+#used in $5 for relationships
+#Coded field
+
+att 9200               Auth-RelationShip
+
+#used in $2 should contain authtypecode if authority is an other type
+#Coded field
+att 9210               Auth-Internal-authtype
+
+#used in $3 should contain authid if authority is an other type
+#Coded field
+att 9220               Auth-Internal-LN
+
+#used in $7 should contain Script language 
+#Coded field (Greek, and other alphabets)
+att 9230               Auth-Script
+
+#used in $8 should contain Entity language 
+#Coded field (Greek, and other alphabets)
+att 9240               Auth-Language
+
+#BUGFIX ??
+# Maybe there could be a problem to define so few types.
+# We could have MANY undesired results not to have a specialization by Authtype
+# It can be added
+
+#used in $2 should contain authtypecode if authority is an other type
+#Coded field
+#Can be found also by Authority/format-id
+att 9250               Authority/format-id
+
+
+######################################################
+# Global search (Any AuthorityType)
+######################################################
+att 9001               Heading
+att 9002               See
+att 9003               See-also
+att 9004               Parallel
+att 9005               Heading-entity
+att 9006               See-Entity
+att 9007               See-also-Entity
+att 9008               Parallel-Entity
+att 9009               Subject-heading
+att 9000               Name-geographic
+
+######################################################
+# Main Entries
+######################################################
+
+att 9011               Personal-heading
+att 9012               Corporate-heading
+att 9013               Conference-heading
+att 9014               Place-heading
+att 9015               Trademark-heading
+att 9016               Title-uniform
+att 9017               Collective-Title-uniform
+att 9018               Place-Access
+#att 9019               Subject-heading is already defined
+#att 9010               Name-geographic
+
+att 9021               Personal-see
+att 9022               Corporate-see
+att 9023               Conference-see
+att 9024               Place-see
+att 9025               Trademark-see
+att 9026               Title-uniform-see
+att 9027               Collective-Title-uniform-see
+att 9028               Place-Access-see
+att 9029               Subject-see
+att 9020               Name-geographic-see
+
+att 9031               Personal-see-also
+att 9032               Corporate-see-also
+att 9033               Conference-see-also
+att 9034               Place-see-also
+att 9035               Trademark-see-also
+att 9036               Title-uniform-see-also
+att 9037               Collective-Title-uniform-see-also
+att 9038               Place-Access-see-also
+att 9039               Subject-see-also
+att 9030               Name-geographic-see-also
+
+att 9041               Personal-parallel
+att 9042               Corporate-parallel
+att 9043               Conference-parallel
+att 9044               Place-parallel
+att 9045               Trademark-parallel
+att 9046               Title-uniform-parallel
+att 9047               Collective-Title-uniform-parallel
+att 9048               Place-Access-parallel
+att 9049               Subject-parallel
+att 9040               Name-geographic-parallel
+
+
+######################################
+#Whole record
+######################################
+att 9101               Personal-heading-entity
+att 9102               Corporate-heading-entity
+att 9103               Conference-heading-entity
+att 9104               Place-heading-entity
+att 9105               Trademark-heading-entity
+att 9106               Title-uniform-entity
+att 9107               Collective-Title-uniform-entity
+att 9108               Place-Access-entity
+att 9109               Subject-heading-entity
+att 9130               Name-geographic-entity
+
+att 9111               Personal-see-entity
+att 9112               Corporate-see-entity
+att 9113               Conference-see-entity
+att 9114               Place-see-entity
+att 9115               Trademark-see-entity
+att 9116               Title-see-entity
+att 9117               Collective-Title-uniform-see-entity
+att 9118               Place-Access-see-entity
+att 9119               Subject-see-entity
+
+att 9121               Personal-see-also-entity
+att 9122               Corporate-see-also-entity
+att 9123               Conference-see-also-entity
+att 9124               Place-see-also-entity
+att 9125               Trademark-see-also-entity
+att 9126               Title-see-also-entity
+att 9127               Collective-Title-uniform-see-also-entity
+att 9128               Place-Access-see-also-entity
+att 9129               Subject-see-also-entity
+
+att 9131               Personal-parallel-entity
+att 9132               Corporate-parallel-entity
+att 9133               Conference-parallel-entity
+att 9134               Place-parallel-entity
+att 9135               Trademark-parallel-entity
+att 9136               Title-parallel-entity
+att 9137               Collective-Title-uniform-parallel-entity
+att 9138               Place-Access-parallel-entity
+att 9139               Subject-parallel-entity
+
+
diff --git a/etc/zebradb/authorities/tab/record.abs b/etc/zebradb/authorities/tab/record.abs
new file mode 100644 (file)
index 0000000..d6b4569
--- /dev/null
@@ -0,0 +1,185 @@
+# $Id: record_authorities_unimarc.abs,v 1.1.2.1 2006/11/28 10:11:56 tipaul Exp $
+
+# indexing rules. It
+# results in a server which provides a passable Bath level 0 and 1 service
+############################################################################
+# IMPORTANT : this file MUST be renamed record.abs : this name is "hardcoded" in zebra
+# the default record.abs is designed for MARC21.
+############################################################################
+# NOTE: This is designed to be used with the grs.marcxml input filter
+# for ISO2709 (ANSI Z39.2) or grs.xml for MARCXML-formatted records. It
+# won't work for the old grs.marc input filter, which yields a different
+# internal structure.
+
+encoding utf-8
+name authorities
+#attset auth1.att
+attset bib1.att
+esetname F @
+esetname B @
+
+marc usmarc.mar
+systag sysno rank
+xpath disable
+
+all any
+melm 001               Local-Number
+melm 152$b             Authority/format-id
+#melm 005        Version-id
+#melm 015        IASDN
+
+
+########################
+# Coded fields
+########################
+#melm 100$a      date-entered-on-file:n:range(data,0,8),date-entered-on-file:s:range(data,0,8),auth-status:n:range(data,8,1),auth-status:s:range(data,8,1),language:n:range(data,9,3),language:s:range(data,9,3),char-encoding:w:range(data,13,4),char-encoding:s:range(data,13,4),ff100-17:w:range(data,17,3),ff100-21:w:range(data,21,2),ff100-23:w:range(data,23,1)
+
+#melm 101$a     Language
+#melm 102$a     Country-heading
+# Subject-Heading
+#melm 106$a     Vaut 0(inutilisable sujet-matiere),1 (utilisable sujet-matiere)ou 2(utilisable uniquement sujet-matiere)
+#melm 120$a Obligatoire sur Autorite NP : Sexe et discrimination
+#melm 123$a Obligatoire sur Autorite GEO : Localisation
+#melm 150$a Obligatoire sur Autorite CO : Type de collectivite
+# 4XX$3 5XX$3 7XX$3 authority number
+# 4XX$5 5XX$5 7XX$5 Linking type
+# 4XX$7 5XX$7 7XX$7 Script Cataloguing
+# 4XX$8 5XX$8 7XX$8 Language
+
+
+############ HEADINGS ##################
+melm 100$a Heading:w,Heading:p,Heading:s, personal-heading,personal-heading:w,personal-heading:s,personal-heading:p
+melm 110$a Heading:w,Heading:p,Heading:s,corporate-heading
+melm 110$a Heading:w,Heading:p,Heading:s,Conference-heading
+melm 115$a Heading:w,Heading:p,Heading:s,Name-geographic
+#melm 216 Name-corporate
+melm 120$a Heading:w,Heading:p,Heading:s,personal-heading,personal-heading:w,personal-heading:s,personal-heading:p
+melm 130$a Heading:w,Heading:p,Heading:s,Title-Uniform,Title-Uniform:w,Title-Uniform:s,Title-Uniform:p
+melm 135$a Heading:w,Heading:p,Heading:s,Title-Uniform,Title-Uniform:w,Title-Uniform:s,Title-Uniform:p
+melm 150$a Heading:w,Heading:p,Heading:s,Subject-heading, Subject-heading:w,Subject-heading:s,Subject-heading:p
+
+melm 100 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s, personal-Heading-Entity,personal-Heading-Entity:w,personal-Heading-Entity:s,personal-Heading-Entity:p
+melm 110 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,corporate-Heading-Entity
+melm 110 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Conference-Heading-Entity
+melm 115 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Name-geographic-Entity
+#melm 216 Name-corporate
+melm 120 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,personal-Heading-Entity,personal-Heading-Entity:w,personal-Heading-Entity:s,personal-Heading-Entity:p
+melm 130 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Title-Uniform-entity,Title-Uniform-entity:w,Title-Uniform:s,Title-Uniform-entity:p
+melm 135 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Title-Uniform-entity,Title-Uniform-entity:w,Title-Uniform:s,Title-Uniform-entity:p
+melm 150 Heading-Entity:w,Heading-Entity:p,Heading-Entity:s,Subject-Thesaurus
+
+#210 Heading - Corporate Body Name
+#215 Heading - Territorial or Geographical Name
+#216 Heading - Trademark
+#220 Heading - Family Name
+#230 Heading - Uniform Title
+#235 Heading - Collective Uniform Title
+#240 Heading - Name/Title
+#245 Heading - Name/Collective Uniform Title
+#250 Heading - Topical Subject
+#260 Heading - Place Access
+#280 Heading - Form, Genre or Physical Characteristics
+#melm 712              Author,Author:p,Author:s
+
+############# Rejected forms ##################
+#melm 400$a See, See:w,See:p,See:s,personal-see,personal-see:w,personal-see:s,personal-see:p
+#melm 410$a See, See:w,See:p,See:s,corporate-see
+#melm 410$a See, See:w,See:p,See:s,Conference-see
+#melm 415$a See, See:w,See:p,See:s,Name-geographic-see
+##melm 416 Name-corporate
+#melm 440$a See, See:w,See:p,See:s,personal-see,personal-see:w,personal-see:s,personal-see:p
+#melm 430$a See, See:w,See:p,See:s,Title-Uniform-see,Title-Uniform-see:w,Title-Uniform-see:s,Title-Uniform-see:p
+#melm 435$a See, See:w,See:p,See:s,Title-Uniform-see,Title-Uniform-see:w,Title-Uniform-see:s,Title-Uniform-see:p
+#melm 450$a See, See:w,See:p,See:s,Subject-see,Subject-see:w,Subject-see:s,Subject-see,:p
+#melm 400 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,personal-See-Entity,personal-See-Entity:w,personal-See-Entity:s,personal-See-Entity:p
+#melm 410 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,corporate-See-Entity
+#melm 410 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,Conference-See-Entity
+#melm 415 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,Name-geographic-See-Entity
+##melm 416 Name-corporate
+#melm 440 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,personal-See-Entity,personal-See-Entity:w,personal-See-Entity:s,personal-See-Entity:p
+#melm 430 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,Title-Uniform-See-Entity,Title-Uniform-See-Entity:w,Title-Uniform-See-Entity:s,Title-Uniform-See-Entity:p
+#melm 435 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,Title-Uniform-See-Entity,Title-Uniform-See-Entity:w,Title-Uniform-See-Entity:s,Title-Uniform-See-Entity:p
+#melm 450 See-Entity, See-Entity:w,See-Entity:p,See-Entity:s,Subject-See-Entity,Subject-See-Entity:w,Subject-See-Entity:s,Subject-See-Entity,:p
+#
+##410 Heading - Corporate Body Name
+##415 Heading - Territorial or Geographical Name
+##416 Heading - Trademark
+##440 Heading - Family Name
+##430 Heading - Uniform Title
+##435 Heading - Collective Uniform Title
+##440 Heading - Name/Title
+##445 Heading - Name/Collective Uniform Title
+##450 Heading - Topical Subject
+##460 Heading - Place Access
+##480 Heading - Form, Genre or Physical Characteristics
+##melm 714             Author,Author:p,Author:s
+#
+############# Related forms ##################
+#melm 500$a personal-see-also,personal-see-also:w,personal-see-also:s,personal-see-also:p
+#melm 510$a corporate-see-also
+#melm 510$a Conference-see-also
+#melm 515$a Name-geographic-see-also
+##melm 416 Name-corporate
+#melm 540$a personal-see-also,personal-see-also:w,personal-see-also:s,personal-see-also:p
+#melm 530$a Title-Uniform-see-also,Title-Uniform-see-also:w,Title-Uniform-see-also:s,Title-Uniform-see-also:p
+#melm 535$a Title-Uniform-see-also,Title-Uniform-see-also:w,Title-Uniform-see-also:s,Title-Uniform-see-also:p
+#melm 550$a Subject-see-also,Subject-see-also:w,Subject-see-also:s,Subject-see-also:p
+##510 Heading - Corporate Body Name
+##515 Heading - Territorial or Geographical Name
+##516 Heading - Trademark
+##550 Heading - Family Name
+##530 Heading - Uniform Title
+##535 Heading - Collective Uniform Title
+##540 Heading - Name/Title
+###545 Heading - Name/Collective Uniform Title
+##550 Heading - Topical Subject
+##560 Heading - Place Access
+##580 Heading - Form, Genre or Physical Characteristics
+##melm 714             Author,Author:p,Author:s
+#
+############# Parallel forms ##################
+#melm 700$a personal-parallel,personal-parallel:w,personal-parallel:s,personal-parallel:p
+#melm 710$a corporate-parallel
+#melm 710$a Conference-parallel
+#melm 715$a Name-geographic-parallel
+##melm 716 Name-corporate
+#melm 770$a personal-parallel,personal-parallel:w,personal-parallel:s,personal-parallel:p
+#melm 730$a Title-Uniform-parallel,Title-Uniform-parallel:w,Title-Uniform-parallel:s,Title-Uniform-parallel:p
+#melm 735$a Title-Uniform-parallel,Title-Uniform-parallel:w,Title-Uniform-parallel:s,Title-Uniform-parallel:p
+#melm 750$a Subject-parallel,Subject-parallel:w,Subject-parallel:s,Subject-parallel:p
+#
+########### NOTES #################
+#melm 300$a            Note    !:w,!:p
+#melm 301$a            Note    !:w,!:p
+#melm 302$a            Note    !:w,!:p
+#melm 303$a            Note    !:w,!:p
+#melm 304$a            Note    !:w,!:p
+#melm 305$a            Note    !:w,!:p
+#melm 306$a            Note    !:w,!:p
+#melm 307$a            Note    !:w,!:p
+#melm 308$a            Note    !:w,!:p
+#melm 310$a            Note    !:w,!:p
+#melm 311$a            Note    !:w,!:p
+#melm 312$a            Note    !:w,!:p
+#melm 313$a            Note    !:w,!:p
+#melm 314$a            Note    !:w,!:p
+#melm 315$a            Note    !:w,!:p
+#melm 316$a            Note    !:w,!:p
+#melm 317$a            Note    !:w,!:p
+#melm 318$a            Note    !:w,!:p
+#melm 320$a            Note    !:w,!:p
+#melm 321$a            Note    !:w,!:p
+#melm 322$a            Note    !:w,!:p
+#melm 323$a            Note    !:w,!:p
+#melm 324$a            Note    !:w,!:p
+#melm 325$a            Note    !:w,!:p
+#melm 326$a            Note    !:w,!:p
+#melm 327$a            Note    !:w,!:p
+#melm 328$a            Note    !:w,!:p
+#melm 330$a            Note    !:w,!:p
+#melm 332$a            Note    !:w,!:p
+#melm 333$a            Note    !:w,!:p
+#melm 336$a            Note    !:w,!:p
+#melm 337$a            Note    !:w,!:p
+#melm 345$a            Note    !:w,!:p
+#####
diff --git a/etc/zebradb/biblios/lock/norm..LCK b/etc/zebradb/biblios/lock/norm..LCK
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/etc/zebradb/biblios/lock/shadow..LCK b/etc/zebradb/biblios/lock/shadow..LCK
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/etc/zebradb/biblios/tab/bib1.att b/etc/zebradb/biblios/tab/bib1.att
new file mode 100644 (file)
index 0000000..2ade049
--- /dev/null
@@ -0,0 +1,151 @@
+# $Id: bib1.att,v 1.1 2002/10/22 12:51:09 adam Exp $
+# Bib-1 Attribute Set
+name bib1
+reference Bib-1
+
+att 1               Personal-name
+att 2               Corporate-name
+att 3               Conference-name
+att 4               Title
+att 5               Title-series
+att 6               Title-uniform
+att 7               ISBN
+att 8               ISSN
+att 9               LC-card-number
+att 10              BNB-card-number
+att 11              BGF-number
+att 12              Local-number
+att 13              Dewey-classification
+att 14              UDC-classification
+att 15              Bliss-classification
+att 16              LC-call-number
+att 17              NLM-call-number
+att 18              NAL-call-number
+att 19              MOS-call-number
+att 20              Local-classification
+att 21              Subject
+att 22              Subject-Rameau
+att 23              BDI-index-subject
+att 24              INSPEC-subject
+att 25              MESH-subject
+att 26              PA-subject
+att 27              LC-subject-heading
+att 28              RVM-subject-heading
+att 29              Local-subject-index
+att 30              Date
+att 31              pubdate
+att 32              Date-of-acquisition
+att 33              Title-key
+att 34              Title-collective
+att 35              Title-parallel
+att 36              Title-cover
+att 37              Title-added-title-page
+att 38              Title-caption
+att 39              Title-running
+att 40              Title-spine
+att 41              Title-other-variant
+att 42              Title-former
+att 43              Title-abbreviated
+att 44              Title-expanded
+att 45              Subject-precis
+att 46              Subject-rswk
+att 47              Subject-subdivision
+att 48              Number-natl-biblio
+att 49              Number-legal-deposit
+att 50              Number-govt-pub
+att 51              Number-music-publisher
+att 52              Number-db
+att 53              Number-local-call
+att 54              ln
+att 55              Code-geographic
+att 56              Code-institution
+att 57              Name-and-title
+att 58              Name-geographic
+att 59              pl
+att 60              CODEN
+att 61              Microform-generation
+att 62              Abstract
+att 63              Note
+att 1000            Author-title
+# Record-type
+att 1001            rtype
+att 1002            Name
+att 1003            Author
+att 1004            Author-name-personal
+att 1005            Author-name-corporate
+att 1006            Author-name-conference
+att 1007            Identifier-standard
+att 1008            Subject-LC-childrens
+att 1009            Subject-name-personal
+att 1010            Body-of-text
+att 1011            dateaddeddb
+att 1012            Date/time-last-modified
+att 1013            Authority/format-id
+att 1014            Concept-text
+att 1015            Concept-reference
+att 1016            Any 
+att 1017            Server-choice
+att 1018            Publisher
+att 1019            Record-source
+att 1020            Editor
+att 1021            Bib-level
+att 1022            Geographic-class
+att 1023            Indexed-by
+att 1024            Map-scale
+att 1025            Music-key
+att 1026            Related-periodical
+att 1027            Report-number
+att 1028            Stock-number
+att 1030            Thematic-number
+att 1031            Material-type
+att 1032            Doc-id
+att 1033            Host-item
+att 1034            ctype
+att 1035            Anywhere
+att 1036            Author-Title-Subject
+
+# Koha Specific Stuff
+att 8001                       Extent
+att 8910                       Koha-Auth-Number
+
+# record length according to the leader
+att 8005                       llength
+#att 8002                      Summary 
+#att 8900                      Call-Number
+
+# Usually Target Audience 008/22
+att 8822                       ta
+
+# Usually Form of item 008/23
+att 8823                       ff8-23
+
+# Usually Nature of contents 008/24-27
+att 8824                       ff8-24-27
+
+# Usually Content-type, also Form of item for maps 008/29
+att 8829                       ff8-29
+
+# Usually Literary Form 008/33
+att 8833                       lf
+#att 8833                      ff8-33
+
+# Usually Biography, also Special format characteristics for maps 008/34
+att 8834                       bio
+#att 8834                      ff8-34
+
+att 8700                       ff7-00
+att 8701                       ff7-01
+att 8702                       ff7-02
+att 8703                       ff7-01-02
+
+att 9529                       shelf-location
+att 9100                       dynixbib-id
+att 9520                       withdrawn
+att 9521                       lost
+att 9522                       onloan
+att 9523                       popularity
+att 9526                       barcode
+# Author-personal-bibliography - lastname,firstname in 100$a
+att 8900               Author-personal-bibliography
+# Author-in-order - firstname lastname in 245$c statement of responsibility
+att 8901               Author-in-order
diff --git a/etc/zebradb/biblios/tab/record.abs b/etc/zebradb/biblios/tab/record.abs
new file mode 100644 (file)
index 0000000..af63eaa
--- /dev/null
@@ -0,0 +1,237 @@
+# $Id: record.abs,v 1.1.2.1 2006/05/08 14:42:49 tgarip1957 Exp $
+
+# This is a fairly simple example of a set of MARC21 indexing rules. It
+# results in a server which provides a passable Bath level 0 and 1 service
+# (author, title, subject, keyword and exact services). Feel free to
+# elaborate on it, and if you do, please consider sharing your additions.
+# NOTE: This is designed to be used with the grs.marcxml input filter
+# for ISO2709 (ANSI Z39.2) or grs.xml for MARCXML-formatted records. It
+# won't work for the old grs.marc input filter, which yields a different
+# internal structure.
+encoding utf-8
+name marc21
+attset bib1.att
+attset gils.att
+esetname F @
+esetname B @
+
+marc usmarc.mar
+systag sysno rank
+xpath disable
+
+# pl = Published Place
+# ta = Target Audience 002/22
+# ff8-23
+# lf = Literary Form 008/33
+# bio = Biography 008/34
+# fmt = Format
+# ln = Language
+# ctype = Content type: review, catalog, encyclopedia, dictionary
+# pubdate Publication Date
+# rtype =  Record type (leader 06)
+
+all any
+# melm 000             rtype:n:range(data,06,1),Bib-level:w:range(data,07,01)
+# xelm /record/leader llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:w:range(data,7,1)
+
+# example: xelm /record/leader l1:w:range(data,0,5),l2:w:range(data,10,2)
+#melm 001              Local-number
+melm 005               Date,Date/time-last-modified
+melm 007               Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)
+
+melm 008               ln:n:range(data,35,3),ctype:w:range(data,24,4),Date:n:range(data,0,5),Date:s:range(data,0,5),Date:n:range(data,7,4),Date:s:range(data,7,4),Date:n:range(data,11,4),Date:s:range(data,11,4),pubdate:n:range(data,7,4),pubdate:s:range(data,7,4),dateaddeddb:n:range(data,0,5),dateaddeddb:s:range(data,0,5),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),Record-source:w:range(data,39,0)
+
+melm 010               LC-card-number,Identifier-standard
+melm 011               LC-card-number,Identifier-standard
+melm 015               BNB-card-number,BGF-number,Number-db,Number-natl-biblio,Identifier-standard
+melm 017               Number-legal-deposit,Identifier-standard
+melm 018               Identifier-standard
+melm 020$a      ISBN:w,Identifier-standard:w
+melm 020               ISBN,Identifier-standard
+melm 022$a      ISSN:w,ISBN:w
+melm 022               ISSN,Identifier-standard
+melm 023               Identifier-standard
+melm 024               Identifier-standard
+melm 025               Identifier-standard
+melm 027               Report-number,Identifier-standard
+melm 028               Number-music-publisher,Identifier-standard
+melm 030               CODEN,Identifier-standard
+melm 033               Date
+melm 034        Map-scale
+#melm 035              Local-number,Identifier-standard
+melm 037               Identifier-standard,Stock-number
+melm 040        Code-institution,Record-source
+melm 041        ln
+melm 043        Code-geographic
+#melm 046              pubdate
+melm 050$b             LC-call-number:w, LC-call-number:p, LC-call-number:s
+melm 050               LC-call-number:w, LC-call-number:p, LC-call-number:s
+melm 052               Geographic-class
+melm 060               NLM-call-number
+melm 070               NAL-call-number
+melm 080               UDC-classification
+melm 082        Dewey-classification:w,Dewey-classification:s
+melm 086        Number-govt-pub
+#melm 942$k            LC-card-number:s
+
+## KOHA SPECIFIC
+melm 090$c             Local-number:w
+#Identifier-standard:w
+
+melm 100$9             Cross-Reference:w,Koha-Auth-Number
+melm 100$a             Author,Author:p,Author:s,Editor,Author-personal-bibliography,Author-personal-bibliography:p,Author-personal-bibliography:s
+melm 100               Author,Author-title,Author-name-personal,Name,Name-and-title,Personal-name
+melm 110               Author,Author-title,Author-name-corporate,Name,Name-and-title,Corporate-name
+melm 111               Author,Author-title,Author-name-corporate,Name,Name-and-title,Conference-name
+melm 130$n             Thematic-number
+melm 130$r             Music-key
+melm 130               Title,Title-uniform
+
+melm 210               Title,Title-abbreviated
+melm 211               Title,Title-abbreviated
+melm 212               Title,Title-other-variant
+melm 214               Title,Title-expanded
+melm 222               Title,Title-key
+melm 240$r             Music-key
+melm 240$n             Thematic-number
+melm 240               Title:w,Title:p,Title-uniform
+melm 243$n             Thematic-number
+melm 243$r             Music-key
+melm 243               Title:w,Title:p,Title-collective
+melm 245$a             Title-cover:w,Title-cover:p,Title-cover:s,Title:w,Title:p,Title:s
+melm 245$c             Author,Author-in-order:w,Author-in-order:p,Author-in-order:s
+melm 245               Title:w,Title:p
+melm 245$9             Cross-Reference:w,Koha-Auth-Number
+melm 246               Title,Title:p,Title-abbreviated,Title-expanded,Title-former
+melm 247               Title,Title:p,Title-former,Title-other-variant,Related-periodical
+melm 260$a             pl:w,pl:p
+melm 260$b             Publisher:w,Publisher:p
+melm 260$c             Date,Date:s,Date:y
+#,pubdate,pubdate:s
+melm 260               pl
+melm 300               Extent:w,Extent:p
+melm 400$a             Name-and-title
+melm 400$t      Author-title,Name-and-title,Title,Title-series
+melm 400        Author,Author-name-personal,Name,Personal-name
+melm 400$9             Koha-Auth-Number
+melm 410               Author,Corporate-name
+melm 410$a             Name-and-title
+melm 410$t      Author-title,Title,Title-series
+melm 410$9             Koha-Auth-Number
+melm 410        Author-name-corporate,Name
+melm 411               Author,Conference-name
+melm 411$a             Name-and-title
+#melm 411$t            title,author,Author-title,Title-series
+melm 411$t      Author-title,Title-series
+#melm 411              author,Author-name-corporate,Name
+melm 411        Author-name-corporate,Name
+melm 440$a             Title-series:w,Title-series:p
+melm 440$9             Koha-Auth-Number
+melm 440               Title-series:w,Title-series:p,Title,Title-series
+melm 490$a             Title-series:w,Title-series:p
+melm 490               Title,Title-series
+melm 490$9             Koha-Auth-Number
+
+melm 502               Material-type
+melm 505               Note:w,Note:p
+melm 510               Indexed-by
+melm 520               Abstract:w,Abstract:p
+#melm 533$d            pubdate,pubdate:s
+#melm 541$d            Date-of-acquisition,Date-of-acquisition:s
+
+melm 600$a             Name-and-title,Name,Personal-name,Subject-name-personal,Subject
+melm 600$t             Name-and-title,Title,Subject
+#melm 600              Name,Personal-name,Subject-heading,Subject-name-personal
+melm 600        Name,Personal-name,Subject-name-personal,Subject
+melm 610               Corporate-name
+melm 610$a             Name-and-title
+melm 610$t             Name-and-title,Title
+melm 610               Name,Subject
+melm 611               Conference-name
+melm 611$a             Name-and-title
+melm 611$t             Name-and-title,Title
+melm 611               Name,Subject
+melm 630$n             Thematic-number
+melm 630$r             Music-key
+melm 630               Subject
+melm 650$9             Koha-Auth-Number        
+melm 650               Subject,Subject:p
+melm 651$9             Koha-Auth-Number        
+melm 651               Name-geographic,Subject,Subject:p
+melm 652$9             Koha-Auth-Number        
+#melm 652              subject-heading,subject-heading:p
+melm 653$9             Koha-Auth-Number        
+melm 653               Subject,Subject:p
+melm 654$9             Koha-Auth-Number        
+melm 654               Subject
+melm 655$9             Koha-Auth-Number        
+melm 655               Subject
+melm 656$9             Koha-Auth-Number        
+melm 656               Subject
+melm 657$9             Koha-Auth-Number        
+melm 657               Subject
+melm 690$9             Koha-Auth-Number        
+melm 690               Subject,Subject:p
+
+melm 700$9             Cross-Reference,Koha-Auth-Number
+melm 700$a      Author,Author:p
+melm 700$n             Thematic-number
+melm 700$r             Music-key
+#melm 700$t            author,Author-title,Name-and-title,Title,Title-uniform
+melm 700$t      Author-title,Name-and-title,Title,Title-uniform
+melm 700        Author,Author-name-corporate,Author-name-personal,Name,Editor,Personal-name
+melm 710               Author,Corporate-name
+#melm 710$t            author,Author-title,Name-and-title,Title,Title-uniform
+melm 710$t      Author-title,Name-and-title,Title,Title-uniform
+#melm 710$a            author,author:p,Name-and-title
+melm 710$a      Name-and-title
+#melm 710              author,Name
+melm 710        Author,Name
+melm 711$a             Name-and-title
+#melm 711$t            author,Author-title,Title,Title-uniform
+melm 711$t      Author-title,Title,Title-uniform
+#melm 711              author,Author-name-corporate,Name,Conference-name
+melm 711        Author-name-corporate,Name,Conference-name
+melm 730$n             Thematic-number
+melm 730$r             Music-key
+melm 730               Title,Title-uniform
+melm 740               Title,Title-other-variant
+melm 773$t             Host-item
+melm 780               Title-former,Related-periodical
+melm 785               Related-periodical
+
+melm 800$a             Name-and-title
+#melm 800$t            author,Author-title,Name-and-title,Title,Title-series
+melm 800$t      Author-title,Name-and-title,Title,Title-series
+melm 800        Author,Author-name-personal,Name,Personal-name
+melm 810$a             Name-and-title
+melm 810$t      Author-title,Name-and-title,Title,Title-series
+melm 810        Author,Corporate-name,Author-name-corporate,Name
+melm 811$a             Name-and-title
+#melm 811$t            author,Author-title,Name-and-title,Title,Title-series
+melm 811$t      Author-title,Name-and-title,Title,Title-series
+melm 811               Author,Author-name-corporate,Name,Conference-name
+melm 830               Title,Title-series
+melm 840               Title,Title-series
+melm 852$a             Code-institution
+
+melm 959$0             withdrawn:n
+melm 959$1             lost:n
+melm 959$2             onloan
+
+# c is collection code, d is the new item type
+# Record-source is homebranch.
+melm 959$n      Record-source
+melm 942$c      Material-type
+melm 942$d      Material-type
+melm 910$a     dynixbib-id:n
+#melm 942$k            Call-Number
+#melm 942$k            Local-Number !:w,!:p,!:s
+#melm 942$k            Local-classification:w,Local-classification:p,Local-classification:s
+melm 959$d             Local-classification,Local-classification:w,Local-classification:p,Local-classification:s
+melm 959$p             Stock-number
+melm 959$c             shelf-location
+melm 959$s             popularity:n,popularity:s
+melm 959$v             Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s
+melm 959$t             Material-type
+melm 959$b             barcode,barcode:n
diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties
new file mode 100644 (file)
index 0000000..110345a
--- /dev/null
@@ -0,0 +1,1045 @@
+# CCL field mappings
+# $Id$
+# There are four types of lines in a CCL profile: 
+#  1. qualifier specification
+#      qualifier-name   [  attributeset   ,]  type   =   val   [  attributeset   ,]  type   =   val   ...
+# 
+#  2. qualifier alias
+#      q q1 q2 q3
+#
+#  3. comments
+#      comments begin with 
+#
+#  4. directives
+#      @   directive    value
+#
+# see http://indexdata.dk/yaz/doc/tools.tkl#CCL for more details
+#
+# The rule below is used when no fields are specified
+term t=l,r  s=al
+#
+# Simple rule for a field called "clean"
+clean t=l,r
+
+### 1. BIB1 USE ATTRIBUTES MAPPED TO CCL QUALIFIERS
+#
+# SEE http://www.loc.gov/z3950/agency/bib1.html
+#
+# The notation '$' following a USMARC tag refers to a
+# subfield of the named field.  The notation 'i' following a
+# USMARC tag refers to values of the second indicator in the named
+# field; when the second indicator of the field has the value
+# , the data in the field is associated with that Use
+# attribute.
+#
+#Use                  Value Definition                      USMARC tag(s)
+#-------------------- ----- ------------------------------  ------------------
+#Abstract               62  An abbreviated, accurate        520
+#                           representation of a work,
+#                           usually without added
+#                           interpretation or criticism.
+Abstract 1=62
+ab Abstract
+
+#Any                  1016  The record is selected if there
+#                           exists a Use attribute that the
+#                           target supports (and considers
+#                           appropriate - see note 1) such
+#                           that the record would be
+#                           selected if the target were to
+#                           substitute that attribute.
+#       Notes:
+#        (1) When the origin uses 'any' the intent is that the target
+#            locate records via commonly used access points. The target
+#            may define 'any' to refer to a selected set of Use
+#            attributes corresponding to its commonly used access points.
+#        (2) In set terminology: when Any is the Use attribute, the set
+#            of records selected is the union of the sets of records
+#            selected by each of the (appropriate) Use attributes that
+#            the target supports.
+Any 4=6 1=1016
+kw Any
+
+#Anywhere             1035  The record is selected if the
+#                           term value (as qualified by the
+#                           other attributes) occurs anywhere
+#                           in the record.
+#
+#            Note: A target might choose to support 'Anywhere' only in
+#            combination with specific (non-Use) attributes. For example, a
+#            target might support 'Anywhere' only in combination with the
+#            Relation attribute 'AlwaysMatches' (see below), to locate all
+#            records in a database.
+#
+#       Notes on relationship of Any and Anywhere:
+#        (1) A target may support Any but not Anywhere, or vice versa, or
+#            both.  However, if a target supports both, then it should
+#            exclude 'Anywhere' from the list of Use attributes
+#            corresponding to 'Any' (if it does not do so, then the set
+#            of records located by 'Any' will be a superset of those
+#            located by 'Anywhere').
+#        (2) A distinction between the two attributes may be informally
+#            expressed as follows: 'anywhere' might result in more
+#            expensive searching than 'any'; if the target (and origin)
+#            support both 'any' and 'anywhere', if the origin uses 'Any'
+#            (rather than 'Anywhere') it is asking the target to locate
+#            the term only if it can do so relatively inexpensively.
+#Anywhere 1=1035
+
+#Author-name          1003  A personal or corporate author, 100, 110, 111, 400
+#                           or a conference or meeting      410, 411, 700, 710,
+#                           name.  (No subject name         711, 800, 810, 811
+#                           headings are included.)
+Author 5=1 1=1003 s=pw
+au Author
+
+#Author-name-and-     1000  A personal or corporate author, 100/2XX, 110/2XX,
+#title                      or a conference or meeting      111/2XX, subfields
+#                           name, and the title of the      $a & $t in
+#                           item.  (No subject name         following: 400,410,
+#                           headings are included.)  The    411, 700, 710, 711,
+#                           syntax of the name-title        800, 810, 811
+#                           combination is up to the
+#                           target, unless used with the
+#                           Structure attribute Key (see
+#                           below).
+#Author-title 1=1000
+
+#Author-name-         1005  An organization or a group      110, 410, 710, 810
+#corporate                  of persons that is identified
+#                           by a particular name. (Differs
+#                           from attribute "name-corporate
+#                           (2)" in that corporate name
+#                           subject headings are not
+#                           included.)
+#Author-name-corporate 1=1005
+
+#Author-name-         1006  A meeting of individuals or     111, 411, 711, 811
+#conference                 representatives of various
+#                           bodies for the purpose of
+#                           discussing topics of common
+#                           interest. (Differs from
+#                           attribute "name-conference
+#                           (3)" in that conference name
+#                           subject headings are not
+#                           included.)
+#Author-name-conference 1=1006
+#af Author-name-conference
+
+#Author-name-personal 1004  A person's real name,           100, 400, 700, 800
+#                           pseudonym, title of nobility
+#                           nickname, or initials.
+#                           (Differs from attribute
+#                           "name-personal (1)" in that
+#                           personal name subject headings
+#                           are not included.)
+#Author-name-personal 1=1004
+
+#Author-Title-Subject 1036  An author or a title or a        1XX, 2XX, 4XX,
+#                           subject.                         6XX, 7XX, 8XX
+#
+#            Note: When the Use attribute is Author-name-and-title (1000)
+#            the term contains both an author name and a title.  When the
+#            Use attribute is Author-Title-Subject (1036), the term
+#            contains an author name or a title or a subject.
+#Author-Title-Subject 1=1036
+
+#Body of text         1010  Used in full-text searching to
+#                           indicate that the term is to
+#                           be searched only in that
+#                           portion of the record that the
+#                           target considers the body of
+#                           the text, as opposed to some
+#                           other discriminated part such
+#                           as a headline, title, or
+#                           abstract.
+#Body-of-text 1=1010
+
+#Classification-Bliss   15  A classification number from
+#                           the Bliss Classification,
+#                           developed by Henry Evelyn
+#                           Bliss.
+#Bliss-classification 1=15
+
+#Classification-Dewey   13  A classification number from    082
+#                           the Dewey Decimal
+#                           Classification, developed by
+#                           Melvyl Dewey.
+#Dewey-classification 1=13
+
+#Classification-        50  A classification number         086
+#government-publication     assigned to a government
+#                           document by a government
+#                           agency at any level (e.g.,
+#                           state, national,
+#                           international).
+#Number-govt-pub 1=50
+
+#Classification-LC      16  A classification number from    050
+#                           the US Library of Congress
+#                           Classification.
+#LC-call-number 1=16
+#
+#Classification-local   20  A local classification
+#                           number from a system not
+#                           specified elsewhere in this
+#                           list of attributes.
+Local-classification 4=1 1=20
+lcn Local-classification
+callnum Local-classification
+#Local-classification cc callnum dewey
+#
+#Classification-NAL     18  A classification number from    070
+#                           the US National Agriculture
+#                           Library Classification.
+#NAL-call-number 1=18
+#
+#Classification-NLM     17  A classification number from    060
+#                           the US National Library of
+#                           Medicine Classification.
+#NLM-call-number 1=17
+#
+#Classification-MOS     19  A classification number from
+#                           Mathematics Subject
+#                           Classification, compiled
+#                           in the Editorial Offices of
+#                           Mathematical Reviews and
+#                           Zentralblatt fur Mathematik.
+#MOS-call-number 1=19
+#
+#Classification-UDC     14  A classification number from    080
+#                           Universal Decimal
+#                           Classification, a system based
+#                           on the Dewey Decimal
+#                           Classification.
+#UDC-classification 1=14
+#
+#Code-bib-level       1021  A one-character alphabetic       Leader/07
+#                           code indicating the
+#                           bibliographic level such as
+#                           monograph, serial or collection
+#                           of the record.
+#Bib-level 1=1021
+#
+#Code-geographic-area   55  A code that indicates the       043
+#                           geographic area(s) that appear
+#                           or are implied in the headings
+#                           assigned to the item during
+#                           cataloging.
+#Code-geographic 1=55
+#
+#Code-geographic-     1022  A code that represents the      052
+#class                      geographic area and if
+#                           applicable the geographic
+#                           subarea covered by an item.
+#                           The codes are derived from
+#                           the LC Classification-Class G
+#                           and the expanded Cutter number
+#                           list.
+#Geographic-class 1=1022
+#
+#Code-institution       56  An authoritative-agency         040, 852$a
+#                           symbol for an institution
+#                           that is the source of the
+#                           record or the holding
+#                           location.  The code space is
+#                           defined by the target.
+#Code-institution 1=56
+#
+#Code-language          54  A code that indicates the       008/35-37, 041
+#                           language of the item.
+#                           The codes are defined by the
+#                           target.
+language          1=54
+ln language
+
+#Code-map-scale       1024  Coded form of cartographic      034
+#                           mathematical data, including
+#                           scale, projection and/or
+#                           coordinates related to the
+#                           item.
+#Map-scale 1=1024
+
+#Code-microform-        61  The code specifying the         007/11
+#generation                 generation of a microform.
+#Microform-generation 1=61
+#material-designation Microform-generation
+
+#Code-record-type     1001  A code that specifies the       Leader/06
+#                           characteristics and defines
+#                           the components of the record.
+#                           The codes are target-specific.
+Record-type 1=1001
+rtype Record-type
+mc-rtype Record-type
+mus 1=1001
+
+#Concept-reference    1015  Used within Z39.50-1988;
+#                           included here for historical
+#                           reasons but its use is
+#                           deprecated.
+#Concept-reference 1=1015
+
+#Concept-text         1014  Used within Z39.50-1988;
+#                           included here for historical
+#                           reasons but its use is
+#                           deprecated.
+#Concept-text        1=1014
+
+#Content-type         1034  The type of materials           derived value
+#                           contained in the item or        from 008/24-27
+#                           publication.  For example:
+#                           review, catalog, encyclopedia,
+#                           directory.
+Content-type         1=1034 t=b
+ctype Content-type
+
+#Control number-BNB     10  Character string that uniquely  015
+#                           identifies a record in the
+#                           British National Bibliography.
+#BNB-card-number 1=10
+
+#Control number-BNF     11  Character string that uniquely  015
+#                           identifies a record in the
+#                           Bibliotheque Nationale Francais.
+#BGF-number 1=11
+
+#Control number-DB      52  Character string that uniquely  015
+#                           identifies a record in the
+#                           Deutsche Bibliothek.
+#Number-db 1=52
+
+#Control number-LC       9  Character string that uniquely  010, 011
+#                           identifies a record in the
+#                           Library of Congress database.
+#LC-card-number 1=9
+#lc-card LC-card-number
+
+#Control number-local   12  Character string that uniquely  001, 035
+#                           identifies a record in a local
+#                           system (i.e., any system that
+#                           is not one of the four listed
+#                           above).
+Local-number 1=12
+
+#Date                   30  The point of time at which      005, 008/00-05,
+#                           a transaction or event          008/07-10, 260$c,
+#                           takes place.                    008/11-14, 033,etc.
+Date 1=30 4=109 r=r
+#yr Date
+
+#Date-publication       31  The date (usually year) in      008/07-10, 260$c
+#                           which a document is published.  046, 533$d
+Date-of-publication 1=31 4=109 r=r
+#dp Date-of-publication
+yr Date-of-publication
+
+#Date-acquisition       32  The date when a document was    541$d
+#                           acquired.
+Date-of-acquisition 1=32
+acqdate Date-of-acquisition
+#da Date-of-acquisition
+
+#Date/time added to   1011  The date and time that a        008/00-05
+#database                   record was added to the
+#                           database.
+#Date-time-added-to-db 1=1011
+
+#Date/time last       1012  The date and time a record      005
+#modified                   was last updated.
+#Date-time-last-modified       1=1012
+
+#Identifier--         1013  Used in full-text searching
+#authority/format           to indicate to the target
+#                           system the format of the
+#                           document that should be
+#                           returned to the originating
+#                           system.  The attribute carries
+#                           not only the format code, but
+#                           also the authority (e.g.,
+#                           system) that assigned that
+#                           code.
+#Authority/format-id 1=1013
+
+#Identifier-CODEN       60  A six-character, unique,        030
+#                           alphanumeric code assigned
+#                           to serial and monographic
+#                           publications by the CODEN
+#                           section of the Chemical
+#                           Abstracts Service.
+#CODEN 1=60
+
+#Identifier-document  1032  An identifier or Doc-ID,  
+#                           assigned by a server, that 
+#                           uniquely identifies a document 
+#                           on that server. May or may 
+#                           not be persistent. May be, 
+#                           for example, a URL.
+#            Note: this definition was modified October 1997.
+#Doc-id 1=1032
+
+#Identifier-ISBN         7  International Standard Book     020
+#                           Number -- internationally
+#                           agreed upon number that
+#                           identifies a book uniquely.
+#                           Cf. ANSI/NISO Z39.21 and
+#                           ISO 2108.
+ISBN         1=7
+nb ISBN
+
+#Identifier-ISSN         8  International Standard Serial   022, 4XX$x,
+#                           Number -- internationally       7XX$x
+#                           agreed upon number that
+#                           identifies a serial uniquely.
+#                           Cf. ANSI/NISO z39.9 and
+#                           ISO 3297.
+ISSN         1=8
+ns ISSN
+
+#Identifier-legal-      49  The copyright registration      017
+#deposit                    number that is assigned to
+#                           an item when the item is
+#                           deposited for copyright.
+#Number-legal-deposit 1=49
+
+#Identifier-local-call  53  Call number (e.g., shelf location)
+#                           assigned by a local system
+#                           (not a classification number).
+#Number-local-call 1=53
+
+#Identifier-national-   48  Character string that uniquely  015
+#bibliography               identifies a record in a
+#                           national bibliography.
+#Number-natl-biblio 1=48
+
+#Identifier-publisher-  51  A formatted number assigned     028
+#for-music                  by a publisher to a sound
+#                           recording or to printed music.
+#Number-music-publisher 1=51
+
+#Identifier-report    1027  A report number assigned to     027, 088
+#                           the item. This number could be
+#                           the STRN (Standard Technical
+#                           Report Number) or another
+#                           report number.
+#                           Cf. ANSI/NISO Z39.23 and
+#                           ISO 10444.
+#Report-number 1=1027
+
+#Identifier-standard  1007  Standard numbers such as ISBN,  010, 011, 015, 017,
+#                           ISSN, music publishers          018, 020, 022, 023,
+#                           numbers, CODEN, etc., that      024, 025, 027, 028,
+#                           are indexed together in many    030, 035, 037
+#                           online public-access catalogs.
+#Identifier-standard  1=1007 4=6
+Local-number  1=12
+#sn Identifier-standard
+sn Local-number
+#
+#Identifier-stock     1028  A stock number that could be    037
+#                           used for ordering the item.
+Stock-number 1=1028
+bc Stock-number
+
+#Identifier-thematic  1030  The numeric designation for a   $n in the following:
+#                           part/section of a work such as  130, 240, 243, 630,
+#                           the serial, opus or thematic    700, 730
+#                           index number.
+#Thematic-number 1=1030
+
+#Indexed-by           1023  For serials, a publication      510
+#                           in which the serial has been
+#                           indexed and/or abstracted.
+#Indexed-by          1=1023
+
+#Material-type        1031  A free-form string, more        derived value from
+#                           specific than the one-letter    Leader/06-07, 007,
+#                           code in Leader/06, that         008, and 502
+#                           describes the material type
+#                           of the item, e.g., cassette,
+#                           kit, computer database,
+#                           computer file.
+Material-type  1=1031
+#itemtype Material-type
+#collection Material-type
+collection-code Material-type
+mt Material-type
+mc-collection Material-type
+#dt-lh Material-type
+
+#Music-key            1025  A statement of the key in       $r in the following:
+#                           which the music is written.     130, 240, 243, 630,
+#                                                           700, 730
+#Music-key            1=1025
+
+#Name                 1002  The name of a person, corporate 100, 110, 111, 400,
+#                           body, conference, or meeting.   410, 411, 600, 610,
+#                           (Subject name headings are      611, 700, 710, 711,
+#                           included.)                      800, 810, 811
+#Name                 1=1002
+
+#Name-and-title         57  The name of a person, corporate 100/2XX, 110/2XX,
+#                           body, conference, or meeting,   111/2XX, subfields
+#                           and the title of an item.       $a & $t in
+#                           (Subject name headings are      following: 400,410,
+#                           included.)  The syntax of the   411, 600, 610, 611,
+#                           name-title combination is up    700, 710, 711, 800,
+#                           to the target, unless used      810, 811
+#                           with the Structure attribute
+#                           Key (see below).
+#Name-and-title         1=57
+
+#Name-corporate          2  An organization or a group      110, 410, 610, 710,
+#                           of persons that is identified   810
+#                           by a particular name. (Subject
+#                           name headings are included.)
+#Corporate-name 1=2
+#cpn Corporate-name
+
+#Name-conference         3  A meeting of individuals or     111, 411, 611, 711
+#                           representatives of various      811
+#                           bodies for the purpose of
+#                           discussing topics of common
+#                           interest.  (Subject name
+#                           headings are included.)
+#Conference-name 1=3
+#cfn Conference-name
+
+#Name-editor          1020  A person who prepared for       100 $a or 700 $a when
+#                           publication an item that is     the corresponding $e
+#                           not his or her own.             contains value 'ed.'
+#Editor 1=1020
+
+#Name-geographic        58  Name of a country,              651
+#                           jurisdiction, region, or
+#                           geographic feature.
+#Name-geographic        1=58
+
+#Name-geographic-place- 59  City or town where an item      008/15-17, 260$a
+#publication                was published.
+
+#Name-personal           1  A person's real name,           100, 400, 600, 700,
+#                           pseudonym, title of nobility    800
+#                           nickname, or initials.
+#Personal-name 1=1
+#pn Personal-name
+
+#Name-publisher       1018  The organization responsible    260$b
+#                           for the publication of the
+#                           item.
+Publisher 1=1018
+pb Publisher
+
+#Note                   63  A concise statement in which    5XX
+#                           such information as extended
+#                           physical description,
+#                           relationship to other works,
+#                           or contents may be recorded.
+Note                   1=63
+nt Note
+
+#Record-source        1019  The USMARC code or name of the  008/39, 040
+#                           organization(s) that created
+#                           the original record, assigned
+#                           the USMARC content designation
+#                           and transcribed the record into
+#                           machine-readable form, or
+#                           modified the existing USMARC
+#                           record; the cataloging source.
+#Record-source        1=1019
+
+#Server-choice        1017  The target substitutes one or
+#                           more access points.  The origin
+#                           leaves the choice to the target.
+#
+#
+#       Notes on relationship of Any and Server-choice:
+#        (1) When the origin uses 'Server-choice' it is asking the target
+#            to select one or more access points, and to use its best
+#            judgment in making that selection.  When 'Any' is used,
+#            there is no selection process involved; the target is to
+#            apply all of the (appropriate) supported Use attributes.
+#            The origin is asking the target to make a choice of access
+#            points.
+#        (2) The target might support 'Any' and not 'Server-choice', or
+#            vice versa, or both.  If the target supports both, when the
+#            origin uses 'Server-choice', the target might choose 'Any';
+#            however, it might choose any other Use attribute.
+#Server-choice        1=1017
+
+#Subject                21  The primary topic on which a    600, 610, 611, 630,
+#                           work is focused.                650, 651, 653, 654,
+#                                                           655, 656, 657, 69X
+Subject                1=21
+su Subject
+su-to Subject
+su-geo Subject
+su-ut Subject
+#Subject-BDI            23  Subject headings from
+#                           Bibliotek Dokumentasjon
+#                           Informasjon -- a controlled
+#                           subject vocabulary used and
+#                           maintained by the five Nordic
+#                           countries (Denmark, Finland,
+#                           Iceland, Norway, and Sweden).
+#BDI-index-subject 1=23
+
+#Subject-INSPEC         24  Subject headings from           600i2, 610i2,
+#                           Information Services for the    611i2, 630i2,
+#                           Physics and Engineering         650i2, 651i2
+#                           Communities -- the Information
+#                           Services Division of the
+#                           Institution of Electrical
+#                           Engineers.
+#INSPEC-subject 1=24
+
+#Subject-LC             27  Subject headings from           600i0, 610i0,
+#                           US Library of Congress          611i0, 630i0,
+#                           Subject Headings.               650i0, 651i0
+#LC-subject-heading 1=27
+
+#Subject-LC-          1008  Subject headings, for use       600i1, 610i1,
+#children's                 with children's literature,     611i1, 630i1,
+#                           that conform to the             650i1, 651i1
+#                           formulation guidelines in
+#                           the "AC Subject Headings"
+#                           section of the Library of
+#                           Congress Subject Headings.
+#Subject-LC-childrens 1=1008
+
+#Subject-local          29  Subjects headings defined
+#                           locally.
+#Local-subject-index 1=29
+
+#Subject-MESH           25  Subject headings from           600i2, 610i2,
+#                           Medical Subject Headings --     611i2, 630i2,
+#                           maintained by the US National   650i2, 651i2
+#                           Library of Medicine.
+#MESH-subject 1=25
+
+#Subject-name-        1009  A person's real name,           600
+#personal                   pseudonym, title of nobility
+#                           nickname, or initials that
+#                           appears in a subject heading.
+Subject-name-personal 1=1009
+su-na 1=1009
+#Subject-name-personal
+#Subject-PA             26  Subject headings from           600i2, 610i2,
+#                           Thesaurus of Psychological      611i2, 630i2,
+#                           Index Terms -- maintained       650i2, 651i2
+#                           by the Retrieval Services Unit
+#                           of the American Psychological
+#                           Association.
+#PA-subject 1=26
+
+#Subject-PRECIS         45  Subject headings from
+#                           PREserved Context Index
+#                           System -- a string of indexing
+#                           terms set down in a prescribed
+#                           order, each term being preceded
+#                           by a manipulation code which
+#                           governs the production of
+#                           pre-coordinated subject index
+#                           entries under selected terms --
+#                           maintained by the British
+#                           Library.
+#Subject-precis 1=45
+
+#Subject-RAMEAU         22  Subject headings from
+#                           Repertoire d'authorite de
+#                           matieres encyclopedique
+#                           unifie -- maintained by the
+#                           Bibliotheque Nationale
+#                           (France).
+#Subject-Rameau 1=22
+
+#Subject-RSWK           46  Subject headings from
+#                           Regeln fur den
+#                           Schlagwortkatalog --
+#                           maintained by the Deutsches
+#                           Bibliotheksinstitut.
+#Subject-rswk 1=46
+
+#Subject-RVM            28  Subject headings from           600i6, 610i6,
+#                           Repertoire des vedettes-        611i6, 630i6,
+#                           matiere -- maintained by the    650i6, 651i6
+#                           Bibliotheque de l'Universite
+#                           de Laval.
+#RVM-subject-heading 1=28
+
+#Subject-subdivision    47  An extension to a subject       6XX$x, 6XX$y,
+#                           heading indicating the form,    6XX$z
+#                           place, period of time treated,
+#                           or aspect of the subject
+#                           treated.
+#Subject-subdivision 1=47
+
+#Title                   4  A word, phrase, character,      130, 21X-24X, 440,
+#                           or group of characters,         490, 730, 740, 830,
+#                           normally appearing in an item,  840, subfield $t
+#                           that names the item or the      in the following:
+#                           work contained in it.           400, 410, 410, 600,
+#                                                           610, 611, 700, 710,
+#                                                           711, 800, 810, 811
+Title 1=4
+#5=1 1=4 s=pw
+#1=4
+ti Title
+
+#Title-abbreviated      43  Shortened form of the title;    210, 211 (obs.),
+#                           either assigned by national     246
+#                           centers under the auspices of
+#                           the International Serials Data
+#                           System, or a title (such as an
+#                           acronym) that is popularly
+#                           associated with the item.
+#Title-abbreviated      1=43
+
+#Title-added-title-page 37  A title on a title page         246i5
+#                           preceding or following the
+#                           title page chosen as the basis
+#                           for the description of the
+#                           item.  It may be more general
+#                           (e.g., a series title page),
+#                           or equally general (e.g., a
+#                           title page in another
+#                           language).
+#Title-added-title-page 1=37
+
+#Title-caption          38  A title given at the beginning  246i6
+#                           of the first page of the text.
+#Title-caption          1=38
+
+#Title-collective       34  A title proper that is an       243
+#                           inclusive title for an item
+#                           containing several works.
+#Title-collective       1=34
+
+#Title-cover            36  The title printed on the        246i4
+#                           cover of an item as issued. 
+Title-cover            1=36
+
+#Title-expanded         44  An expanded (or augmented)      214 (obs.), 246
+#                           title has been enlarged with
+#                           descriptive words by the
+#                           cataloger to provide
+#                           additional indexing and
+#                           searching capabilities.
+#Title-expanded         1=44
+
+#Title-former           42  A former title or title         247, 780
+#                           variation when one
+#                           bibliographic record
+#                           represents all issues of
+#                           a serial that has changed
+#                           title.
+#Title-former           1=42
+
+#Title-host-item      1033  The title of the item            773$t
+#                           containing the part
+#                           described in the record, for
+#                           example, a journal title
+#                           when the record describes an
+#                           article in the journal.
+Host-item      1=1033
+
+#Title-key              33  The unique name assigned to     222
+#                           a serial by the International
+#                           Serials Data System (ISDS).
+#Title-key              1=33
+
+#Title-other-variant    41  A variation from the title      212 (obs.), 246i3,
+#                           page title appearing elsewhere  247, 740
+#                           in the item (e.g., a variant
+#                           cover title, caption title,
+#                           running title, or title from
+#                           another volume) or in another
+#                           issue.
+#Title-other-variant    1=41
+
+#Title-parallel         35  The title proper in another     246i1
+#                           language and/or script.
+#Title-parallel         1=35
+
+#Title-related-       1026  Serial titles related to this   247, 780, 785
+#periodical                 item, either the immediate
+#                           predecessor or the immediate
+#                           successor.
+#Related-periodical 1=1026
+#Title-running          39  A title, or abbreviated title,  246i7
+#                           that is repeated at the head
+#                           or foot of each page or leaf.
+#Title-running          1=39
+
+#Title-series            5  Collective title applying to    440, 490, 830, 840,
+#                           a group of separate, but        subfield $t in the
+#                           related, items.                 following: 400,410,
+#                                                           411, 800, 810, 811
+Title-series            1=5
+#series Title-series
+se Title-series
+
+#Title-spine            40  A title appearing on the        246i8
+#                           spine of an item.
+#Title-spine            1=40
+
+#Title-uniform           6  The particular title by which   130, 240, 730,
+#                           a work is to be identified      subfield $t in the
+#                           for cataloging purposes.        following: 700,710,
+#                                                           711
+Title-uniform           1=6
+ut Title-uniform
+#Authority-number           Koha-Auth-Number  The Number   
+#                           for an authority to be searched subfield $9 in the
+#                           for cataloging purposes.        following: 700,701,702,710,
+#                                                           711,712 and some 6XX fields (Unimarc)
+Authority-number           1=8910
+an Authority-Number
+Koha-Auth-Number Authority-Number
+
+#Authority/format-id        authtypecode  The Code 
+#                           associated to an authority type
+#                                                            152$b in authority records
+Authority/format-id           1=Authority/format-id
+at Authority/format-id
+
+#Heading-Entity             Information for Heading in an 
+#                           authority record 
+#                                                             usually 2.. fields
+Heading-Entity           1=Heading-Entity
+he Heading-Entity
+
+
+### 2. BIB1 RELATION ATTRIBUTES
+lt 2=1
+le 2=2
+eq 2=3
+ge 2=4
+ne 2=5
+phonetic 2=6
+stem 2=100
+relevance 2=102
+rk 2=102
+rank relevance
+
+AlwaysMatches 2=103
+Within 2=104
+
+### 3. BIB1 POSITION ATTRIBUTES
+first-in-field 3=1
+
+# we have to fake startswith until zebra supports it
+# starts with if we want no truncation ... need to ad 'term #'
+# finds 'starts with it' but not italian
+# see http://lists.indexdata.dk/pipermail/yazlist/2006-July/001664.html
+startswithnt 3=1 5=101 6=3
+
+# starts with with truncation
+first-in-subfield 3=2
+any-position-in-field 3=3
+
+### 4. BIB1 STRUCTURE ATTRIBUTES
+st-phrase 4=1
+phr st-phrase
+st-word        4=2
+st-key         4=3
+st-year        4=4
+st-date-normalized     4=5
+st-word-list   4=6
+wrdl 4=6
+
+# there was a reason I didn't want to use this but it's
+# escaped me -- JF
+wrd 4=6
+
+#st-word
+st-date-un-normalized  4=100
+st-name-normalized     4=101
+st-name-un-normalized  4=102
+st-structure   4=103
+st-urx         4=104
+st-free-form-text      4=105
+st-document-text       4=106
+st-local       number 4=107
+st-string      4=108
+st-numeric     4=109
+#string 109
+
+### 5. BIB1 TRUNCATION ATTRIBUTES
+right-Truncation 5=1
+rt right-Truncation
+left-Truncation        5=2
+left-and-right         5=3
+do-not-truncate        5=100
+process-in-search-term         5=101
+regExpr-1      5=102
+fuzzy 5=103
+regExpr-2      5=103
+Z39-58 5=104
+
+### 6. BIB1 STRUCTURE ATTRIBUTES
+incomplete-subfield    6=1
+complete-subfield      6=2
+complete-field         6=3
+
+### COMBINATIONS OF THE ABOVE
+ext 4=1 6=3
+
+## ATTRIBUTES NOT IN BIB1 OR ELSE ONES I DON"T KNOW WHERE IN BIB1 THEY BELONG
+#Language
+#ln 1=8805
+#language 1=8805
+
+#Musical Composition
+#mc
+
+# Publisher Location
+
+Place-publication 1=59
+pl Place-publication
+#pl 1=59
+
+# Extent
+Extent 1=8001
+
+#Summary                       1=8002
+#att 8900            
+#Call-Number 1=8900
+#date-entered-on-file 1=8800
+#date1 1=8801
+#date2 1=8802
+#language 8805
+ff8-22 1=8822
+ff8-23 1=8823
+ff8-34 1=8834
+
+#att 8700            ff7-00
+#att 8701            ff7-01
+#att 8702            ff7-02
+#att 9520            withdrawn
+#att 9521            lost
+lost 1=9521 4=109
+#att 9522            onloan
+
+############## SUBJECT-RELATED
+# Topical Term
+#tt
+# Descriptor
+#de
+# Genre/Form
+#ge
+# Geographic Coverage
+#gc
+
+## Additional Author distinctions needed for field weighting
+# lastname,firstname entry in $100$a
+Author-personal-bibliography 1=8900
+aub Author-personal-bibliography
+# Author-in-order - firstname lastname in 245$c statement of responsibility
+Author-in-order 1=8901
+auo Author-in-order
+
+### LIMITS
+# AUDIENCE
+audience 1=8822
+aud audience
+
+# CONTENT and Literary form
+fiction 1=8833
+fic fiction
+#mystery 1=
+biography 1=8834
+bio biography
+
+# FORMAT
+format 1=8823
+
+# format limit
+l-format 1=8703
+
+#fmt format
+
+# BRANCH (of local library)
+branch 1=1033
+
+Illustration-code 1=Illustration-code 
+# Item Type
+
+# Year limit
+#yr 1=8801 4=109 r=r
+
+## STATUSES
+onloan 1=9522
+datedue 1=9522
+
+popularity 1=9523
+
+# Material Category
+mc 1=8700
+## TYPE LIMITS
+dt-bks 1=8700
+dt-vis 1=8700
+dt-sr 1=8700
+dt-cf 1=8700
+dt-map 1=8700
+
+# Rank Weights
+r1 9=32
+r2 9=28
+r3 9=26
+r4 9=10
+r5 9=22
+r6 9=20
+r7 9=18
+r8 9=16
+r9 9=14
+
+# Sorting
+title-sort-za 7=2 1=36
+title-sort-az 7=1 1=36
+# CCL DIRECTIVES
+# Truncation characters (it seems to take multiple arguments)
+@truncation ? *
+# field specifies how multiple fields are to be combined.
+# There are two modes: or: multiple qualifier fields are
+# ORed, merge: attributes for the qualifier fields are
+# merged and assigned to one term.
+@field merge
+# case specificies if CCL operatores and qualifiers
+# should be compared with case sensitivity or not.
+# Specify 0 for case sensitive; 1 for case insensitive.
+@case 0
+# Tokens for CCL operators (it seems you can assign multiple tokens per operator which is nice)
+@and and +
+@or or |
+# make sure - doesn't conflict with another usage of this token
+@not not
+@set set
+# Not sure if you can specify tokens for prox operators, but here are the defaults
+# proximity of a, b - distance n - any order:
+# a %n b
+# proximity of a, b - distance n - in order:
+# a !n b
+# Integer n may be omitted - in which case distance is 1.
+
+# Rules for a few GILS fields
+#north  gils-attset,u=2040 r=o
+#south  gils-attset,u=2041 r=o
+#east  gils-attset,u=2038 r=o
+#west  gils-attest,u=2039 r=o
+#distributor gils-attset,u=2000 s=pw
+#distributorname gils-attset,u=2001 s=pw
+
+# Explain fields
+ExplainCategory      exp1,1=1
+HumanStringLanguage  exp1,1=2
+DatabaseName         exp1,1=3
+TargetName           exp1,1=4
+AttributeSetOID      exp1,1=5
+RecordSyntaxOID      exp1,1=6
+TagSetOID            exp1,1=7
+ExtededServiceOID    exp1,1=8
+DateAdded            exp1,1=9
+DateChanged          exp1,1=10
+DateExpires          exp1,1=11
+ElementSetName       exp1,1=12
diff --git a/etc/zebradb/cql.properties b/etc/zebradb/cql.properties
new file mode 100644 (file)
index 0000000..c61de44
--- /dev/null
@@ -0,0 +1,45 @@
+# CCL field mappings
+# $Id: default.bib,v 1.1 2006/06/13 16:44:21 mike Exp $
+# 
+# The rule below is used when no fields are specified
+term t=l,r  s=al
+#
+# Simple rule for a field called "clean"
+clean t=l,r
+#
+# Rules for some BIB-1 fields
+au   u=1003    s=pw 
+ti   u=4    s=pw
+isbn u=7
+issn u=8
+cc   u=20
+su   u=21   s=pw
+date u=30   r=r
+dp   u=31   r=r
+da   u=32   r=r
+la   u=54   s=pw
+ab   u=62   s=pw
+note u=63   s=pw
+af   u=1006 s=pw
+#
+# Rules for a few GILS fields
+north  gils-attset,u=2040 r=o
+south  gils-attset,u=2041 r=o
+east  gils-attset,u=2038 r=o
+west  gils-attest,u=2039 r=o
+distributor gils-attset,u=2000 s=pw
+distributorname gils-attset,u=2001 s=pw
+
+# Explain fields
+ExplainCategory      exp1,1=1
+HumanStringLanguage  exp1,1=2
+DatabaseName         exp1,1=3
+TargetName           exp1,1=4
+AttributeSetOID      exp1,1=5
+RecordSyntaxOID      exp1,1=6
+TagSetOID            exp1,1=7
+ExtededServiceOID    exp1,1=8
+DateAdded            exp1,1=9
+DateChanged          exp1,1=10
+DateExpires          exp1,1=11
+ElementSetName       exp1,1=12
diff --git a/etc/zebradb/pqf.properties b/etc/zebradb/pqf.properties
new file mode 100644 (file)
index 0000000..9d1ff86
--- /dev/null
@@ -0,0 +1,163 @@
+# $Id$
+#
+# Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF()
+# back-end and the YAZ CQL-to-PQF converter.  This specifies the
+# interpretation of various CQL indexes, relations, etc. in terms
+# of Type-1 query attributes.
+#
+# This configuration file generates queries using BIB-1 attributes.
+# See http://www.loc.gov/z3950/agency/zing/cql/dc-indexes.html
+# for the Maintenance Agency's work-in-progress mapping of Dublin Core
+# indexes to Attribute Architecture (util, XD and BIB-2)
+# attributes.
+
+# Identifiers for prefixes used in this file. (index.*)
+set.cql                = info:srw/cql-context-set/1/cql-v1.1
+set.rec                = info:srw/cql-context-set/2/rec-1.0
+set.dc         = info:srw/cql-context-set/1/dc-v1.1
+set.bath       = http://zing.z3950.org/cql/bath/2.0/
+
+# default set (in query)
+set            = info:srw/cql-context-set/1/dc-v1.1
+
+# The default access point and result-set references
+index.cql.serverChoice                 = 1=1016
+       # srw.serverChoice is deprecated in favour of cql.serverChoice
+       # BIB-1 "any"
+
+index.rec.id                           = 1=12
+
+index.dc.identifier                            = 1=1007          
+index.dc.title                         = 1=4
+index.dc.subject                       = 1=21
+index.dc.creator                       = 1=1003
+index.dc.author                                = 1=1003
+index.dc.itemtype                       = 1=1031
+index.dc.barcode                        = 1=1028
+index.dc.branch                         = 1=1033
+index.dc.isbn                           = 1=7
+index.dc.issn                           = 1=8
+index.dc.any                           = 1=1016
+index.dc.note                  = 1=63
+
+       ### Unofficial synonym for "creator"
+index.dc.editor                                = 1=1020
+index.dc.publisher                     = 1=1018
+index.dc.description                   = 1=62
+       # "abstract"
+index.dc.date                          = 1=30
+index.dc.resourceType                  = 1=1031
+       # guesswork: "Material-type"
+index.dc.format                                = 1=1034
+       # guesswork: "Content-type"
+index.dc.resourceIdentifier            = 1=12
+       # "Local number"
+#index.dc.source                               = 1=1019
+       # "Record-source"
+index.dc.language                      = 1=54
+       # "Code--language"
+       
+index.dc.Place-publication             = 1=59
+       # "Place-publication"
+
+index.dc.relation                      = 1=?
+       ### No idea how to represent this
+index.dc.coverage                      = 1=?
+       ### No idea how to represent this
+index.dc.rights                                = 1=?
+       ### No idea how to represent this
+
+# Relation attributes are selected according to the CQL relation by
+# looking up the "relation.<relation>" property:
+#
+relation.<                             = 2=1
+relation.le                            = 2=2
+relation.eq                            = 2=3
+relation.exact                         = 2=3
+relation.ge                            = 2=4
+relation.>                             = 2=5
+relation.<>                            = 2=6
+
+### These two are not really right:
+relation.all                           = 2=3
+relation.any                           = 2=3
+
+# BIB-1 doesn't have a server choice relation, so we just make the
+# choice here, and use equality (which is clearly correct).
+relation.scr                           = 2=3
+
+# Relation modifiers.
+#
+relationModifier.relevant              = 2=102
+relationModifier.fuzzy                  = 5=103
+       ### 100 is "phonetic", which is not quite the same thing
+relationModifier.stem                  = 2=101
+relationModifier.phonetic              = 2=100
+
+# Position attributes may be specified for anchored terms (those
+# beginning with "^", which is stripped) and unanchored (those not
+# beginning with "^").  This may change when we get a BIB-1 truncation
+# attribute that says "do what CQL does".
+#
+position.first                         = 3=1 6=1
+       # "first in field"
+position.any                           = 3=3 6=1
+       # "any position in field"
+position.last                          = 3=4 6=1
+       # not a standard BIB-1 attribute
+position.firstAndLast                  = 3=3 6=3
+       # search term is anchored to be complete field
+
+# Structure attributes may be specified for individual relations; a
+# default structure attribute my be specified by the pseudo-relation
+# "*", to be used whenever a relation not listed here occurs.
+#
+structure.exact                                = 4=108
+       # string
+structure.all                          = 4=2
+structure.any                          = 4=2
+structure.*                            = 4=1
+       # phrase
+
+# Truncation attributes used to implement CQL wildcard patterns.  The
+# simpler forms, left, right- and both-truncation will be used for the
+# simplest patterns, so that we produce PQF queries that conform more
+# closely to the Bath Profile.  However, when a more complex pattern
+# such as "foo*bar" is used, we fall back on Z39.58-style masking.
+#
+truncation.right                       = 5=1
+truncation.left                                = 5=2
+truncation.both                                = 5=3
+truncation.none                                = 5=100
+truncation.z3958                       = 5=104
+
+# Finally, any additional attributes that should always be included
+# with each term can be specified in the "always" property.
+#
+always                                 = 6=1
+# 6=1: completeness = incomplete subfield
+
+
+# Bath Profile support, added Thu Dec 18 13:06:20 GMT 2003
+# See the Bath Profile for SRW at
+#      http://zing.z3950.org/cql/bath.html
+# including the Bath Context Set defined within that document.
+#
+# In this file, we only map index-names to BIB-1 use attributes, doing
+# so in accordance with the specifications of the Z39.50 Bath Profile,
+# and leaving the relations, wildcards, etc. to fend for themselves.
+
+index.bath.keyTitle                    = 1=33
+index.bath.possessingInstitution       = 1=1044
+index.bath.name                                = 1=1002
+index.bath.personalName                        = 1=1
+index.bath.corporateName               = 1=2
+index.bath.conferenceName              = 1=3
+index.bath.uniformTitle                        = 1=6
+index.bath.isbn                                = 1=7
+index.bath.issn                                = 1=8
+index.bath.geographicName              = 1=58
+index.bath.notes                       = 1=63
+index.bath.topicalSubject              = 1=1079
+index.bath.genreForm                   = 1=1075
+
diff --git a/etc/zebradb/tab/default.idx b/etc/zebradb/tab/default.idx
new file mode 100644 (file)
index 0000000..6ddef3e
--- /dev/null
@@ -0,0 +1,57 @@
+# Zebra indexes as referred to from the *.abs-files.
+#  $Id: default.idx,v 1.10.2.1 2004/09/16 14:07:50 adam Exp $
+#
+
+# Traditional word index
+# Used if completenss is 'incomplete field' (@attr 6=1) and
+# structure is word/phrase/word-list/free-form-text/document-text
+index w
+completeness 0
+position 1
+charmap word-phrase-utf.chr
+#firstinfield 1
+
+# Phrase index
+# Used if completeness is 'complete {sub}field' (@attr 6=2, @attr 6=1)
+# and structure is word/phrase/word-list/free-form-text/document-text
+index p
+completeness 1
+charmap word-phrase-utf.chr
+#firstinfield 1
+
+# URX (URL) index
+# Used if structure=urx (@attr 4=104)
+index u
+completeness 0
+charmap urx.chr
+
+# Numeric index
+# Used if structure=numeric (@attr 4=109)
+index n
+completeness 0
+charmap numeric.chr
+
+# Null map index (no mapping at all)
+# Used if structure=key (@attr 4=3)
+index 0
+completeness 0
+position 1
+charmap @
+
+# Year
+# Used if structure=year (@attr 4=4)
+index y
+completeness 0
+charmap @
+
+# Date
+# Used if structure=date (@attr 4=5)
+index d
+completeness 0
+charmap @
+
+# Sort register
+sort s
+completeness 1
+charmap sort-string-utf.chr
+
diff --git a/etc/zebradb/tab/explain.abs b/etc/zebradb/tab/explain.abs
new file mode 100644 (file)
index 0000000..bb3d98f
--- /dev/null
@@ -0,0 +1,224 @@
+# This Explain schema is used for our internal management and processing of
+# explain data. On request, records are mapped to the proper Explain ASN.1
+# before transmission.
+#
+# $Id: explain.abs,v 1.2 2004/01/19 12:10:20 adam Exp $
+
+name explain
+reference Explain-schema
+attset explain.att
+#attset explain
+tagset explain.tag
+
+esetname B @
+esetname F @
+
+section rpnCapabilities
+elm (4,550)                            rpnOperators                    -
+elm (4,550)/(4,551)                    rpnOperator                     -
+elm (4,552)                            resultSetAsOperandSupported     -
+elm (4,553)                            restrictionOperandSupported     -
+elm (4,554)                            proximitySupport                -
+elm (4,554)/(4,555)                    anySupport                      -
+elm (4,554)/(4,556)                    unitsSupported                  -
+elm (4,554)/(4,556)/(4,557)            unitSupported                   -
+elm (4,554)/(4,556)/(4,557)/(4,558)    known                           -
+elm (4,554)/(4,556)/(4,557)/(4,559)    private                         -
+elm (4,554)/(4,556)/(4,557)/(4,559)/(4,558) privateUnit                        -
+elm (4,554)/(4,556)/(4,557)/(4,559)/(4,560) description                        -
+
+section accessInfo
+elm (4,501)                            queryTypesSupported             -
+elm (4,501)/(4,518)                    queryTypeDetails                -
+elm (4,501)/(4,518)/(4,519):rpnCapabilities    rpnCapabilities         -
+elm (4,501)/(4,518)/(4,520)            iso8777Capabilities             -
+elm (4,501)/(4,518)/(4,521)            privateCapabilities             -
+elm (4,503)                            diagnosticSets                  -
+elm (4,503)/(4,1000)                   diagnosticSet                   -
+elm (4,505)                            attributeSetIds                 -
+elm (4,505)/(4,1000)                   attributeSetId                  -
+elm (4,507)                            schemas                         -
+elm (4,507)/(4,1000)                   schema                          -
+elm (4,509)                            recordSyntaxes                  -
+elm (4,509)/(4,1000)                   recordSyntax                    -
+elm (4,511)                            resourceChallenges              -
+elm (4,511)/(4,1000)                   resourceChallenge               -
+elm (4,513)                            restrictedAccess                -
+elm (4,514)                            costInfo                        -
+elm (4,515)                            variantSets                     -
+elm (4,515)/(4,1000)                   variantSets                     -
+elm (4,516)                            elementSetNames                 -
+elm (4,516)/(4,1001)                   elementSetName                  -
+elm (4,517)                            unitSystems                     -
+elm (4,517)/(4,1001)                   unitSystem                      -
+
+section commonInfo
+elm (4,601)                            dateAdded                       !
+elm (4,602)                            dateChanged                     !
+elm (4,603)                            expiry          DateExpired
+elm (4,604)                            languageCode    HumanStringLanguage
+
+section contactInfo
+elm (4,102)                            name                            -
+elm (4,113)                            description                     -
+elm (4,127)                            address                         -
+elm (4,128)                            email                           -
+elm (4,129)                            phone                           -
+
+section stringOrNumeric
+elm (4,1001)                           string                          -
+elm (4,1002)                           numeric                         -
+
+section attributeSetDetailsValue
+elm (4,709)                            attributeValue                  -
+elm (4,709)/(4,710):stringOrNumeric    value   -
+elm (4,709)/(4,113)                    description                     -
+elm (4,709)/(4,712)                    subAttributes                   -
+elm (4,709)/(4,712)/(4,713):stringOrNumeric subAttribute               -
+elm (4,709)/(4,714)                    superAttributes                 -
+elm (4,709)/(4,714)/(4,715):stringOrNumeric superAttributes            -
+elm (4,709)/(4,711)                    partialSupport                  -
+
+section attributeSetDetails
+elm (4,1000)                           attributeSet                    -
+elm (4,702)                            attributesByType                -
+elm (4,702)/(4,703)                    attributeTypeDetails            -
+elm (4,702)/(4,703)/(4,704)            attributeType                   -
+elm (4,702)/(4,703)/(4,705)            defaultIfOmitted                -
+elm (4,702)/(4,703)/(4,705)/(4,706):stringOrNumeric    defaultValue    -
+elm (4,702)/(4,703)/(4,705)/(4,113)    defaultDescription              -
+elm (4,702)/(4,703)/(4,708):attributeSetDetailsValue attributeValues   -
+
+section attributeCombinations
+elm (4,1000)                           attributeSet                    -
+elm (4,717)                            legalCombinations               -
+elm (4,717)/(4,718)                    legalCombination                -
+elm (4,717)/(4,718)/(4,719)            attributeOccurrence             -
+elm (4,717)/(4,718)/(4,719)/(4,1000)   attributeSetId                  -
+elm (4,717)/(4,718)/(4,719)/(4,704)    attributeType                   -
+elm (4,717)/(4,718)/(4,719)/(4,720)    mustBeSupplied                  -
+elm (4,717)/(4,718)/(4,719)/(4,721)    anyOrNone                       -
+elm (4,717)/(4,718)/(4,719)/(4,722)    specific                        -
+elm (4,717)/(4,718)/(4,719)/(4,722)/(4,710):stringOrNumeric value      -
+
+section attributeType
+elm (4,751)                            attributeType                   -
+elm (4,751)/(4,102)                    attributeName                   -
+elm (4,751)/(4,113)                    attributeDescription            -
+elm (4,751)/(4,704)                    type                            -
+elm (4,751)/(4,708)                    attributeValues                 -
+elm (4,751)/(4,708)/(4,709)            attributeValue                  -
+elm (4,751)/(4,708)/(4,709)/(4,102)    name                            -
+elm (4,751)/(4,708)/(4,709)/(4,113)    description                     -
+elm (4,751)/(4,708)/(4,709)/(4,710):stringOrNumeric attributeValue     -
+elm (4,751)/(4,708)/(4,709)/(4,752):stringOrNumeric equivalentAttribute        -
+
+section main
+#
+# CategoryList
+#
+elm (4,1)                              categoryList    ExplainCategory
+elm (4,1)/(4,600):commonInfo           categoryListCommonInfo          -
+elm (4,1)/(4,300)                      categories                      -
+elm (4,1)/(4,300)/(4,301)              category                        -
+elm (4,1)/(4,300)/(4,301)/(4,102)      categoryName                    -
+elm (4,1)/(4,300)/(4,301)/(4,302)      originalName                    -
+elm (4,1)/(4,300)/(4,301)/(4,113)      description                     -
+elm (4,1)/(4,300)/(4,301)/(4,303)      asn1Module                      -
+
+#
+# TargetInfo
+# 
+elm (4,2)                              targetInfo              ExplainCategory
+elm (4,2)/(4,600):commonInfo           targetCommonInfo                -
+elm (4,2)/(4,102)                      targetName              TargetName
+elm (4,2)/(4,103)                      recentNews                      -
+elm (4,2)/(4,104)                      icon                            -
+elm (4,2)/(4,105)                      namedResultSets                 -
+elm (4,2)/(4,106)                      multipleDbSearch                -
+elm (4,2)/(4,107)                      maxResultSets                   -
+elm (4,2)/(4,108)                      maxResultSize                   -
+elm (4,2)/(4,109)                      maxTerms                        -
+elm (4,2)/(4,110)                      timeoutInterval                 -
+elm (4,2)/(4,111)                      welcomeMessage                  -
+elm (4,2)/(4,112):contactInfo          contactInfo                     -
+elm (4,2)/(4,113)                      description                     -
+elm (4,2)/(4,114)                      nicknames                       -
+elm (4,2)/(4,114)/(4,102)              nickname                        -
+elm (4,2)/(4,115)                      usageRestrictions               -
+elm (4,2)/(4,116)                      paymentAddr                     -
+elm (4,2)/(4,117)                      hours                           -
+elm (4,2)/(4,118)                      dbCombinations                  -
+elm (4,2)/(4,118)/(4,605)              databaseList                    -
+elm (4,2)/(4,118)/(4,605)/(4,102)      databaseName                    -
+elm (4,2)/(4,119)                      addresses                       -
+elm (4,2)/(4,119)/(4,120)              internetAddress                 -
+elm (4,2)/(4,119)/(4,120)/(4,121)      host                            -
+elm (4,2)/(4,119)/(4,120)/(4,122)      port                            -
+elm (4,2)/(4,119)/(4,123)              otherAddress                    -
+elm (4,2)/(4,119)/(4,123)/(4,124)      addressType                     -
+elm (4,2)/(4,119)/(4,123)/(4,121)      address                         -
+elm (4,2)/(4,125)                      languages                       -
+elm (4,2)/(4,125)/(4,126)              language                        -
+elm (4,2)/(4,500):accessInfo           commonAccessInfo                -
+#
+# DatabaseInfo
+#
+elm (4,3)                              databaseInfo    ExplainCategory
+elm (4,3)/(4,600):commonInfo           databaseCommonInfo              -
+elm (4,3)/(4,102)                      databaseName    DatabaseName
+elm (4,3)/(4,226)                      explainDatabase                 -
+elm (4,3)/(4,114)                      nicknames                       -
+elm (4,3)/(4,114)/(4,102)              nickname                        -
+elm (4,3)/(4,104)                      icon                            -
+elm (4,3)/(4,201)                      userFee                         -
+elm (4,3)/(4,202)                      available       Availability
+elm (4,3)/(4,203)                      titleString                     -
+elm (4,3)/(4,227)                      keywords                        -
+elm (4,3)/(4,227)/(4,1000)             keyword                         -
+elm (4,3)/(4,113)                      description                     -
+elm (4,3)/(4,205)                      associatedDbs                   -
+elm (4,3)/(4,205)/(4,605)              databaseList                    -
+elm (4,3)/(4,205)/(4,605)/(4,102)      databaseName                    -
+elm (4,3)/(4,206)                      subDbs                          -
+elm (4,3)/(4,206)/(4,605)              databaseList                    -
+elm (4,3)/(4,206)/(4,605)/(4,102)      databaseName                    -
+elm (4,3)/(4,207)                      disclaimers                     -
+elm (4,3)/(4,103)                      recentNews                      -
+elm (4,3)/(4,209)                      recordCount                     -
+elm (4,3)/(4,209)/(4,210)              recordCountActual               -
+elm (4,3)/(4,209)/(4,211)              recordCountApprox               -
+elm (4,3)/(4,212)                      defaultOrder                    -
+elm (4,3)/(4,213)                      avRecordSize                    -
+elm (4,3)/(4,214)                      maxRecordSize                   -
+elm (4,3)/(4,215)                      hours                           -
+elm (4,3)/(4,216)                      bestTime                        -
+elm (4,3)/(4,217)                      lastUpdate                      -
+elm (4,3)/(4,218)                      updateInterval                  -
+elm (4,3)/(4,219)                      coverage                        -
+elm (4,3)/(4,220)                      proprietary                     -
+elm (4,3)/(4,221)                      copyrightText                   -
+elm (4,3)/(4,222)                      copyrightNotice                 -
+elm (4,3)/(4,223):contactInfo          producerContactInfo             -
+elm (4,3)/(4,224):contactInfo          supplierContactInfo             -
+elm (4,3)/(4,225):contactInfo          submissionContactInfo           -
+elm (4,3)/(4,500):accessInfo           databaseAccessInfo              -
+#
+# AttributeSetInfo
+#
+elm (4,7)                              attributeSetInfo        ExplainCategory
+elm (4,7)/(4,600):commonInfo           attributeSetInfoCommonInfo      -
+elm (4,7)/(4,1000)                     attributeSet            AttributeSetOID
+elm (4,7)/(4,113)                      description                     -
+elm (4,7)/(4,102)                      name                            -
+elm (4,7)/(4,750):attributeType                attributes                      -
+#
+# AttributeDetails
+#
+elm (4,10)                             attributeDetails        ExplainCategory
+elm (4,10)/(4,600):commonInfo          attributeDetailsCommonInfo      -
+elm (4,10)/(4,102)                     databaseName            DatabaseName
+elm (4,10)/(4,700)                     attributesBySet                 -
+elm (4,10)/(4,700)/(4,701):attributeSetDetails attributeSetDetails     -
+elm (4,10)/(4,716):attributeCombinations attributeCombinations         -
+
diff --git a/etc/zebradb/tab/explain.att b/etc/zebradb/tab/explain.att
new file mode 100644 (file)
index 0000000..062c1d8
--- /dev/null
@@ -0,0 +1,27 @@
+# The Explain Attribute Set
+#
+# $Id: explain.att,v 1.1 2002/10/22 12:51:09 adam Exp $
+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/etc/zebradb/tab/explain.tag b/etc/zebradb/tab/explain.tag
new file mode 100644 (file)
index 0000000..70f92f8
--- /dev/null
@@ -0,0 +1,175 @@
+# Tag set for internal Explain-data management
+#
+# $Id: explain.tag,v 1.1 2002/10/22 12:51:09 adam Exp $
+
+name explain
+reference Explain-tagset
+type 4
+include tagsetm.tag
+
+#
+# Explain categories
+#
+tag 1          categoryList                                    structured
+tag 2          targetInfo                                      structured
+tag 3          databaseInfo                                    structured
+tag 4          schemaInfo                                      structured
+tag 5          tagSetInfo                                      structured
+tag 6          recordSyntaxInfo                                structured
+tag 7           attributeSetInfo                               structured
+tag 8          termListInfo                                    structured
+tag 9          extendedServicesInfo                            structured
+tag 10         attributeDetails                                structured
+tag 11         termListDetails                                 structured
+tag 12         elementSetDetails                               structured
+tag 13         retrievalRecordDetails                          structured
+tag 14         sortDetails                                     structured
+tag 15         processing                                      structured
+tag 16         variants                                        structured
+tag 17         units                                           structured
+
+#
+# TargetInfo
+#
+tag 102                name                                            string
+tag 103                recentNews                                      string
+tag 104                icon                                            structured
+tag 105                namedResultSets                                 bool
+tag 106                multipleDbSearch                                bool
+tag 107                maxResultSets                                   numeric
+tag 108                maxResultSize                                   numeric
+tag 109                maxTerms                                        numeric
+tag 110                timeoutInterval                                 intunit
+tag 111                welcomeMessage                                  string
+tag 112                contactInfo                                     structured
+tag 113                description                                     string
+tag 114                nicknames                                       structured
+tag 115                usageRest                                       string
+tag 116                paymentAddr                                     string
+tag 117                hours                                           string
+tag 118                dbCombinations                                  structured
+tag 119                addresses                                       structured
+tag 120                internetAddress                                 structured
+tag 121                host                                            string
+tag 122                port                                            numeric
+tag 123                otherAddress                                    structured
+tag 124                addressType                                     string
+tag 125                languages                                       structured
+tag 126                language                                        string
+tag 127                address                                         string
+tag 128                email                                           string
+tag 129                phone                                           string
+
+#
+# DatabaseInfo
+#
+tag 201                userFee                                         bool
+tag 202                available                                       bool
+tag 203                titleString                                     string
+tag 205                associatedDbs                                   structured
+tag 206                subDbs                                          structured
+tag 207                disclaimers                                     string
+tag 209                recordCount                                     structured
+tag 210                recordCountActual                               numeric
+tag 211                recordCountApprox                               numeric
+tag 212                defaultOrder                                    string
+tag 213                avRecordSize                                    numeric
+tag 214                maxRecordSize                                   numeric
+tag 215                hours                                           string
+tag 216                bestTime                                        string
+tag 217                lastUpdate                                      generalizedtime
+tag 218                updateInterval                                  intunit
+tag 219                coverage                                        string
+tag 220                proprietary                                     bool
+tag 221                copyrightText                                   string
+tag 222                copyrightNotice                                 string
+tag 223                producerContactInfo                             structured
+tag 224                supplierContactInfo                             structured
+tag 225                submissionContactInfo                           structured
+tag 226                explainDatabase                                 null
+tag 227                keywords                                        string
+
+# CategoryList
+tag 300                categories                                      structured
+tag 301                category                                        structured
+tag 302                originalName                                    string
+tag 303                asn1Module                                      string
+#
+# AccessInfo
+#
+tag 500                accessinfo                                      structured
+tag 501                queryTypesSupported                             structured
+tag 503                diagnosticSets                                  structured
+tag 505                attributeSetIds                                 structured
+tag 507                schemas                                         structured
+tag 509                recordSyntaxes                                  structured
+tag 511                resourceChallenges                              structured
+tag 513                restrictedAccess                                structured
+tag 514                costInfo                                        structured
+tag 515                variantSets                                     structured
+tag 516                elementSetNames                                 structured
+tag 517                unitSystems                                     structured
+tag 518         queryTypeDetails                               structured
+tag 519                rpnCapabilities                                 structured
+tag 520                Iso8777Capabilities                             structured
+tag 521         privateCapabilities                            structured
+
+tag 550                rpnOperators                                    structured
+tag 551                rpnOperator                                     numeric
+tag 552                resultSetAsOperandSupported                     bool
+tag 553                restrictionOperandSupported                     bool
+tag 554                proximitySupport                                structured
+tag 555                anySupport                                      bool
+tag 556        proximityUnitsSupported                         structured
+tag 557                proximityUnitSupported                          structured
+tag 558                proximityUnitVal                                numeric
+tag 559                proximityUnitPrivate                            structured
+tag 560                proximityUnitDescription                        string
+
+# CommonInfo
+
+tag 600                commonInfo                                      structured
+tag 601                dateAdded                                       generalizedtime
+tag 602                dateChanged                                     generalizedtime
+tag 603                expiry                                          generalizedtime
+tag 604                languageCode                                    string
+tag 605        databaseList                                    structured
+
+# AttributeDetails, AttributeSetDetails
+
+tag 700                attributesBySet                                 structured
+tag 701                attributeSetDetails                             structured
+tag 702                attributesByType                                structured
+tag 703                attributeTypeDetails                            structured
+tag 704                type                                            numeric
+tag 705                defaultIfOmitted                                structured
+tag 706                defaultValue                                    structured
+tag 708                attributeValues                                 structured
+tag 709                attributeValue                                  structured
+tag 710                value                                           structured
+tag 711                partialSupport                                  string
+tag 712                subAttributes                                   structured
+tag 713                subAttribute                                    structured
+tag 714                superAttributes                                 structured
+tag 715                superAttribute                                  structured
+tag 716                attributeCombinations                           structured
+tag 717                legalAttributeCombinations                      structured
+tag 718                attributeCombination                            structured
+tag 719                attributeOccurrence                             structured
+tag 720                mustBeSupplied                                  bool
+tag 721                anyOrNone                                       string
+tag 722                specific                                        structured
+
+#
+# AttributeSetInfo
+#
+tag 750                attributes                                      structured
+tag 751                attributeType                                   structured
+tag 752                equivalentAttribute                             structured
+#
+# General tags for list members, etc.
+#
+tag 1000       oid                                             oid
+tag 1001       string                                          string
+tag 1002       numeric                                         numeric
+
diff --git a/etc/zebradb/tab/gils.att b/etc/zebradb/tab/gils.att
new file mode 100644 (file)
index 0000000..89f5265
--- /dev/null
@@ -0,0 +1,79 @@
+# $Id: gils.att,v 1.1 2002/10/22 12:51:09 adam Exp $
+name gils
+reference GILS-attset
+include bib1.att
+
+att 2000         Distributor
+att 2001        Distributor-Name
+att 2002        Index-Terms                            # Subject-Terms-Contr.
+att 2003         Purpose
+att 2004         General-Access-Constraints
+att 2005         Use-Constraints
+att 2006         Distributor-Organization
+att 2007         Distributor-Street-Address
+att 2008         Distributor-City
+att 2009         Distributor-State-or-Province
+att 2010         Distributor-Zip-or-Postal-Code
+att 2011         Distributor-Country
+att 2012         Distributor-Network-Address
+att 2013         Distributor-Hours-of-Service
+att 2014         Distributor-Telephone
+att 2015         Distributor-Fax
+att 2016         Resource-Description
+att 2017         Order-Information
+att 2018         Technical-Prerequisites
+att 2019         Available-Time-Structured
+att 2020         Available-Time-Textual
+att 2021         Linkage
+att 2022         Linkage-Type
+att 2023         Contact-Name
+att 2024         Contact-Organization
+att 2025         Contact-Street-Address
+att 2026         Contact-City
+att 2027         Contact-State-or-Province
+att 2028         Contact-Zip-or-Postal-Code
+att 2029         Contact-Country
+att 2030         Contact-Network-Address
+att 2031         Contact-Hours-of-Service
+att 2032         Contact-Telephone
+att 2033         Contact-Fax
+att 2034         Agency-Program
+att 2035         Sources-of-Data
+att 2036         Subject-Thesaurus
+att 2037         Methodology
+att 2038         West-Bounding-Coordinate
+att 2039         East-Bounding-Coordinate
+att 2040         North-Bounding-Coordinate
+att 2041         South-Bounding-Coordinate
+att 2042         Place-Keyword
+att 2043         Place-Keyword-Thesaurus
+att 2044         Time-Period-Structured
+att 2045         Time-Period-Textual
+att 2046         Cross-Reference-Title
+att 2047         Cross-Reference-Linkage
+att 2049         Original-Control-Identifier
+att 2050         Supplemental-Information
+att 2051         Record-Review-Date
+att 2052         Originator-Dissemination-Control
+att 2053         Security-Classification-Control
+att 2054         Cost
+att 2055         Cost-Information
+att 2056         Schedule-Number
+att 2057         Controlled-Subject-Index
+att 2058         Uncontrolled-Term
+att 2059         Spatial-Domain
+att 2060         Bounding-Coordinates
+att 2061         Place
+att 2062         Time-Period
+att 2063         Availability
+att 2064         Order-Process
+att 2065         Available-Time-Period
+att 2066         Access-Constraints
+att 2067         Point-of-Contact
+att 2068         Cross-Reference
+att 2069         Available-Linkage
+att 2070         Cross-Reference-Relationship
+att 2071         Language-of-Record
+att 2072         Beginning-Date
+att 2073         Ending-Date
+att 2074         Controlled-Term
diff --git a/etc/zebradb/tab/kohalis b/etc/zebradb/tab/kohalis
new file mode 100644 (file)
index 0000000..a65eab4
--- /dev/null
@@ -0,0 +1 @@
+__ZEBRA_USER__:__ZEBRA_PASS__
diff --git a/etc/zebradb/tab/numeric.chr b/etc/zebradb/tab/numeric.chr
new file mode 100644 (file)
index 0000000..cec5e57
--- /dev/null
@@ -0,0 +1,13 @@
+# Numeric character map
+#
+# $Id: numeric.chr,v 1.1 1997/10/27 14:35:04 adam Exp $
+
+# Define the basic value-set. *Beware* of changing this without re-indexing
+# your databases.
+
+lowercase -{0-9}.,
+uppercase -{0-9}.,
+
+# Breaking characters
+
+space {\001-\040}!"#$%&'\()*+/:;<=>?@\[\\]^_`\{|}~
diff --git a/etc/zebradb/tab/sort-string-utf.chr b/etc/zebradb/tab/sort-string-utf.chr
new file mode 100644 (file)
index 0000000..f7320ee
--- /dev/null
@@ -0,0 +1,48 @@
+# Generic character map.
+#
+# $Id: string.chr,v 1.4 1999/09/07 07:19:21 adam Exp $
+
+# Define the basic value-set. *Beware* of changing this without re-indexing
+# your databases.
+lowercase {0-9}{a-y}üzæäøöå
+uppercase {0-9}{A-Y}ÜZÆÄØÖÅ
+
+# Breaking characters
+
+space {\001-\040}!"#$%&'\()*+,-./:;<=>?@\[\\]^_`\{|}~
+
+# Characters to be considered equivalent for searching purposes.
+
+# equivalent æä(ae)
+# equivalent øö(oe)
+# equivalent å(aa)
+# equivalent uü
+
+# Supplemental mappings
+
+#map (&auml;)       ä
+#map (&aelig;)      æ
+#map (&oslash;)     ø
+#map (&aring;)      å
+#map (&ouml;)       ö
+#map (&Auml;)       Ä
+#map (&Aelig;)      Æ
+#map (&Oslash;)     Ø
+#map (&Aring;)      Å
+#map (&Ouml;)       Ö
+
+#map éÉ                e
+#map á         a
+#map ó         o
+#map í         i
+
+#map (Aa)      (AA)
+
+#map (aa)        a
+map (^The\s)    @
+map (^the\s)    @
+map (^a\s)      @
+map (^A\s)      @
+map (^An\s)     @
+map (^an\s)     @
+
diff --git a/etc/zebradb/tab/tagsetm.tag b/etc/zebradb/tab/tagsetm.tag
new file mode 100644 (file)
index 0000000..eae4c6a
--- /dev/null
@@ -0,0 +1,35 @@
+# TagSet-M Tags
+#
+# $Id: tagsetm.tag,v 1.2 2002/12/01 23:28:30 mike Exp $
+name tagsetm
+reference TagsetM
+type 1
+
+tag    1       schemaIdentifier                oid
+tag    2       elementsOrdered                 bool
+tag    3       elementOrdering                 int
+tag    4       defaultTagType                  int
+tag    5       defaultVariantSetId             oid
+tag    6       defaultVariantSpec              structured
+tag    7       processingInstructions          string
+tag    8       recordUsage                     int
+tag    9       restriction                     string
+tag    10      rank                            int
+tag    11      userMessage                     string
+tag    12      url                             string
+tag    13      record                          structured
+tag    14      local-control-number            string
+tag    15      creation-date                   generalizedtime
+tag    16      dateOfLastModification/lastModified generalizedtime
+tag    17      dateOfLastReview                generalizedtime
+tag    18      score                           int
+tag    19      wellKnown                       string
+tag    20      recordWrapper                   structured
+tag    21      defaultTagSetId                 oid
+tag    22      languageOfRecord                string
+tag    23      type                            string
+tag    24      scheme                          string
+tag    25      costInfo                        string
+tag    26      costFlag                        bool
+tag    27      termCreatedBy                   string
+tag    28      termModifiedBy                  string
diff --git a/etc/zebradb/tab/usmarc.mar b/etc/zebradb/tab/usmarc.mar
new file mode 100644 (file)
index 0000000..99920f9
--- /dev/null
@@ -0,0 +1,3 @@
+# $Id: usmarc.mar,v 1.1 2002/10/22 12:51:09 adam Exp $
+name usmarc
+reference USmarc
diff --git a/etc/zebradb/tab/word-phrase-utf.chr b/etc/zebradb/tab/word-phrase-utf.chr
new file mode 100644 (file)
index 0000000..9fc5351
--- /dev/null
@@ -0,0 +1,41 @@
+# Generic character map.
+#
+# $Id: word-phrase-utf.chr,v 1.1.2.1 2006/07/03 21:56:45 kados Exp $
+
+# Define the basic value-set. *Beware* of changing this without re-indexing
+# your databases.
+lowercase {0-9}{a-y}üzæäøöå
+uppercase {0-9}{A-Y}ÜZÆÄØÖÅ
+
+# Breaking characters
+
+space {\001-\040}!"#$%&'\()*+,-./:;<=>?@\[\\]^_`\{|}~
+
+# Characters to be considered equivalent for searching purposes.
+
+# equivalent æä(ae)
+# equivalent øö(oe)
+# equivalent å(aa)
+# equivalent uü
+
+# Supplemental mappings
+
+#map (&auml;)       ä
+#map (&aelig;)      æ
+#map (&oslash;)     ø
+#map (&aring;)      å
+#map (&ouml;)       ö
+#map (&Auml;)       Ä
+#map (&Aelig;)      Æ
+#map (&Oslash;)     Ø
+#map (&Aring;)      Å
+#map (&Ouml;)       Ö
+
+#map éÉ                e
+#map á         a
+#map ó         o
+#map í         i
+
+#map (Aa)      (AA)
+
+#map (aa)        a
diff --git a/etc/zebradb/zebra-authorities.cfg b/etc/zebradb/zebra-authorities.cfg
new file mode 100644 (file)
index 0000000..a63293e
--- /dev/null
@@ -0,0 +1,46 @@
+
+# Simple Zebra configuration file that defines
+# a database with MARCXML records.
+# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
+#
+# Where are the config files located?
+profilePath:__PREFIX__/share/koha/etc/zebradb/authorities/tab:__PREFIX__/share/koha/etc/zebradb/tab
+
+encoding: UTF-8
+# modulePath - where to look for loadable zebra modules
+modulePath: /usr/lib/idzebra-2.0/modules
+
+# Files that describe the attribute sets supported.
+attset: bib1.att
+attset: explain.att
+attset:gils.att
+
+#systag sysno rank
+# Specify record type
+iso2709.recordType:grs.marcxml.record
+recordType:grs.xml
+recordId: (bib1,Local-Number)  
+# was auth1
+storeKeys:1
+storeData:1
+
+
+# Lock File Area
+lockDir: __BASE_DIR__/zebradb/authorities/lock
+perm.anonymous:r
+perm.kohaadmin:rw
+passw.kohalis
+shadow
+register: __BASE_DIR__/zebradb/authorities/register:4G
+shadow: __BASE_DIR__/zebradb/authorities/shadow:1G 
+
+# Temp File area for result sets
+setTmpDir: __BASE_DIR__/zebradb/authorities/tmp
+
+# Temp File area for index program
+keyTmpDir: __BASE_DIR__/zebradb/authorities/key
+
+# Approx. Memory usage during indexing
+memMax: 200M
+rank:rank-1
+
diff --git a/etc/zebradb/zebra-biblios.cfg b/etc/zebradb/zebra-biblios.cfg
new file mode 100644 (file)
index 0000000..9d93aca
--- /dev/null
@@ -0,0 +1,42 @@
+# Simple Zebra configuration file that defines
+# a database with MARCXML records.
+# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
+#
+# Where are the config files located?
+profilePath:__PREFIX__/share/koha/etc/zebradb/biblios/tab:__PREFIX__/share/koha/etc/zebradb/tab
+# modulePath - where to look for loadable zebra modules
+modulePath: /usr/lib/idzebra-2.0/modules
+
+encoding: UTF-8
+# Files that describe the attribute sets supported.
+attset: bib1.att
+attset: explain.att
+attset:gils.att
+
+# systag sysno rank
+# Specify record type
+iso2709.recordType:grs.marcxml.record
+recordType:grs.xml
+recordId: (bib1,Local-number)
+storeKeys:1
+storeData:1
+
+
+# Lock File Area
+lockDir: __BASE_DIR__/zebradb/biblios/lock
+perm.anonymous:r
+perm.kohaadmin:rw
+passw.kohalis
+shadow
+register: __BASE_DIR__/zebradb/biblios/register:4G
+shadow: __BASE_DIR__/zebradb/biblios/shadow:4G
+
+# Temp File area for result sets
+setTmpDir: __BASE_DIR__/zebradb/biblios/tmp
+
+# Temp File area for index program
+keyTmpDir: __BASE_DIR__/zebradb/biblios/key
+
+# Approx. Memory usage during indexing
+memMax: 500M
+rank:rank-1