Server-side Zotero translation using xpcshell
Currently supports import, export, and web translation
git clone --recursive https://github.com/zotero/translation-server
cd translation-server
./fetch_sdk
./build.sh
Run the server:
$ build/run_translation-server.sh
zotero(3)(+0000000): HTTP server listening on *:1969
Try a query!
$ curl -d '{"url":"http://www.tandfonline.com/doi/abs/10.1080/15424060903167229","sessionid":"abc123"}' \
--header "Content-Type: application/json" \
127.0.0.1:1969/web
docker build -t translation-server -f Dockerfile .docker run --rm -p 1969:1969 --name translation-server-container translation-serverSupported endpoints are: /web, /import, /export, and /refresh.
Read server_translation.js for more information.
Translates a web page
/webPOSTurl and a random sessionidcurl -X POST --header 'Content-Type: application/json' -d '{
"url": "http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1664470",
"sessionid": "abc123"
}' 'http://localhost:1969/web'
Converts input in any format Zotero can import (RIS, BibTeX, etc.) to items in Zotero API JSON format
/importPOSTcurl -X POST -d 'TY - JOUR
TI - Die Grundlage der allgemeinen Relativitätstheorie
AU - Einstein, Albert
PY - 1916
SP - 769
EP - 822
JO - Annalen der Physik
VL - 49
ER -' 'http://localhost:1969/import'
Converts items in Zotero API JSON format to a supported export format (RIS, BibTeX, etc.)
/exportPOSTformat, which must be a supported export formatTo run the tests, go to the translation-server directory and run:
./build/run_translation-server.sh -test /path/to/file/output.JSON
Content type
Image
Digest
Size
137 MB
Last updated
about 10 years ago
docker pull kbai/zts