http://www.emilda.org/index.php?q=node/36
Sample Zebra Configurations
Below are some directives how to configure Zebra to comply with Emilda in an acceptable manner.
The first thing to be done is to decide where the Zebra folder is to be located. We recommend that you put it as a subfolder (zebra/) of the Emilda source folder. One reason not to have it there is when the Zebra database is bigger than the disk that the Emilda source folder is located on. In such cases, it might be a good idea to put it on a separate drive.
There are two ways to configure Zebra to comply with Emilda; either configuring it from the example files supplied with the Zebra source, or using the pre-configured setup supplied with Emilda.
When configuring from the examples supplied with Zebra, you need to put the USMARC example files into your zebra-root. They are normally located in test/ under the idzebra source folder. Additionally you need to put the tab/ folder from the idzebra source folder into your zebra-root. You can of course use a custom setup if you feel familiar with Zebra configuration.
Now we have a working environment where the "zebrasrv"-process can live and work, but this is not enough for Emilda as it uses attributes that are not defined in the default configuration supplied with Zebra. That is why we have supplied a tarball containing all the files that need to be replaced in your Zebra root folder and it can be downloaded from the same location you downloaded Emilda itself, named "emilda-zebra-folder-VERSION.tar.gz". Unpack the tarball in some arbitraty location, and copy the files to their appropriate locations (see below).
* zebra.cfg - The Zebra root folder (/path/to/emilda/zebra/zebra.cfg)
* bib1.att - The tab/ subfolder of the Zebra root folder (/path/to/emilda/zebra/tab/bib1.att)
* usmarc.abs - The tab/ subfolder of the Zebra root folder (/path/to/emilda/zebra/tab/usmarc.abs)
* usmarc.tag - The tab/ subfolder of the Zebra root folder (/path/to/emilda/zebra/tab/usmarc.tag)
If you want to use our pre-configured zebra environment, download the tarball and extract into the location where you want your zebra-root to exist. This tarball contains all necessary files for Zebra to work with Emilda, so no configuration should be needed.
Before starting Zebra, we need to create a folder where the MARC-records are to be stored. In our examples it is called records/ and it is located in the Zebra root folder (/path/to/emilda/zebra/records/). What is important with this folder is that both the Zebra process and Apache need to have write access to it. This can be achieved e.g. by running the "zebrasrv"-process as the Apache user and only giving the Apache user write access to records/, or by giving write access to records/ to both Apache and the user running the "zebrasrv"-process. There is no favourable way to do this, both work just as well.
After deciding on which method to use, we are ready to prepare Zebra for running; Zebra needs to init and index the records/ folder before we start the process. If you have any records that you wish to import into Emilda, you need to copy these into the records/ folder before running these commands. (If you afterwards want to import MARC-recods, you copy them into the recods/ folder and run these commands.) However, remember that the Items that the records in the records/ folder represent need to be added into the SQL database before Emilda can use them.
1. Go into the Zebra root folder: "cd /path/to/emilda/zebra/
2. Init Zebra: "zebraidx init"
3. Index the records/ folder: "zebraidx -g emilda update records"
4. Commit results into shadow: "zebraidx commit"
5. Start the zebrasrv-process: "zebrasrv -l /path/to/log @:9999"
This should give you a working environment with Emilda and Zebra.
NOTE!
If the records/ folder is empty, there will be an error of the type
Unsupported Use attribute: 7
which should not show up after the first record has been added. If it persists there is something odd going on - try to check if you have done everything according to the above instructions, or send a note to the Emilda mailing list.
星期六, 3月 03, 2007
koha 3.0 opac for zebra
1.install koha 2.2.5 & koha 2.2.6 ...
2.cp nkes Koha => your Koha
and run rel_3_0/koha/updater/updater/updatedatabase
3.setup zebra
http://wiki.koha.org/doku.php?id=installingzebraplugin226
http://wiki.koha.org/doku.php?id=faqzebra
zebra.cfg
http://kohaa.blogspot.com/2007/02/zebracfg.html
PS. cvs dev_week
cp dev_week/koha/zebraplugin/zebradb/biblios/tab/* to your zebra/etc/*
4.cvs koha rel_3_0
cp /opac/*.pl -> /opac/cgi-bin/
http://kohataiwan.googlegroups.com/web/prog_opac_zh_TW.po
http://koha.wikispaces.com/chinesenization
5.export nkes marc iso2709
6.Must have zebra.cfg config directory(zebra-XXX.cfg
use -c parameter)
copy zebrapl
zebra init
zebra create biblios(databaename see your koha.xml)
zebra -g iso2709 -d biblios(databaename see your koha.xml) update
iso2709.marc(marc data) -n
zebra -f /etc/koha.xml
koha.xml(see rel_3_0 /misc/koha.xml)
7.modify koha-httpd.conf
opac
chanage SetEnv KOHA_CONF /etc/koha.xml
and restart apache
--------------------------------------------------------------------
chanage systempreferences
opacthemes => prog
lang =>zh_TW
opacstylesheet => /opac-tmpl/prog/zh_TW/includes/opac.css
marcflavour => unimarc check your marc type
PS.MARCXML /misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl
you use unimarc must modify scipt,marc21 don't modify
=> marcxml parser problem
see http://www.indexdata.com/zebra/doc/
2.cp nkes Koha => your Koha
and run rel_3_0/koha/updater/updater/updatedatabase
3.setup zebra
http://wiki.koha.org/doku.php?id=installingzebraplugin226
http://wiki.koha.org/doku.php?id=faqzebra
zebra.cfg
http://kohaa.blogspot.com/2007/02/zebracfg.html
PS. cvs dev_week
cp dev_week/koha/zebraplugin/zebradb/biblios/tab/* to your zebra/etc/*
4.cvs koha rel_3_0
cp /opac/*.pl -> /opac/cgi-bin/
http://kohataiwan.googlegroups.com/web/prog_opac_zh_TW.po
http://koha.wikispaces.com/chinesenization
5.export nkes marc iso2709
6.Must have zebra.cfg config directory(zebra-XXX.cfg
use -c parameter)
copy zebrapl
zebra init
zebra create biblios(databaename see your koha.xml)
zebra -g iso2709 -d biblios(databaename see your koha.xml) update
iso2709.marc(marc data) -n
zebra -f /etc/koha.xml
koha.xml(see rel_3_0 /misc/koha.xml)
7.modify koha-httpd.conf
opac
chanage SetEnv KOHA_CONF /etc/koha.xml
and restart apache
--------------------------------------------------------------------
chanage systempreferences
opacthemes => prog
lang =>zh_TW
opacstylesheet => /opac-tmpl/prog/zh_TW/includes/opac.css
marcflavour => unimarc check your marc type
PS.MARCXML /misc/migration_tools/22_to_30/move_marc_to_biblioitems.pl
you use unimarc must modify scipt,marc21 don't modify
=> marcxml parser problem
see http://www.indexdata.com/zebra/doc/
星期三, 2月 28, 2007
星期五, 2月 16, 2007
zebra command
1. zebraidx init
2. zebraidx create database
3. zebraidx -g iso2709 -d databae update /path/to/marc -n
4. zebraidx commit
5. zebrasrv @:2100
2. zebraidx create database
3. zebraidx -g iso2709 -d databae update /path/to/marc -n
4. zebraidx commit
5. zebrasrv @:2100
nkes
[nkes]Record type: USmarc
00691cam 2200229 4500
010 0 $a 957-754-154-2 $b 精裝
090 $9 1019 $a 1019
100 $a 20020412d1995 m y0chiy09 e.
101 0 $a chi
102 $a TW
105 $a y z 000fd.
200 1 $a 木魚石 $e 嘉慶皇帝傳奇 $f 林鐵均著.
205 $a 初版.
210 $a 臺北市 $c 國際村出版 $a 板橋市 $c 錦德發行 $d 1995[民84]
215 0 $a 217面 $d 22公分.
225 2 $a 清帝傳奇 $v 11.
606 $a 中國
700 1 $a 李
801 $a TW $b nges $g CCR $m 4
805 $a nges $d 627 $e 3024 $y v.7 $t CCL $v 增訂七版
990 $a BOOK
995 $b nges $c nges $e 中文書庫 $f A01139 $j A01139 $k 627 3024 v.7 $m 20060624 $o 0 $9 1313
--------------------------------------------------------------------------
00691cam 2200229 4500
010 0 $a 957-754-154-2 $b 精裝
090 $9 1019 $a 1019
100 $a 20020412d1995 m y0chiy09 e.
101 0 $a chi
102 $a TW
105 $a y z 000fd.
200 1 $a 木魚石 $e 嘉慶皇帝傳奇 $f 林鐵均著.
205 $a 初版.
210 $a 臺北市 $c 國際村出版 $a 板橋市 $c 錦德發行 $d 1995[民84]
215 0 $a 217面 $d 22公分.
225 2 $a 清帝傳奇 $v 11.
606 $a 中國
700 1 $a 李
801 $a TW $b nges $g CCR $m 4
805 $a nges $d 627 $e 3024 $y v.7 $t CCL $v 增訂七版
990 $a BOOK
995 $b nges $c nges $e 中文書庫 $f A01139 $j A01139 $k 627 3024 v.7 $m 20060624 $o 0 $9 1313
--------------------------------------------------------------------------
GRS-1
[demo]Record type: GRS-1
(3,001) 101445213
(3,010)
(3,0 )
(3,b) 平裝
(3,d) 人民幣2.35元
(3,050)
(3, )
(3,a) 101445213
(3,100)
(3, )
(3,a) 20030718d1986 k y0chib09 e
(3,101)
(3,0 )
(3,a) chi
(3,102)
(3, )
(3,a) cn
(3,105)
(3, )
(3,a) a a 000yy
(3,200)
(3,1 )
(3,a) 系統辨識導論
(3,f) 徐南榮著
(3,205)
(3, )
(3,a) 第1版
(3,210)
(3, )
(3,a) 北京市
(3,c) 電子工業出版社
(3,d) 1986
(3,215)
(3,0 )
(3,a) 212面
(3,c) 圖
(3,d) 26公分
(3,300)
(3, )
(3,a) 簡體字本
(3,300)
(3, )
(3,a) 高等學校教材
(3,320)
(3, )
(3,a) 含參考書目
(3,517)
(3,1 )
(3,a) 系统辨识导论
(3,z) chi
(3,606)
(3, )
(3,2) csh
(3,a) 科學
(3,x) 哲學, 原理
(3,681)
(3, )
(3,a) 301
(3,b) 8556
(3,v) 增訂七版
(3,700)
(3, 1)
(3,a) 徐
(3,b) 南榮
(3,801)
(3, 0)
(3,a) cw
(3,b) 國圖
(3,c) 20060301
(3,g) CCR
(3,801)
(3, 1)
(3,a) cw
(3,b) 國圖
(3,c) 20060301
(3,g) CCR
(3,001) 101445213
(3,010)
(3,0 )
(3,b) 平裝
(3,d) 人民幣2.35元
(3,050)
(3, )
(3,a) 101445213
(3,100)
(3, )
(3,a) 20030718d1986 k y0chib09 e
(3,101)
(3,0 )
(3,a) chi
(3,102)
(3, )
(3,a) cn
(3,105)
(3, )
(3,a) a a 000yy
(3,200)
(3,1 )
(3,a) 系統辨識導論
(3,f) 徐南榮著
(3,205)
(3, )
(3,a) 第1版
(3,210)
(3, )
(3,a) 北京市
(3,c) 電子工業出版社
(3,d) 1986
(3,215)
(3,0 )
(3,a) 212面
(3,c) 圖
(3,d) 26公分
(3,300)
(3, )
(3,a) 簡體字本
(3,300)
(3, )
(3,a) 高等學校教材
(3,320)
(3, )
(3,a) 含參考書目
(3,517)
(3,1 )
(3,a) 系统辨识导论
(3,z) chi
(3,606)
(3, )
(3,2) csh
(3,a) 科學
(3,x) 哲學, 原理
(3,681)
(3, )
(3,a) 301
(3,b) 8556
(3,v) 增訂七版
(3,700)
(3, 1)
(3,a) 徐
(3,b) 南榮
(3,801)
(3, 0)
(3,a) cw
(3,b) 國圖
(3,c) 20060301
(3,g) CCR
(3,801)
(3, 1)
(3,a) cw
(3,b) 國圖
(3,c) 20060301
(3,g) CCR
zebra.cfg
# Simple Zebra configuration file that defines
# a database with MARCXML records.
# $Id: zebra-biblios.cfg,v 1.1.2.2 2006/10/05 20:50:52 kados Exp $
#
# Where are the config files located?
modulePath:/usr/local/lib/idzebra-2.0/modules/
#profilePath:/usr/share/idzebra-2.0/tab/
profilePath:${srcdir:-.}:/home/laxendion/tools/cvs/dev_week/koha/zebraplugin/zebradb/biblios/tab/
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
iso2709.recordType: grs.marc.unimarc
recordType:grs.xml
#recordId: (bib1,Identifier-standard)
#recordId: (bib1,Local-number)
elm 001 local-number !
storeKeys:1
storeData:1
# Lock File Area
lockDir: /home/zebra/zebradb/biblios/lock
perm.anonymous:rw
#perm.kohaadmin:rw
#passw.kohalis
register: /home/zebra/zebradb/biblios/register:1G
shadow: /home/zebra/zebradb/biblios/shadow:1G
# Temp File area for result sets
setTmpDir: /home/zebra/zebradb/biblios/tmp
# Temp File area for index program
keyTmpDir: /home/zebra/zebradb/biblios/key
# Approx. Memory usage during indexing
memMax: 40M
# a database with MARCXML records.
# $Id: zebra-biblios.cfg,v 1.1.2.2 2006/10/05 20:50:52 kados Exp $
#
# Where are the config files located?
modulePath:/usr/local/lib/idzebra-2.0/modules/
#profilePath:/usr/share/idzebra-2.0/tab/
profilePath:${srcdir:-.}:/home/laxendion/tools/cvs/dev_week/koha/zebraplugin/zebradb/biblios/tab/
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
iso2709.recordType: grs.marc.unimarc
recordType:grs.xml
#recordId: (bib1,Identifier-standard)
#recordId: (bib1,Local-number)
elm 001 local-number !
storeKeys:1
storeData:1
# Lock File Area
lockDir: /home/zebra/zebradb/biblios/lock
perm.anonymous:rw
#perm.kohaadmin:rw
#passw.kohalis
register: /home/zebra/zebradb/biblios/register:1G
shadow: /home/zebra/zebradb/biblios/shadow:1G
# Temp File area for result sets
setTmpDir: /home/zebra/zebradb/biblios/tmp
# Temp File area for index program
keyTmpDir: /home/zebra/zebradb/biblios/key
# Approx. Memory usage during indexing
memMax: 40M
zebra unimarc
[biblios]Record type: USmarc
00765nam0 2200253 4500
001 89017875
010 0 $a 957-33-1758-3 $b 平裝
090 $9 13 $a 13
100 $a 20001123d2000 k y0chiy09 e.
101 1 $a chi
102 $a US
105 $a a z 000ay.
200 1 $a 哈利波特 $e 消失的密室 $f J. K. 羅琳(J. K. Rowling)著 $g 彭倩文譯.
205 $a 初版.
210 $a 臺北市 $c 皇冠文化 $d 2000[民89]
215 0 $a 396面 $d 21公分.
225 1 $a 皇冠叢書 $v 第3063種.
225 1 $a Choice $v 36.
700 1 $a 羅林
702 1 $a 彭
801 0 $b lins $c 20010223 $g AACR
805 $f c33 $f c26.
990 $a BOOK
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 西文書庫 $f 2 $j 2 $k 2 $o 0 $9 10
--------------------------------------------------------------------
[biblios]Record type: USmarc
00631nam0 2200205 4500
010 0 $a 4335352514 $b 精裝
090 $9 23 $a 23
100 $a 20060526d2005 k y0chiy09 e
101 0 $a jpn
102 $a US
105 $a y z 000yy
200 1 $a 消費者契約の法理論 $f 後藤卷則著
205 $a 初版
210 $a 東京 $c 弘文堂 $d 2002[民91]
215 0 $a 370面 $d 22公分
606 $a 消費者保護
700 $a 後藤
801 0 $b lins $c 20060526 $g CCR
990 $a BOOK
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 西文書庫 $f 18 $j 18 $k 222 22 $m 20050311 $o 0 $9 20
-------------------------------------------------------------------------
[biblios]Record type: USmarc
00699cam0 2200229 4500
001 100141393
010 0 $b 平裝
090 $9 35 $a 35
100 $a 19890421d1984 k a0chib09 e
101 0 $a chi
102 $a US
105 $a a z 000yy
200 1 $a 最新臺灣公路指南 $f [南華出版社編輯部編]
210 $a 臺北市 $c 南華 $d 民73
215 0 $a 60面 $d 9 x 18公分
606 $a 公路
712 02 $a 南華出版社
801 0 $b lins $c 19970417 $g CCR
801 0 $b lins $c 19970417 $g CCR
801 0 $b lins $c 20060315 $g AACR
990 $a ????
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 中文書庫 $f 35 $j 35 $k 234 44 $m 20070125 $o 0 $9 32
------------------------------------------------------------------------
[biblios]Record type: USmarc
00680cem0 2200205 4500
001 101603678
010 0 $b 平裝
090 $9 60 $a 60
100 $a 20041105d1947 m y0chib09 e
101 0 $a chi $a eng
102 $a US
200 1 $a 最新省都觀光地圖 $d Sketch map of Taipei $f [臺灣旅行社編]
205 $a 第三版
210 $a [臺北市 $c 臺灣旅行社 $d 民36]
215 0 $a 1幅地圖 $d 印於79 x 53公分紙上
712 02 $a 臺灣旅行社
801 0 $b lins $c 20060411 $g CCR
801 0 $b lins $c 20060411 $g AACR
990 $a BOOK
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 中文書庫 $f 60 $j 60 $k 222 $m 20041109 $o 0 $9 57
00765nam0 2200253 4500
001 89017875
010 0 $a 957-33-1758-3 $b 平裝
090 $9 13 $a 13
100 $a 20001123d2000 k y0chiy09 e.
101 1 $a chi
102 $a US
105 $a a z 000ay.
200 1 $a 哈利波特 $e 消失的密室 $f J. K. 羅琳(J. K. Rowling)著 $g 彭倩文譯.
205 $a 初版.
210 $a 臺北市 $c 皇冠文化 $d 2000[民89]
215 0 $a 396面 $d 21公分.
225 1 $a 皇冠叢書 $v 第3063種.
225 1 $a Choice $v 36.
700 1 $a 羅林
702 1 $a 彭
801 0 $b lins $c 20010223 $g AACR
805 $f c33 $f c26.
990 $a BOOK
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 西文書庫 $f 2 $j 2 $k 2 $o 0 $9 10
--------------------------------------------------------------------
[biblios]Record type: USmarc
00631nam0 2200205 4500
010 0 $a 4335352514 $b 精裝
090 $9 23 $a 23
100 $a 20060526d2005 k y0chiy09 e
101 0 $a jpn
102 $a US
105 $a y z 000yy
200 1 $a 消費者契約の法理論 $f 後藤卷則著
205 $a 初版
210 $a 東京 $c 弘文堂 $d 2002[民91]
215 0 $a 370面 $d 22公分
606 $a 消費者保護
700 $a 後藤
801 0 $b lins $c 20060526 $g CCR
990 $a BOOK
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 西文書庫 $f 18 $j 18 $k 222 22 $m 20050311 $o 0 $9 20
-------------------------------------------------------------------------
[biblios]Record type: USmarc
00699cam0 2200229 4500
001 100141393
010 0 $b 平裝
090 $9 35 $a 35
100 $a 19890421d1984 k a0chib09 e
101 0 $a chi
102 $a US
105 $a a z 000yy
200 1 $a 最新臺灣公路指南 $f [南華出版社編輯部編]
210 $a 臺北市 $c 南華 $d 民73
215 0 $a 60面 $d 9 x 18公分
606 $a 公路
712 02 $a 南華出版社
801 0 $b lins $c 19970417 $g CCR
801 0 $b lins $c 19970417 $g CCR
801 0 $b lins $c 20060315 $g AACR
990 $a ????
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 中文書庫 $f 35 $j 35 $k 234 44 $m 20070125 $o 0 $9 32
------------------------------------------------------------------------
[biblios]Record type: USmarc
00680cem0 2200205 4500
001 101603678
010 0 $b 平裝
090 $9 60 $a 60
100 $a 20041105d1947 m y0chib09 e
101 0 $a chi $a eng
102 $a US
200 1 $a 最新省都觀光地圖 $d Sketch map of Taipei $f [臺灣旅行社編]
205 $a 第三版
210 $a [臺北市 $c 臺灣旅行社 $d 民36]
215 0 $a 1幅地圖 $d 印於79 x 53公分紙上
712 02 $a 臺灣旅行社
801 0 $b lins $c 20060411 $g CCR
801 0 $b lins $c 20060411 $g AACR
990 $a BOOK
995 $b 輔仁大學圖書資訊學系資訊組織 $c 輔仁大學圖書資訊學系資訊組織 $e 中文書庫 $f 60 $j 60 $k 222 $m 20041109 $o 0 $9 57
訂閱:
文章 (Atom)