perlcompile
http://perldoc.perl.org/perlcompile.html
星期四, 9月 27, 2007
星期四, 9月 13, 2007
Zebra Configuration
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.
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.
星期日, 9月 02, 2007
Slides from conference presentations
Scaling MySQL and PHP by Jeremy Zawodny, presented at the 2002 PHP Conference
http://jeremy.zawodny.com/mysql/scaling-mysql-and-php.html
Managing MySQL Replication by Jeremy Zawodny, presented at the 2002 O'Reilly Open Source Conference
http://jeremy.zawodny.com/mysql/managing-mysql-replication.html
MySQL Backup and Recovery by Jeremy Zawodny, presented at the 2002 O'Reilly Open Source Conference
http://jeremy.zawodny.com/mysql/mysql-backup-and-recovery.html
MySQL Optimization by Jeremy Zawodny, presented at the 2002 O'Reilly Open Source Conference
http://jeremy.zawodny.com/mysql/mysql-optimization.html
http://jeremy.zawodny.com/mysql/scaling-mysql-and-php.html
Managing MySQL Replication by Jeremy Zawodny, presented at the 2002 O'Reilly Open Source Conference
http://jeremy.zawodny.com/mysql/managing-mysql-replication.html
MySQL Backup and Recovery by Jeremy Zawodny, presented at the 2002 O'Reilly Open Source Conference
http://jeremy.zawodny.com/mysql/mysql-backup-and-recovery.html
MySQL Optimization by Jeremy Zawodny, presented at the 2002 O'Reilly Open Source Conference
http://jeremy.zawodny.com/mysql/mysql-optimization.html
MySQL Cluster
MySQL Cluster: Two webserver setup
http://dev.mysql.com/tech-resources/articles/mysql-cluster-for-two-servers.html
Advanced MySQL Replication Techniques
http://dev.mysql.com/tech-resources/articles/advanced-mysql-replication.html
Chapter 16. MySQL Cluster
http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster.html
Getting started with MySQL Proxy
http://dev.mysql.com/tech-resources/articles/proxy-gettingstarted.html
A.14.4. DRBD and MySQL Replication
http://dev.mysql.com/doc/refman/5.1/en/drbd-virtualization.html
http://dev.mysql.com/tech-resources/articles/mysql-cluster-for-two-servers.html
Advanced MySQL Replication Techniques
http://dev.mysql.com/tech-resources/articles/advanced-mysql-replication.html
Chapter 16. MySQL Cluster
http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster.html
Getting started with MySQL Proxy
http://dev.mysql.com/tech-resources/articles/proxy-gettingstarted.html
A.14.4. DRBD and MySQL Replication
http://dev.mysql.com/doc/refman/5.1/en/drbd-virtualization.html
星期五, 8月 31, 2007
星期四, 8月 30, 2007
package
cpan -i Bundle::KohaSupport Unicode::String Encode::HanExtra XML::SAX Class::Accessor Business::ISBN PDF::API2 MARC::Record MARC::File::XML XML::Simple Date::Calc GD::Barcode Data::Random PDF::Reuse::Barcode Text::Wrap Text::Trim LWP::Simple MARC::Charset Net::LDAP ZOOM
apt-get install -y mysql-server-4.1 php4 libapache2-mod-auth-mysql php4-mysql phpmyadmin libxml2-dev libssl-dev libwrap0-dev libdate-manip-perl libhtml-template-perl libmail-sendmail-perl make gcc lynx wget ncftp unzip libssl0.9.7 libxslt1-dev libyaz3 yaz libyaz libyaz-dev yaz-doc libgcrypt11-dev
DBD
libmysqlclient14 libmysqlclient14-dev
apt-get install -y mysql-server-4.1 php4 libapache2-mod-auth-mysql php4-mysql phpmyadmin libxml2-dev libssl-dev libwrap0-dev libdate-manip-perl libhtml-template-perl libmail-sendmail-perl make gcc lynx wget ncftp unzip libssl0.9.7 libxslt1-dev libyaz3 yaz libyaz libyaz-dev yaz-doc libgcrypt11-dev
DBD
libmysqlclient14 libmysqlclient14-dev
星期日, 8月 26, 2007
koha 2.2.9 for ubuntu 6.10 中文版釋出公告
本版本釋出遵從 GNU GPL 授權
一共分成兩種版本
1.簡單 CMARC
http://groups.google.com.tw/group/kohataiwan/web/koha-2.2.9-simple.tar.gz
2.完整 CMARC(thomas 提供)
http://groups.google.com.tw/group/kohataiwan/web/koha-2.2.9-full.tar.gz
系統環境為 ubuntu 6.10
網頁伺服器 apache2.0.55-4ubuntu4
perl 5.8.8-6
mysql 4.1.15-1ubuntu5
關於 mysql-5.0 支援 foreign key,所以很多程式
需要重新改寫,才能正常使用。
修正 OPAC
1.左邊導覽列
2.查詢切截功能
3.css 功能
修正 Intranet
1.z3950 檢索功能
2.補齊 CMRAC 功能
3.指標功能中文化
4.系統參數中文化
5.權限參數中文化
6.修正 Encode::HanExtra(cccii.ucm)感謝唐鳳
其餘
1.修正 ubuntu package
2.修正 perl Modules
3.修正 install 相關程式
4.sources.lst
ps. 如果有 proxy,安裝前請先設定
export http_proxy="http://yourproxy:3128"
demo site:天主教輔仁大學圖書資訊學系系館
http://koha.lins.fju.edu.tw
若有任何 bug 請 e-mail kohataiwan@googlegroups.com
一共分成兩種版本
1.簡單 CMARC
http://groups.google.com.tw/group/kohataiwan/web/koha-2.2.9-simple.tar.gz
2.完整 CMARC(thomas 提供)
http://groups.google.com.tw/group/kohataiwan/web/koha-2.2.9-full.tar.gz
系統環境為 ubuntu 6.10
網頁伺服器 apache2.0.55-4ubuntu4
perl 5.8.8-6
mysql 4.1.15-1ubuntu5
關於 mysql-5.0 支援 foreign key,所以很多程式
需要重新改寫,才能正常使用。
修正 OPAC
1.左邊導覽列
2.查詢切截功能
3.css 功能
修正 Intranet
1.z3950 檢索功能
2.補齊 CMRAC 功能
3.指標功能中文化
4.系統參數中文化
5.權限參數中文化
6.修正 Encode::HanExtra(cccii.ucm)感謝唐鳳
其餘
1.修正 ubuntu package
2.修正 perl Modules
3.修正 install 相關程式
4.sources.lst
ps. 如果有 proxy,安裝前請先設定
export http_proxy="http://yourproxy:3128"
demo site:天主教輔仁大學圖書資訊學系系館
http://koha.lins.fju.edu.tw
若有任何 bug 請 e-mail kohataiwan@googlegroups.com
星期六, 8月 25, 2007
koha 2.2.9 for ubuntu package
finish
installer.pl
Install.pm
sources.list
CGI.pm
1. modify z3950 search
2. modify leader editor & inc
3. config cmarc
4. export mysql
installer.pl
Install.pm
sources.list
CGI.pm
1. modify z3950 search
2. modify leader editor & inc
3. config cmarc
4. export mysql
apt sources.lst
deb http://free.nchc.org.tw/ubuntu edgy main restricted universe multiverse
deb http://ftp.indexdata.dk/debian indexdata/sarge released
deb-src http://ftp.indexdata.dk/debian indexdata/sarge released
deb http://ftp.indexdata.dk/debian indexdata/sarge released
deb-src http://ftp.indexdata.dk/debian indexdata/sarge released
星期四, 8月 23, 2007
KinoSearch
KinoSearch
http://www.rectangular.com/kinosearch
KinoSearch Documentation
http://www.rectangular.com/kinosearch/docs/devel/
Benchmarks
http://www.rectangular.com/kinosearch/benchmarks.html
KinoSearch Wiki
http://www.rectangular.com/kinosearch/wiki/
Presentations
http://www.rectangular.com/downloads/KinoSearch_OSCON2006.pdf
http://www.rectangular.com/kinosearch
KinoSearch Documentation
http://www.rectangular.com/kinosearch/docs/devel/
Benchmarks
http://www.rectangular.com/kinosearch/benchmarks.html
KinoSearch Wiki
http://www.rectangular.com/kinosearch/wiki/
Presentations
http://www.rectangular.com/downloads/KinoSearch_OSCON2006.pdf
星期三, 8月 22, 2007
package koha229 for ubuntu 6.10 (cmarc)
1.install koha229 for ubuntu 6.10
2.import cmarc & setup config
3.modify perl script for chinese
4.test koha & modify install.pm
5.release chinese notes
6.package koha
2.import cmarc & setup config
3.modify perl script for chinese
4.test koha & modify install.pm
5.release chinese notes
6.package koha
星期二, 8月 21, 2007
Encode::HanExtra
update Encode::HanExtra
split.pl
open(CCCII, "/home/laxendion/tools/UNI_CI_V3.txt");
open(NEW,"> /home/laxendion/tools/UNI.txt");
foreach (){
($Uni,$Cii,$other) = split (/,/,$_);
$Uni =~ /(\d)(\w)(\w)(\w)(\w)/g;
if ($1 == 0){
$Uni = "";
$Cii =~ s/(\w\w)(\w\w)(\w\w)/\\x$1\\x$2\\x$3/g;
$other = "|0";
print NEW "$Uni $Cii $other\n";
}
elsif ($1 == 2){
$Uni = "";
$Cii =~ s/(\w\w)(\w\w)(\w\w)/\\x$1\\x$2\\x$3/g;
$other = "|0";
print NEW "$Uni $Cii $other\n";
}
}
close(CCCII);
close(NEW);
send to 唐鳳
cccii.ucm
http://kohataiwan.googlegroups.com/web/cccii.ucm
split.pl
open(CCCII, "/home/laxendion/tools/UNI_CI_V3.txt");
open(NEW,"> /home/laxendion/tools/UNI.txt");
foreach (
($Uni,$Cii,$other) = split (/,/,$_);
$Uni =~ /(\d)(\w)(\w)(\w)(\w)/g;
if ($1 == 0){
$Uni = "";
$Cii =~ s/(\w\w)(\w\w)(\w\w)/\\x$1\\x$2\\x$3/g;
$other = "|0";
print NEW "$Uni $Cii $other\n";
}
elsif ($1 == 2){
$Uni = "";
$Cii =~ s/(\w\w)(\w\w)(\w\w)/\\x$1\\x$2\\x$3/g;
$other = "|0";
print NEW "$Uni $Cii $other\n";
}
}
close(CCCII);
close(NEW);
send to 唐鳳
cccii.ucm
http://kohataiwan.googlegroups.com/web/cccii.ucm
星期二, 8月 14, 2007
koha 2.2.9 modify
1.修正 z3950 cccii
delete /scripts/z3950daemon/*
stop z3950-daemon-launch.sh
/intranet/cgi-bin/z3950/search.pl
2.修正
authorised_values.sql
marc_subfield_structure.sql
marc_tag_structure.sql
http://groups.google.com.tw/group/kohataiwan/files?hl=zh-TW
http://140.136.153.210/cgi-bin/koha/opac-main.pl
delete /scripts/z3950daemon/*
stop z3950-daemon-launch.sh
/intranet/cgi-bin/z3950/search.pl
2.修正
authorised_values.sql
marc_subfield_structure.sql
marc_tag_structure.sql
http://groups.google.com.tw/group/kohataiwan/files?hl=zh-TW
http://140.136.153.210/cgi-bin/koha/opac-main.pl
星期一, 8月 13, 2007
星期一, 7月 30, 2007
星期一, 7月 23, 2007
Z39.50 use ZOOM convert cccii to utf8
Z39.50 use ZOOM convert cccii to utf8
http://koha.wikispaces.com/zoom
http://koha.wikispaces.com/zoom
星期日, 7月 22, 2007
koha228 modules
apt-get install -y mysql-server-4.1 php4 libapache2-mod-auth-mysql php4-mysql phpmyadmin libxml2-dev libssl-dev libwrap-dev libdate-manip-perl libhtml-template-perl libmail-sendmail-perl make gcc lynx wget ncftp unzip
apt-get install libssl0.9.7 libxslt1-dev libyaz libyaz-dev libyaz3 yaz yaz-doc
libgcrypt11-dev
cpan -i Bundle::KohaSupport Unicode::String Encode::HanExtra XML::SAX Class::Accessor Business::ISBN Net::LDAP PDF::API2 MARC::Record MARC::File::XML XML::Simple Date::Calc
ZOOM GD::Barcode Data::Random PDF::Reuse::Barcode Net::LDAP
apt-get install libssl0.9.7 libxslt1-dev libyaz libyaz-dev libyaz3 yaz yaz-doc
libgcrypt11-dev
cpan -i Bundle::KohaSupport Unicode::String Encode::HanExtra XML::SAX Class::Accessor Business::ISBN Net::LDAP PDF::API2 MARC::Record MARC::File::XML XML::Simple Date::Calc
ZOOM GD::Barcode Data::Random PDF::Reuse::Barcode Net::LDAP
星期四, 7月 19, 2007
koha 2.2.9 for ubuntu 6.10
modify /opac/temp/npl/includes/doc-head-close.inc
@import url();
change to
@import url(/includes/);
chanage z3950
npl/temp/z3950/searchresult.tmpl
to
default/temp/z3950/searchresult.tmpl
@import url();
change to
@import url(/includes/);
chanage z3950
npl/temp/z3950/searchresult.tmpl
to
default/temp/z3950/searchresult.tmpl
星期六, 7月 07, 2007
Koha Revision Control (git)
訂閱:
文章 (Atom)