zcc 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/History.txt +13 -0
  2. data/Manifest.txt +36 -1
  3. data/Rakefile +6 -1
  4. data/bin/zcc +98 -132
  5. data/{bin → examples}/linter.pl +0 -0
  6. data/examples/zcc.yaml +22 -10
  7. data/examples/zebra/README +2 -0
  8. data/examples/zebra/key/empty +1 -0
  9. data/examples/zebra/lock/empty +1 -0
  10. data/examples/zebra/records/examples/0.xml +1 -0
  11. data/examples/zebra/records/examples/1.xml +1 -0
  12. data/examples/zebra/records/examples/2.xml +1 -0
  13. data/examples/zebra/records/examples/3.xml +1 -0
  14. data/examples/zebra/records/examples/4.xml +1 -0
  15. data/examples/zebra/records/examples/5.xml +1 -0
  16. data/examples/zebra/records/examples/6.xml +1 -0
  17. data/examples/zebra/records/examples/7.xml +1 -0
  18. data/examples/zebra/records/examples/8.xml +1 -0
  19. data/examples/zebra/records/examples/9.xml +1 -0
  20. data/examples/zebra/register/empty +1 -0
  21. data/examples/zebra/shadow/empty +1 -0
  22. data/examples/zebra/tab/bib1.abs +151 -0
  23. data/examples/zebra/tab/bib1.att +151 -0
  24. data/examples/zebra/tab/default.idx +57 -0
  25. data/examples/zebra/tab/explain.abs +224 -0
  26. data/examples/zebra/tab/explain.att +27 -0
  27. data/examples/zebra/tab/explain.tag +175 -0
  28. data/examples/zebra/tab/gils.att +79 -0
  29. data/examples/zebra/tab/kohalis +1 -0
  30. data/examples/zebra/tab/numeric.chr +13 -0
  31. data/examples/zebra/tab/record.abs +66 -0
  32. data/examples/zebra/tab/sort-string-utf.chr +48 -0
  33. data/examples/zebra/tab/tagsetm.tag +35 -0
  34. data/examples/zebra/tab/usmarc.mar +3 -0
  35. data/examples/zebra/tab/word-phrase-utf.chr +41 -0
  36. data/examples/zebra/tmp/empty +1 -0
  37. data/examples/zebra/zebra.cfg +39 -0
  38. data/lib/zcc/marcadditions.rb +32 -10
  39. data/lib/zcc/pickers.rb +105 -29
  40. data/lib/zcc/subfieldeditor.rb +70 -0
  41. data/lib/zcc/version.rb +1 -1
  42. data/lib/zcc/zoomer.rb +72 -0
  43. data/website/index.html +1 -1
  44. data/website/koha.html +2 -2
  45. data/website/koha.txt +7 -5
  46. data/website/zcc.html +59 -31
  47. data/website/zcc.txt +52 -23
  48. data/website/zebra.html +80 -0
  49. data/website/zebra.txt +36 -0
  50. metadata +76 -6
