How to use Zotero source ?
Dear,
I would like to use zotero inside a private network. For this I do:
1/ Get zotero source code
$ git clone --recursive git://github.com/zotero/zotero.git zotero
$ cd zotero
2/ pull each git submodule
$ git submodule foreach git pull origin master
3/ Install dependencies
$ npm install
4/ edit zotero configuration as the domain name:
$ cat <<'EOF'> resource/config.js
var ZOTERO_CONFIG = {
GUID: 'zotero@foo.fr',
ID: 'zotero', // used for db filename, etc.
CLIENT_NAME: 'Zotero',
DOMAIN_NAME: 'zotero.foo.fr',
REPOSITORY_URL: 'https://repo.zotero.foo.fr/repo/',
REPOSITORY_CHECK_INTERVAL: 86400, // 24 hours
REPOSITORY_RETRY_INTERVAL: 3600, // 1 hour
BASE_URI: 'http://zotero.foo.fr/',
WWW_BASE_URL: 'https://www.zotero.foo.fr/',
PROXY_AUTH_URL: 'https://zotero.foo.fr/proxy-auth',
API_URL: 'https://api.zotero.foo.fr/',
STREAMING_URL: 'wss://stream.zotero.foo.fr/',
API_VERSION: 3,
PREF_BRANCH: 'extensions.zotero.',
BOOKMARKLET_ORIGIN: 'https://www.zotero.foo.fr',
HTTP_BOOKMARKLET_ORIGIN: 'http://www.zotero.foo.fr',
BOOKMARKLET_URL: 'https://www.zotero.foo.fr/bookmarklet/',
START_URL: "https://www.zotero.foo.fr/start_standalone",
QUICK_START_URL: "https://www.zotero.foo.fr/support/quick_start_guide",
PDF_TOOLS_URL: "https://www.zotero.org/download/xpdf/",
SUPPORT_URL: "https://www.zotero.foo.fr/support/",
TROUBLESHOOTING_URL: "https://www.zotero.foo.fr/support/getting_help",
FEEDBACK_URL: "https://forums.zotero.org/",
CONNECTORS_URL: "https://www.zotero.org/download/connectors"
};
EOF
5/ create mozilla file extension
$ echo "${HOME}/Projets/zotero" > ~/.mozilla/extensions/zotero@foo.fr
6/ start firefox
And any nex logo appear ...
So I try to do a xpi file
5a/ Create XPI archive
$ zip -r ../zotero.xpi *
6/ Install xpi file into firefox
-> firefox do not want use it as xpi plugin format is deprecated
Moreover I do not understand if I should to run following command:
$ npm install
$ npm run-script build
$ npm run-script clean-start
Thanks for your help
I would like to use zotero inside a private network. For this I do:
1/ Get zotero source code
$ git clone --recursive git://github.com/zotero/zotero.git zotero
$ cd zotero
2/ pull each git submodule
$ git submodule foreach git pull origin master
3/ Install dependencies
$ npm install
4/ edit zotero configuration as the domain name:
$ cat <<'EOF'> resource/config.js
var ZOTERO_CONFIG = {
GUID: 'zotero@foo.fr',
ID: 'zotero', // used for db filename, etc.
CLIENT_NAME: 'Zotero',
DOMAIN_NAME: 'zotero.foo.fr',
REPOSITORY_URL: 'https://repo.zotero.foo.fr/repo/',
REPOSITORY_CHECK_INTERVAL: 86400, // 24 hours
REPOSITORY_RETRY_INTERVAL: 3600, // 1 hour
BASE_URI: 'http://zotero.foo.fr/',
WWW_BASE_URL: 'https://www.zotero.foo.fr/',
PROXY_AUTH_URL: 'https://zotero.foo.fr/proxy-auth',
API_URL: 'https://api.zotero.foo.fr/',
STREAMING_URL: 'wss://stream.zotero.foo.fr/',
API_VERSION: 3,
PREF_BRANCH: 'extensions.zotero.',
BOOKMARKLET_ORIGIN: 'https://www.zotero.foo.fr',
HTTP_BOOKMARKLET_ORIGIN: 'http://www.zotero.foo.fr',
BOOKMARKLET_URL: 'https://www.zotero.foo.fr/bookmarklet/',
START_URL: "https://www.zotero.foo.fr/start_standalone",
QUICK_START_URL: "https://www.zotero.foo.fr/support/quick_start_guide",
PDF_TOOLS_URL: "https://www.zotero.org/download/xpdf/",
SUPPORT_URL: "https://www.zotero.foo.fr/support/",
TROUBLESHOOTING_URL: "https://www.zotero.foo.fr/support/getting_help",
FEEDBACK_URL: "https://forums.zotero.org/",
CONNECTORS_URL: "https://www.zotero.org/download/connectors"
};
EOF
5/ create mozilla file extension
$ echo "${HOME}/Projets/zotero" > ~/.mozilla/extensions/zotero@foo.fr
6/ start firefox
And any nex logo appear ...
So I try to do a xpi file
5a/ Create XPI archive
$ zip -r ../zotero.xpi *
6/ Install xpi file into firefox
-> firefox do not want use it as xpi plugin format is deprecated
Moreover I do not understand if I should to run following command:
$ npm install
$ npm run-script build
$ npm run-script clean-start
Thanks for your help
If you have more questions, the better place to ask them is on our developer mailing list https://groups.google.com/forum/#!forum/zotero-dev