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
data/website/zebra.txt ADDED
@@ -0,0 +1,36 @@
1
+ h1. Very simple setup of local zebra server
2
+
3
+ These instructions are probably incomplete for this release. Please let me know if you find errors.
4
+
5
+ install all the dependencies to zcc and confirm that it is working
6
+
7
+ install "zebra":http://www.indexdata.dk/zebra/ If using Debian or RedHat it is suggested that you add the indexdata repositories.
8
+
9
+ <pre syntax="ruby">
10
+ $ cd ~/.zcc
11
+ $ cp -r /var/lib/gems/1.8/gems/zcc-0.0.3/examples/zebra .
12
+ $ cd zebra
13
+ $ zebraidx update ~/.zcc/zebra/records
14
+ $ zebrasrv &
15
+ $ yaz-client localhost:9999/zcc
16
+ Z> f @attr 1=4 theology
17
+ Z> show 1
18
+ </pre>
19
+
20
+ You may want to open up a different terminal as zebrasrv (the server) will output messages to the terminal when you search it.
21
+
22
+ If you see a record displayed then it works! Congratulations.
23
+
24
+ now you can configure your local zserver in the zcc.yaml file in ~/.zcc. Add (or uncomment) this line:
25
+ <pre>- [localhost, 9999, zcc]</pre>
26
+
27
+ When you want to add records to the zebra database you will need to return to your ~/.zcc/zebra directory and reindex the whole bunk of records. Just drop marcxml records anywhere in the directory below ~/.zcc/zebra/records and they will be indexed. To make this the default place to save records choose 'zebra' under save_record_syntax in zcc.yaml. This reindexing could take some time, especially if you have a large number of files. We would like to add extended services for record insert and update to ruby-zoom (complete the ZOOM C-binding) so please let me know if you're a developer willing to do the work (jronallo+zoom@gmail.com). But for now you'll have to do it the slow way:
28
+
29
+ <pre syntax="ruby">$ cd ~/.zcc/zebra
30
+ $ zebraidx update ~/.zcc/zebra/records</pre>
31
+
32
+ If you shutdown your computer make sure to restart the zebrasrv!
33
+
34
+ If port 9999, the default zebrasrv port is exposed to the world, others will be able to search your database as well. You may find this a good thing :) or it may be a security risk?
35
+
36
+
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: zcc
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.2
7
- date: 2007-06-24 00:00:00 -04:00
6
+ version: 0.0.3
7
+ date: 2007-07-13 00:00:00 -04:00
8
8
  summary: zcc is a command line script for copy cataloging MARC records
9
9
  require_paths:
10
10
  - lib
@@ -34,14 +34,47 @@ files:
34
34
  - Manifest.txt
35
35
  - README.txt
36
36
  - Rakefile
37
- - bin/linter.pl
38
37
  - bin/zcc
38
+ - examples/linter.pl
39
39
  - examples/zcc.yaml
40
+ - examples/zebra/key/empty
41
+ - examples/zebra/lock/empty
42
+ - examples/zebra/README
43
+ - examples/zebra/register/empty
44
+ - examples/zebra/records/examples/0.xml
45
+ - examples/zebra/records/examples/1.xml
46
+ - examples/zebra/records/examples/2.xml
47
+ - examples/zebra/records/examples/3.xml
48
+ - examples/zebra/records/examples/4.xml
49
+ - examples/zebra/records/examples/5.xml
50
+ - examples/zebra/records/examples/6.xml
51
+ - examples/zebra/records/examples/7.xml
52
+ - examples/zebra/records/examples/8.xml
53
+ - examples/zebra/records/examples/9.xml
54
+ - examples/zebra/shadow/empty
55
+ - examples/zebra/tab/bib1.abs
56
+ - examples/zebra/tab/bib1.att
57
+ - examples/zebra/tab/default.idx
58
+ - examples/zebra/tab/explain.abs
59
+ - examples/zebra/tab/explain.att
60
+ - examples/zebra/tab/explain.tag
61
+ - examples/zebra/tab/gils.att
62
+ - examples/zebra/tab/kohalis
63
+ - examples/zebra/tab/numeric.chr
64
+ - examples/zebra/tab/record.abs
65
+ - examples/zebra/tab/sort-string-utf.chr
66
+ - examples/zebra/tab/tagsetm.tag
67
+ - examples/zebra/tab/usmarc.mar
68
+ - examples/zebra/tab/word-phrase-utf.chr
69
+ - examples/zebra/tmp/empty
70
+ - examples/zebra/zebra.cfg
40
71
  - examples/zoomer-iterator.txt
41
72
  - lib/zcc.rb
42
73
  - lib/zcc/marcadditions.rb
43
74
  - lib/zcc/pickers.rb
75
+ - lib/zcc/subfieldeditor.rb
44
76
  - lib/zcc/version.rb
77
+ - lib/zcc/zoomer.rb
45
78
  - scripts/txt2html
46
79
  - setup.rb
47
80
  - test/test_helper.rb
@@ -55,6 +88,8 @@ files:
55
88
  - website/template.rhtml
56
89
  - website/zcc.html
57
90
  - website/zcc.txt
91
+ - website/zebra.html
92
+ - website/zebra.txt
58
93
  test_files:
59
94
  - test/test_helper.rb
60
95
  - test/test_zcc.rb
@@ -69,12 +104,47 @@ extra_rdoc_files:
69
104
  - website/index.txt
70
105
  - website/koha.txt
71
106
  - website/zcc.txt
107
+ - website/zebra.txt
72
108
  executables:
73
- - linter.pl
74
109
  - zcc
75
110
  extensions: []
76
111
 
77
112
  requirements: []
78
113
 
79
- dependencies: []
80
-
114
+ dependencies:
115
+ - !ruby/object:Gem::Dependency
116
+ name: marc
117
+ version_requirement:
118
+ version_requirements: !ruby/object:Gem::Version::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.1.6
123
+ version:
124
+ - !ruby/object:Gem::Dependency
125
+ name: zoom
126
+ version_requirement:
127
+ version_requirements: !ruby/object:Gem::Version::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 0.3.0
132
+ version:
133
+ - !ruby/object:Gem::Dependency
134
+ name: unicode
135
+ version_requirement:
136
+ version_requirements: !ruby/object:Gem::Version::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: "0.1"
141
+ version:
142
+ - !ruby/object:Gem::Dependency
143
+ name: highline
144
+ version_requirement:
145
+ version_requirements: !ruby/object:Gem::Version::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: 1.2.9
150
+ version: