2016年11月27日 星期日

2016/11/28

koha

bug回報
bug回報的地方


framework
匯入rda framework
書目框架 MARC、RDA
>點進file下載
>匯入框架進koha的系統

2016年11月20日 星期日

2016/11/21

 https://sites.google.com/site/kohataiwan/
http://irspy.indexdata.com/find.html(Z39.50>看NBINet)

協助資訊組織課程:
1. 組頭及組員 1+5 或 1+6
2. 組頭, 抄錄編目一筆資料
2a. 設定 Z39.50, irspy.indexdata.com
2b. 主機 IP, 客戶端
2c. 匯出 MARC 格式
3. 組員
4. 原始編目
4a. Book Framwork

RDA instructions mapped to MARC data elements


>使用RDA編目
>使用Z39.50伺服器

>換成Debian,重新設定koha
帳號:學號
密碼:123456

組員林彥汝 405040099 (組長)鄧孟盈 405040037 陳沛萱 405040130 王如妤 405040233 林義傑 405040647 陳子芸 405040441


2016年11月14日 星期一

2016/11/14

在devian安裝koha
https://sites.google.com/site/kohataiwanlive/home/koha16-05-marc21


 步驟~~~~~~~~~~
設定網路
IP 140.136.153.58
DNS 140.136.200.8
關掉後再重開連線

使用USB3.0介面的SSD(固態硬碟)(比較快)

1.設定root密碼
sudo passwd root

進入root(pw:fjulins)
su root

2.編譯器、終端機(ter)
進入nano /etc/apt/sources.list 
在最下面加上deb http://debian.koha-community.org/koha stable main

3.加入key
wget -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add -
更新套件
apt-get update
apt-get upgrade

4.安裝koha套件
apt-get install koha-common 

5.編輯koha網站設定
/etc/koha/koha-sites.conf 
nano /etc/koha/koha-sites.conf
DOMAIN=".myDNSname.org"
INTRAPORT="8080" 館員介面改成8080(原本是80)

## Zebra global configuration variables
#
# ZEBRA_MARC_FORMAT: 'marc21' | 'normarc' | 'unimarc' <不用改(選用標準)
# Specifies the MARC records format for indexing
# default: 'marc21'
 ZEBRA_MARC_FORMAT="marc21" 

6.安裝mysql
 apt-get install mysql-server
 /etc/init.d/mysql start
 mysql -u root -p
建立koha資料庫
create database koha;
建立koha帳號
grant all on *.* to 'koha'@'localhost' identified by '密碼';
exit

7.apache(網站伺服器)
a2enmod rewrite
a2enmod cgi
service apache2 restart  

8.建立koha site
koha-create --create-db koha 網站名稱

9.修改apache site
a2ensite koha.conf
a2dissite 000-default
nano /etc/apache2/ports.conf 
Listen 80
Listen 8080(讓外面可通過這兩個管道使用)
apache2ctl restart

10.修改conf密碼(換成剛剛設定的koha帳號密碼)
 /etc/koha/sites/koha/koha-conf.xml  

database ~~~
user ~~~
<pass>~~~

=
進網站~koha
=
1.登入koha
About Koha 查看版本資訊


2.Koha
About Koha
Perl Modules 確認模組


3.把舊版或未安裝的perl模組補上
apt-get install make g++
cpan Exception::Class  HTTPD::Bench::ApacheBench Readonly::XS Test::WWW::Mechanize Test::DBIx::Class WWW::YouTube::Download

錯誤bug
Readonly::XS已安裝 但在koha模組仍然顯示未安裝 相關maillist
cpan Readonly::XS
Reading '/root/.cpan/Metadata'
 Database was generated on Wed, 27 Jul 2016 00:41:02 GMT
Readonly::XS is up to date (1.05).

4.安裝中文語系
koha-translate --list --available 查看koha有的語系
koha-translate --install zh-Hans-CN
koha-translate --install zh-Hans-TW
administration->Global system preferences->I18N/L10N preferences->
language要的打勾
opaclanguages要的打勾
opaclanguagesdisplay allow
儲存後F5

5.修改zebra 能查詢中文 使用ICU
nano /etc/koha/zebradb/etc/default.idx

# 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
alwaysmatches 1
firstinfield 1
#charmap word-phrase-utf.chr 註解這行
icuchain words-icu.xml 加上這行
# 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
firstinfield 1
#charmap word-phrase-utf.chr 註解這行
icuchain words-icu.xml 加上這行

6.執行索引
koha-rebuild-zebra -v -f koha   圖書館名稱

7.設定排程

sudo crontab -e

nano
*/20 * * * * /etc/cron.daily/koha-common
*/1 * * * * koha-rebuild-zebra -f -v --force koha 
(讓圖書館找的到輸入的資料) =============
最後兩點還好