匯入讀者資料

35 views
Skip to first unread message

毛慶禎

unread,
Jun 24, 2009, 8:53:58 PM6/24/09
to kohat...@googlegroups.com, 小四, Nicki C
參考英文手冊
http://koha.org/documentation/manual/3.0/tools/patron-import

匯入讀者資料

1. 先準備csv檔, 依序備有下列的欄位

'cardnumber', 'surname', 'firstname', 'title', 'othernames',
'initials', 'streetnumber', 'streettype', 'address', 'address2',
'city', 'zipcode', 'email', 'phone', 'mobile', 'fax', 'emailpro',
'phonepro', 'B_streetnumber', 'B_streettype', 'B_address', 'B_city',
'B_zipcode', 'B_email', 'B_phone', 'dateofbirth', 'branchcode',
'categorycode', 'dateenrolled', 'dateexpiry', 'gonenoaddress', 'lost',
'debarred', 'contactname', 'contactfirstname', 'contacttitle',
'borrowernotes', 'relationship', 'ethnicity', 'ethnotes', 'sex',
'userid', 'opacnote', 'contactnote', 'password', 'sort1', 'sort2'

'branchcode'[分館代號] 如附檔 branchcode.png
'categorycode'[讀者類別代碼] 如附檔 categorycode.png
以上兩個參數,都是自行設定的

cardnumber [讀者號] 必須是唯一的,不能重複

至於匯出讀者資料,還在找尋中

> 另外隊長想請問老師關於koha系統讀者資料匯出的問題。
> 似乎沒有匯出的選項 請問該如何處理

--
Wishing you all the best. . . .


Anthony Mao

categorycode.png
branchcode.png

毛慶禎

unread,
Jun 24, 2009, 9:53:06 PM6/24/09
to kohat...@googlegroups.com, 小四, rongm...@gmail.com
哇! 怎麼辦呢?
猜想是你們的編碼沒有用到 UTF-8,
詳細情況,再請專家回覆

2009/6/25 小四 <aaa5...@hotmail.com>:
> 匯入資料的部份以解決,數字與英文部分皆可,但中文無法匯入
> 會變成空格。

Jiro

unread,
Jun 25, 2009, 2:28:10 AM6/25/09
to Koha 臺灣
Dear All:

我們之前匯入讀者檔時,因為都是使用英文所以沒有發現這部分的問題,
剛剛測試了一下發現直接使用中文匯入會無法顯示中文的文字,
必須先轉成UTF8後才會正常顯示,
步驟如下:
1.先將檔案存成CSV檔
2.利用記事本開啟轉成UTF8(附圖見以下網址)
http://sites.google.com/a/pychou.com/kohareport/Home/snapshot/KOHAUTF8.JPG?attredirects=0
3.再匯入Koha就可以正常顯示

Jiro

On 6月25日, 上午9時53分, 毛慶禎 <maol...@gmail.com> wrote:
> 哇! 怎麼辦呢?
> 猜想是你們的編碼沒有用到 UTF-8,
> 詳細情況,再請專家回覆
>

> 2009/6/25 小四 <aaa595...@hotmail.com>:

Yu-Chin Tsai

unread,
Jun 28, 2009, 11:16:53 PM6/28/09
to kohat...@googlegroups.com, 小四, rongm...@gmail.com
Linux 有一個指令可以轉換編碼
iconv -f big5 -t utf8 xxx.csv > nfile_file.csv

如果找不到匯出介面
可以直接匯出讀者資料表(印象中只有一個表格所以很簡單)
利用 phpmyadmin 可以匯出各種格式...

Thomas.

毛慶禎 wrote:
> 哇! 怎麼辦呢?
> 猜想是你們的編碼沒有用到 UTF-8,
> 詳細情況,再請專家回覆
>
> 2009/6/25 小四 <aaa5...@hotmail.com>:
>
>> 匯入資料的部份以解決,數字與英文部分皆可,但中文無法匯入
>> 會變成空格。
>>
>>
>
>
>

--
Thomas, 蔡育欽
國家高速網路與計算中心
格網技術組 專案助理研究員
thomas at nchc org tw
pub key 46379ACF
fingerprint = 7BB2 2103 CADC 59F6 11D5 BCB3 5E97 22B4 4637 9ACF

Reply all
Reply to author
Forward
0 new messages