@@ -0,0 +1,27 @@
1
+ # The Explain Attribute Set
2
+ #
3
+ # $Id: explain.att,v 1.1 2002/10/22 12:51:09 adam Exp $
4
+ name explain
5
+ reference Exp-1
6
+
7
+ att 1 ExplainCategory
8
+ att 2 HumanStringLanguage
9
+ att 3 DatabaseName
10
+ att 4 Targetname
11
+ att 5 AttributeSetOID
12
+ att 6 RecordSyntaxOID
13
+ att 7 TagSetOID
14
+ att 8 ExtendedServicesOID
15
+ att 9 DateAdded
16
+ att 10 DateChanged
17
+ att 11 DateExpired
18
+ att 12 ElementSetName
19
+ att 13 ProcessingContext
20
+ att 14 ProcessingName
21
+ att 15 TermListName
22
+ att 16 SchemaOID
23
+ att 17 Producer
24
+ att 18 Supplier
25
+ att 19 Availability
26
+ att 20 Proprietary
27
+ att 21 UserFee
@@ -0,0 +1,175 @@
1
+ # Tag set for internal Explain-data management
2
+ #
3
+ # $Id: explain.tag,v 1.1 2002/10/22 12:51:09 adam Exp $
4
+
5
+ name explain
6
+ reference Explain-tagset
7
+ type 4
8
+ include tagsetm.tag
9
+
10
+ #
11
+ # Explain categories
12
+ #
13
+ tag 1 categoryList structured
14
+ tag 2 targetInfo structured
15
+ tag 3 databaseInfo structured
16
+ tag 4 schemaInfo structured
17
+ tag 5 tagSetInfo structured
18
+ tag 6 recordSyntaxInfo structured
19
+ tag 7 attributeSetInfo structured
20
+ tag 8 termListInfo structured
21
+ tag 9 extendedServicesInfo structured
22
+ tag 10 attributeDetails structured
23
+ tag 11 termListDetails structured
24
+ tag 12 elementSetDetails structured
25
+ tag 13 retrievalRecordDetails structured
26
+ tag 14 sortDetails structured
27
+ tag 15 processing structured
28
+ tag 16 variants structured
29
+ tag 17 units structured
30
+
31
+ #
32
+ # TargetInfo
33
+ #
34
+ tag 102 name string
35
+ tag 103 recentNews string
36
+ tag 104 icon structured
37
+ tag 105 namedResultSets bool
38
+ tag 106 multipleDbSearch bool
39
+ tag 107 maxResultSets numeric
40
+ tag 108 maxResultSize numeric
41
+ tag 109 maxTerms numeric
42
+ tag 110 timeoutInterval intunit
43
+ tag 111 welcomeMessage string
44
+ tag 112 contactInfo structured
45
+ tag 113 description string
46
+ tag 114 nicknames structured
47
+ tag 115 usageRest string
48
+ tag 116 paymentAddr string
49
+ tag 117 hours string
50
+ tag 118 dbCombinations structured
51
+ tag 119 addresses structured
52
+ tag 120 internetAddress structured
53
+ tag 121 host string
54
+ tag 122 port numeric
55
+ tag 123 otherAddress structured
56
+ tag 124 addressType string
57
+ tag 125 languages structured
58
+ tag 126 language string
59
+ tag 127 address string
60
+ tag 128 email string
61
+ tag 129 phone string
62
+
63
+ #
64
+ # DatabaseInfo
65
+ #
66
+ tag 201 userFee bool
67
+ tag 202 available bool
68
+ tag 203 titleString string
69
+ tag 205 associatedDbs structured
70
+ tag 206 subDbs structured
71
+ tag 207 disclaimers string
72
+ tag 209 recordCount structured
73
+ tag 210 recordCountActual numeric
74
+ tag 211 recordCountApprox numeric
75
+ tag 212 defaultOrder string
76
+ tag 213 avRecordSize numeric
77
+ tag 214 maxRecordSize numeric
78
+ tag 215 hours string
79
+ tag 216 bestTime string
80
+ tag 217 lastUpdate generalizedtime
81
+ tag 218 updateInterval intunit
82
+ tag 219 coverage string
83
+ tag 220 proprietary bool
84
+ tag 221 copyrightText string
85
+ tag 222 copyrightNotice string
86
+ tag 223 producerContactInfo structured
87
+ tag 224 supplierContactInfo structured
88
+ tag 225 submissionContactInfo structured
89
+ tag 226 explainDatabase null
90
+ tag 227 keywords string
91
+
92
+ # CategoryList
93
+ tag 300 categories structured
94
+ tag 301 category structured
95
+ tag 302 originalName string
96
+ tag 303 asn1Module string
97
+ #
98
+ # AccessInfo
99
+ #
100
+ tag 500 accessinfo structured
101
+ tag 501 queryTypesSupported structured
102
+ tag 503 diagnosticSets structured
103
+ tag 505 attributeSetIds structured
104
+ tag 507 schemas structured
105
+ tag 509 recordSyntaxes structured
106
+ tag 511 resourceChallenges structured
107
+ tag 513 restrictedAccess structured
108
+ tag 514 costInfo structured
109
+ tag 515 variantSets structured
110
+ tag 516 elementSetNames structured
111
+ tag 517 unitSystems structured
112
+ tag 518 queryTypeDetails structured
113
+ tag 519 rpnCapabilities structured
114
+ tag 520 Iso8777Capabilities structured
115
+ tag 521 privateCapabilities structured
116
+
117
+ tag 550 rpnOperators structured
118
+ tag 551 rpnOperator numeric
119
+ tag 552 resultSetAsOperandSupported bool
120
+ tag 553 restrictionOperandSupported bool
121
+ tag 554 proximitySupport structured
122
+ tag 555 anySupport bool
123
+ tag 556 proximityUnitsSupported structured
124
+ tag 557 proximityUnitSupported structured
125
+ tag 558 proximityUnitVal numeric
126
+ tag 559 proximityUnitPrivate structured
127
+ tag 560 proximityUnitDescription string
128
+
129
+ # CommonInfo
130
+
131
+ tag 600 commonInfo structured
132
+ tag 601 dateAdded generalizedtime
133
+ tag 602 dateChanged generalizedtime
134
+ tag 603 expiry generalizedtime
135
+ tag 604 languageCode string
136
+ tag 605 databaseList structured
137
+
138
+ # AttributeDetails, AttributeSetDetails
139
+
140
+ tag 700 attributesBySet structured
141
+ tag 701 attributeSetDetails structured
142
+ tag 702 attributesByType structured
143
+ tag 703 attributeTypeDetails structured
144
+ tag 704 type numeric
145
+ tag 705 defaultIfOmitted structured
146
+ tag 706 defaultValue structured
147
+ tag 708 attributeValues structured
148
+ tag 709 attributeValue structured
149
+ tag 710 value structured
150
+ tag 711 partialSupport string
151
+ tag 712 subAttributes structured
152
+ tag 713 subAttribute structured
153
+ tag 714 superAttributes structured
154
+ tag 715 superAttribute structured
155
+ tag 716 attributeCombinations structured
156
+ tag 717 legalAttributeCombinations structured
157
+ tag 718 attributeCombination structured
158
+ tag 719 attributeOccurrence structured
159
+ tag 720 mustBeSupplied bool
160
+ tag 721 anyOrNone string
161
+ tag 722 specific structured
162
+
163
+ #
164
+ # AttributeSetInfo
165
+ #
166
+ tag 750 attributes structured
167
+ tag 751 attributeType structured
168
+ tag 752 equivalentAttribute structured
169
+ #
170
+ # General tags for list members, etc.
171
+ #
172
+ tag 1000 oid oid
173
+ tag 1001 string string
174
+ tag 1002 numeric numeric
175
+
@@ -0,0 +1,79 @@
1
+ # $Id: gils.att,v 1.1 2002/10/22 12:51:09 adam Exp $
2
+ name gils
3
+ reference GILS-attset
4
+ include bib1.att
5
+
6
+ att 2000 Distributor
7
+ att 2001 Distributor-Name
8
+ att 2002 Index-Terms # Subject-Terms-Contr.
9
+ att 2003 Purpose
10
+ att 2004 General-Access-Constraints
11
+ att 2005 Use-Constraints
12
+ att 2006 Distributor-Organization
13
+ att 2007 Distributor-Street-Address
14
+ att 2008 Distributor-City
15
+ att 2009 Distributor-State-or-Province
16
+ att 2010 Distributor-Zip-or-Postal-Code
17
+ att 2011 Distributor-Country
18
+ att 2012 Distributor-Network-Address
19
+ att 2013 Distributor-Hours-of-Service
20
+ att 2014 Distributor-Telephone
21
+ att 2015 Distributor-Fax
22
+ att 2016 Resource-Description
23
+ att 2017 Order-Information
24
+ att 2018 Technical-Prerequisites
25
+ att 2019 Available-Time-Structured
26
+ att 2020 Available-Time-Textual
27
+ att 2021 Linkage
28
+ att 2022 Linkage-Type
29
+ att 2023 Contact-Name
30
+ att 2024 Contact-Organization
31
+ att 2025 Contact-Street-Address
32
+ att 2026 Contact-City
33
+ att 2027 Contact-State-or-Province
34
+ att 2028 Contact-Zip-or-Postal-Code
35
+ att 2029 Contact-Country
36
+ att 2030 Contact-Network-Address
37
+ att 2031 Contact-Hours-of-Service
38
+ att 2032 Contact-Telephone
39
+ att 2033 Contact-Fax
40
+ att 2034 Agency-Program
41
+ att 2035 Sources-of-Data
42
+ att 2036 Subject-Thesaurus
43
+ att 2037 Methodology
44
+ att 2038 West-Bounding-Coordinate
45
+ att 2039 East-Bounding-Coordinate
46
+ att 2040 North-Bounding-Coordinate
47
+ att 2041 South-Bounding-Coordinate
48
+ att 2042 Place-Keyword
49
+ att 2043 Place-Keyword-Thesaurus
50
+ att 2044 Time-Period-Structured
51
+ att 2045 Time-Period-Textual
52
+ att 2046 Cross-Reference-Title
53
+ att 2047 Cross-Reference-Linkage
54
+ att 2049 Original-Control-Identifier
55
+ att 2050 Supplemental-Information
56
+ att 2051 Record-Review-Date
57
+ att 2052 Originator-Dissemination-Control
58
+ att 2053 Security-Classification-Control
59
+ att 2054 Cost
60
+ att 2055 Cost-Information
61
+ att 2056 Schedule-Number
62
+ att 2057 Controlled-Subject-Index
63
+ att 2058 Uncontrolled-Term
64
+ att 2059 Spatial-Domain
65
+ att 2060 Bounding-Coordinates
66
+ att 2061 Place
67
+ att 2062 Time-Period
68
+ att 2063 Availability
69
+ att 2064 Order-Process
70
+ att 2065 Available-Time-Period
71
+ att 2066 Access-Constraints
72
+ att 2067 Point-of-Contact
73
+ att 2068 Cross-Reference
74
+ att 2069 Available-Linkage
75
+ att 2070 Cross-Reference-Relationship
76
+ att 2071 Language-of-Record
77
+ att 2072 Beginning-Date
78
+ att 2073 Ending-Date
79
+ att 2074 Controlled-Term
@@ -0,0 +1 @@
1
+ kohaadmin:K0h4R0ck$
@@ -0,0 +1,13 @@
1
+ # Numeric character map
2
+ #
3
+ # $Id: numeric.chr,v 1.1 1997/10/27 14:35:04 adam Exp $
4
+
5
+ # Define the basic value-set. *Beware* of changing this without re-indexing
6
+ # your databases.
7
+
8
+ lowercase -{0-9}.,
9
+ uppercase -{0-9}.,
10
+
11
+ # Breaking characters
12
+
13
+ space {\001-\040}!"#$%&'\()*+/:;<=>?@\[\\]^_`\{|}~
@@ -0,0 +1,66 @@
1
+ # $Id: record.abs,v 1.10 2007/05/08 12:50:06 adam Exp $
2
+
3
+ name marcxml
4
+ attset bib1.att
5
+
6
+ esetname F @
7
+ esetname B @
8
+
9
+ marc usmarc.mar
10
+
11
+ xpath disable
12
+
13
+ xelm /record/leader leader:w:range(data,0,5),leader2:w:range(data,5,3)
14
+ melm 001 Identifier-Standard:0
15
+ melm 008 Code-Language:w
16
+ melm 017 Number-legal-deposit,Identifier-standard
17
+ melm 018 Identifier-standard
18
+ melm 020$a ISBN:w,Identifier-standard:w
19
+ melm 020 ISBN,Identifier-standard
20
+ melm 022$a ISSN:w,ISBN:w
21
+ melm 022 ISSN,Identifier-standard
22
+ melm 023 Identifier-standard
23
+ melm 024 Identifier-standard
24
+ melm 025 Identifier-standard
25
+ melm 027 Report-number,Identifier-standard
26
+ melm 028 Number-music-publisher,Identifier-standard
27
+ melm 030 CODEN,Identifier-standard
28
+ melm 033 Date
29
+ melm 034 Map-scale
30
+ melm 035 Local-number,Identifier-standard
31
+ melm 037 Identifier-standard,Stock-number
32
+ melm 040 Code-institution,Record-source
33
+ melm 041 ln
34
+ melm 043 Code-geographic
35
+ melm 046 pubdate
36
+ melm 050$b LC-call-number:w, LC-call-number:p, LC-call-number:s
37
+ melm 050 LC-call-number:w, LC-call-number:p, LC-call-number:s
38
+ melm 052 Geographic-class
39
+ melm 060 NLM-call-number
40
+ melm 070 NAL-call-number
41
+ melm 080 UDC-classification
42
+ melm 082 Dewey-classification:w,Dewey-classification:s
43
+ melm 086 Number-govt-pub
44
+ melm 100$a author:w,author:s
45
+ melm 245 title:w
46
+ melm 650 subject-heading:w,subject-heading:p
47
+ xelm /record/datafield[@tag="710"]/subfield Server-choice:p:range(data,first(data,'.'))
48
+ melm 700$9 Cross-Reference
49
+ melm 700$a Author,Author:p
50
+ melm 700$n Thematic-number
51
+ melm 700$r Music-key
52
+ melm 700$t author,Author-title,Name-and-title,Title,Title-uniform
53
+ melm 700$t Author-title,Name-and-title,Title,Title-uniform
54
+ melm 700 Author,Author-name-corporate,Author-name-personal,Name,Editor,Personal-name
55
+ melm 710 Author,Corporate-name
56
+ melm 710$t author,Author-title,Name-and-title,Title,Title-uniform
57
+ melm 710$t Author-title,Name-and-title,Title,Title-uniform
58
+ melm 710 author,Name
59
+ melm 710 Author,Name
60
+ melm 711$a Name-and-title
61
+ melm 711$t Author-title,Title,Title-uniform
62
+ melm 711 author,Author-name-corporate,Name,Conference-name
63
+ melm 711 Author-name-corporate,Name,Conference-name
64
+ melm 730$n Thematic-number
65
+ melm 730$r Music-key
66
+ melm 730 Title,Title-uniform
@@ -0,0 +1,48 @@
1
+ # Generic character map.
2
+ #
3
+ # $Id: string.chr,v 1.4 1999/09/07 07:19:21 adam Exp $
4
+
5
+ # Define the basic value-set. *Beware* of changing this without re-indexing
6
+ # your databases.
7
+ lowercase {0-9}{a-y}�z�����
8
+ uppercase {0-9}{A-Y}�Z�����
9
+
10
+ # Breaking characters
11
+
12
+ space {\001-\040}!"#$%&'\()*+,-./:;<=>?@\[\\]^_`\{|}~
13
+
14
+ # Characters to be considered equivalent for searching purposes.
15
+
16
+ # equivalent ��(ae)
17
+ # equivalent ��(oe)
18
+ # equivalent �(aa)
19
+ # equivalent u�
20
+
21
+ # Supplemental mappings
22
+
23
+ #map (&auml;) �
24
+ #map (&aelig;) �
25
+ #map (&oslash;) �
26
+ #map (&aring;) �
27
+ #map (&ouml;) �
28
+ #map (&Auml;) �
29
+ #map (&Aelig;) �
30
+ #map (&Oslash;) �
31
+ #map (&Aring;) �
32
+ #map (&Ouml;) �
33
+
34
+ #map �� e
35
+ #map � a
36
+ #map � o
37
+ #map � i
38
+
39
+ #map (Aa) (AA)
40
+
41
+ #map (aa) a
42
+ map (^The\s) @
43
+ map (^the\s) @
44
+ map (^a\s) @
45
+ map (^A\s) @
46
+ map (^An\s) @
47
+ map (^an\s) @
48
+
@@ -0,0 +1,35 @@
1
+ # TagSet-M Tags
2
+ #
3
+ # $Id: tagsetm.tag,v 1.2 2002/12/01 23:28:30 mike Exp $
4
+ name tagsetm
5
+ reference TagsetM
6
+ type 1
7
+
8
+ tag 1 schemaIdentifier oid
9
+ tag 2 elementsOrdered bool
10
+ tag 3 elementOrdering int
11
+ tag 4 defaultTagType int
12
+ tag 5 defaultVariantSetId oid
13
+ tag 6 defaultVariantSpec structured
14
+ tag 7 processingInstructions string
15
+ tag 8 recordUsage int
16
+ tag 9 restriction string
17
+ tag 10 rank int
18
+ tag 11 userMessage string
19
+ tag 12 url string
20
+ tag 13 record structured
21
+ tag 14 local-control-number string
22
+ tag 15 creation-date generalizedtime
23
+ tag 16 dateOfLastModification/lastModified generalizedtime
24
+ tag 17 dateOfLastReview generalizedtime
25
+ tag 18 score int
26
+ tag 19 wellKnown string
27
+ tag 20 recordWrapper structured
28
+ tag 21 defaultTagSetId oid
29
+ tag 22 languageOfRecord string
30
+ tag 23 type string
31
+ tag 24 scheme string
32
+ tag 25 costInfo string
33
+ tag 26 costFlag bool
34
+ tag 27 termCreatedBy string
35
+ tag 28 termModifiedBy string