7 月 25
joechenAlfresco, 未分類 alfresco
檔名: cn2tw-bat.sh
#/bin/bash
# check i18n files
files=`sudo find ./ -name *zh_CN.properties`
for file in $files;
do
sudo cn2tw.sh $file;
done
# check js files
jsfiles=`sudo find ./ -name *zh_CN.js`
for file in $jsfiles;
do
sudo cn2tw.sh $file;
done
# modify files with bad translation
sudo /usr/bin/cn2tw-lang.sh
# check files needs to be modified
echo "-------------------------------------------"
echo "如有檔案被列出, 請修改裡面的 zh_CN 為 zh_TW"
grep zh_CN `find ./ -name *zh_TW*`
cd /opt/alfresco-community
pwd
sed -i 's/zh_CN/zh_TW/g' ./tomcat/webapps/share/modules/editors/tinymce/langs/zh_TW.js
# restart Alfresco
#echo ""
#echo "------------------------------------------"
echo "Remember to restart Alfresco services"
#service alfresco restart
————————————————————
檔名:cn2tw.sh
#!/bin/bash
#echo "############## 處理編碼 ############"
echo "正在處理 $1"
#echo "已把 $1 轉換為 UTF-8 格式"
native2ascii -reverse "$1" "$1_utf8_cn"
#echo "轉換 $1.utf8_cn 為正體中文,並刪除 $1.utf8_cn "
cconv -f UTF8-CN -t UTF8-TW "$1_utf8_cn" -o "$1_utf8_tw"
rm "$1_utf8_cn"
#echo "轉換 $1.utf8_tw 為unicode, 並刪除 $1.utf8_tw"
native2ascii "$1_utf8_tw" "$1_uni_tw"
rm "$1_utf8_tw"
#echo "############# 處理檔名 ###########"
#echo "更改 $1_uni_tw 的檔名為 zh_TW, 並檢視檔名 "
rename -f 's/zh_CN/zh_TW/' "$1_uni_tw" > filename.txt
uni_tw_filename=`awk '{printf $4}' filename.txt`
echo "$uni_tw_filename"
#rm filename.txt
#echo "修改檔名為 zh_TW, 且無 _uni_tw "
chmod 644 $uni_tw_filename
#chmod 644 $1_uni_tw
echo "$uni_tw_filename"
rename -f 's/_uni_tw//' $uni_tw_filename
#echo "$uni_tw_filename done"
echo "$1 done"
7 月 20
joechenAlfresco, 未分類 alfresco
REF: http://docs.alfresco.com/5.1/tasks/mimetype-add.html
以新增 python 檔案為例
sudo vim /opt/alfresco-community/tomcat/shared/classes/alfresco/extension/mimetype/mimetypes-extension-map.xml
加入以下內容, 把原本的範例註解起來
並且加入以下設定
py
重啟 Alfresco 即可
或 /etc/init.d/alfresco restart
7 月 11
joechenAlfresco, 未分類 alfresco
http://docs.alfresco.com/community/concepts/dev-extensions-modules-management-tool.html
要看好 AMP 是針對哪個WAR進行更新, 錯了就不會出現
—-
另一種方法
把 amp 檔案, 放到相對應的路徑
ex: /opt/alfresco/amps 或 /opt/alfersco/amps_share
再執行 /opt/alfresco/bin/apply_amps.sh
— updated : 2017/07/21 —
cd /opt/alfresco-community/
java -jar ./bin/alfresco-mmt.jar list /opt/alfresco-community/tomcat/webapps/alfresco/
service alfresco stop
cd /opt/alfresco-community/
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Share /opt/alfresco-community/tomcat/webapps/share
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Share /opt/alfresco-community/tomcat/webapps/share.war
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Repository /opt/alfresco-community/tomcat/webapps/alfresco
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Repository /opt/alfresco-community/tomcat/webapps/alfresco.war
java -jar ./bin/alfresco-mmt.jar install /tmp/AAAR-Alfresco-CE-v5.1-Repository-v4.5.amp /opt/alfresco-community/tomcat/webapps/alfresco
java -jar ./bin/alfresco-mmt.jar install /tmp/AAAR-Alfresco-CE-v5.1-Repository-v4.5.amp /opt/alfresco-community/tomcat/webapps/alfresco.war
java -jar ./bin/alfresco-mmt.jar install /tmp/AAAR-Alfresco-CE-v5.1-Share-v4.5.amp /opt/alfresco-community/tomcat/webapps/share
java -jar ./bin/alfresco-mmt.jar install /tmp/AAAR-Alfresco-CE-v5.1-Share-v4.5.amp /opt/alfresco-community/tomcat/webapps/share.war
service alfresco start
— update 2017-09-19
service alfresco stop
cd /opt/alfresco-community/
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Share /opt/alfresco-community/tomcat/webapps/share
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Share /opt/alfresco-community/tomcat/webapps/share.war
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Repository /opt/alfresco-community/tomcat/webapps/alfresco
java -jar ./bin/alfresco-mmt.jar uninstall AAAR-Alfresco-CE-v5.1-Repository /opt/alfresco-community/tomcat/webapps/alfresco.war
java -jar ./bin/alfresco-mmt.jar install /opt/alfresco-community/amps/AAAR-Alfresco-CE-v5.2-Repository-v4.5.amp /opt/alfresco-community/tomcat/webapps/alfresco
java -jar ./bin/alfresco-mmt.jar install /opt/alfresco-community/amps/AAAR-Alfresco-CE-v5.2-Repository-v4.5.amp /opt/alfresco-community/tomcat/webapps/alfresco.war
java -jar ./bin/alfresco-mmt.jar install /opt/alfresco-community/amps_share/AAAR-Alfresco-CE-v5.2-Share-v4.5.amp /opt/alfresco-community/tomcat/webapps/share
java -jar ./bin/alfresco-mmt.jar install /opt/alfresco-community/amps_share/AAAR-Alfresco-CE-v5.2-Share-v4.5.amp /opt/alfresco-community/tomcat/webapps/share.war
service alfresco start
7 月 11
joechenAlfresco, 未分類 AAAR, alfresco
reset password
https://addons.alfresco.com/addons/alfresco-login-reset-password
Custom Alfresco Share header
https://addons.alfresco.com/addons/custom-alfresco-share-header
Permission Label for Share – Increase Alfresco User Engagement (要錢)
https://addons.alfresco.com/addons/permission-label-share-increase-alfresco-user-engagement
ECM Navigator (看資料夾)
https://addons.alfresco.com/addons/ecm-navigator
外部使用者存取安全
https://addons.alfresco.com/addons/sharebox-secure-external-sharing
(未確認) (要錢)
https://addons.alfresco.com/addons/formdocs-alfresco-formfactor
Alfresco Audit Analysis and Reporting (A.A.A.R.), 須另安裝Pentaho Data Integration
https://addons.alfresco.com/addons/alfresco-audit-analysis-and-reporting-aaar
OCR
https://addons.alfresco.com/addons/alfresco-simple-ocr-action
7 月 04
joechenAlfresco, 未分類 alfresco
在/opt/alfresco-community/tomcat/webapps/share/modules/editors/tinymce/langs
新增一組 zh_TW.js
並進行 unicode 轉換文件內的編碼
並將 zh_CN 變更為 zh_TW 即可
不用重載 alfresco, 即可立即套用
5 月 25
joechenAlfresco, 未分類 alfresco
[搜尋]
Alfresco: 關鍵字, 可以是短詞, 基於 Apache Lucene
Qsirch: 連續字元會被個別拆開去搜尋, 如: 賈伯斯 = 賈 or 伯 or 斯
差別: 如果有文件有單一字符合, 就會被列出來, Qsirch精準度較低
[上傳]
Alfresco: App / 網頁介面拖拉 / 網路芳鄰均可
Qsirch: 網路芳鄰可以, 網頁介面拖拉
差別: 無特別差異
[預覽]
Alfresco: 常見格式
Qsirch: 下載後觀看
[版本管理]
Alfresco: 有
Qsirch: 非 Qsirch 相關功能, 不應比較
[搜尋紀錄]
Alfresco:
Qsirch: 有
[指定搜尋]
Alfresco: 可指定格式, 但要到進階搜尋
Qsirch: 有, 已預分類格式(文件, 圖片…)
5 月 24
joechenAlfresco, 未分類 alfresco
檔名: cn2tw-lang.sh
#!/bin/bash
cd /opt/alfresco-community/
# 剛纔 -> 剛才
sed -i 's/\\u525b\\u7e94/\\u525b\\u624d/g' `find ./ -name *zh_TW.properties`
# 文檔 -> 檔案
sed -i 's/\\u6587\\u6a94/\\u6a94\\u6848/g' `find ./ -name *zh_TW.properties`
# 註銷 -> 登出
sed -i 's/\\u8a3b\\u92b7/\\u767b\\u51fa/g' `find ./ -name *zh_TW.properties`
# 站點 -> 站台
sed -i 's/\\u7ad9\\u9ede/\\u7ad9\\u53f0/g' `find ./ -name *zh_TW.properties`
# 數據 -> 資料
sed -i 's/\\u6578\\u64da/\\u8cc7\\u6599/g' `find ./ -name *zh_TW.properties`
# 創建 -> 新增
sed -i 's/\\u5275\\u5efa/\\u65b0\\u589e/g' `find ./ -name *zh_TW.properties`
# 存儲庫 -> 資源庫
sed -i 's/\\u5b58\\u5132\\u5eab/\\u8cc7\\u6e90\\u5eab/g' `find ./ -name *.properties`
================================================
以下是未調整前的紀錄資料
================================================
剛纔 \u525b\u7e94
剛才 \u525b\u624d
可利用 sed -i ‘s/u7e94/u624d/g’ `find ./ -name *.properties`
修改後, 要 service alfresco restart
頁面才會正常顯示(應是cache影響)
====================================
如有多字連續, 則會需要跳脫字元
文檔 \u6587\u6a94
文件 \u6587\u4ef6
cd /opt/alfresco-community/
sed -i ‘s/\\u6587\\u6a94/\\u6587\\u4ef6/g’ `find ./ -name *.properties`
==================
註銷 \u8a3b\u92b7
登出 \u767b\u51fa
cd /opt/alfresco-community/
sed -i ‘s/\\u8a3b\\u92b7/\\u767b\\u51fa/g’ `find ./ -name *.properties`
Older Entries Newer Entries