Commit graph

1871 commits

Author SHA1 Message Date
Simon Kornblith
178eda0c9d Fix getTranslatorObject() 2011-07-03 20:37:53 +00:00
Simon Kornblith
4f4be436f6 ...but don't try to trim null strings 2011-07-03 19:39:24 +00:00
Simon Kornblith
e671496260 Trim all strings before adding to the DB 2011-07-03 19:38:14 +00:00
Simon Kornblith
cf2f8c828b Fix typo 2011-07-03 18:59:26 +00:00
Simon Kornblith
f5af708995 - Eliminate some error messages in translate.js
- Zotero.ItemFields.isValidForType() should not throw on error
2011-07-03 08:28:30 +00:00
Dan Stillman
d6c6fd16f4 Disable tag colors until they're revised a bit 2011-07-03 06:38:09 +00:00
Simon Kornblith
03b569a2e1 Closes #1755, Links from Standalone preferences don't work 2011-07-03 06:27:04 +00:00
Simon Kornblith
0a197f308e - Open https://www.zotero.org/start_standalone (which doesn't yet exist) in default browser on Standalone first start. This will provide a place to download connectors and create an account.
- Don't copy quickstart setting during prefs migration
- Register zotero-reloaded nsIObserver properly
2011-07-03 04:33:37 +00:00
Simon Kornblith
8638b9c496 Fixes #1844, Fix connector switching hangs with Firefox 3.6 on Windows. Standalone will just take an extra 5 seconds to start if started while Firefox 3.6 is running. 2011-07-03 04:15:49 +00:00
Simon Kornblith
a8631f760a Change quickstart URL to https so that it doesn't display a security warning 2011-07-02 17:06:02 +00:00
Simon Kornblith
dd29d18b93 Open quickstart window on first run in Standalone 2011-07-02 16:52:34 +00:00
Simon Kornblith
d12d639842 Support for add-ons 2011-07-02 07:16:24 +00:00
Simon Kornblith
50cc1fcb71 Fixes #1757, VIew Debug output doesn't work in standalone 2011-07-02 05:51:29 +00:00
Simon Kornblith
7b41d76b75 Move standalone.xul to separate standalone directory 2011-07-02 04:27:57 +00:00
Simon Kornblith
56eed344f5 Fixes #1826, Quick Copy does not work in Standalone 2011-07-02 04:00:12 +00:00
Simon Kornblith
fa7ca7e2d7 Improve standalone menus 2011-07-02 03:09:13 +00:00
Simon Kornblith
e63e917ecf Don't require done function in ZU.processDocuments 2011-07-02 00:17:33 +00:00
Simon Kornblith
931ba556e1 Don't require a callback to getTranslators, and ask for the translators handler instead, which is already compatible with 2.1. (Not sure what I was thinking last night...) 2011-07-01 19:39:06 +00:00
Simon Kornblith
63e07763d7 More refinements for select handlers that do not use a callback 2011-07-01 17:25:26 +00:00
Simon Kornblith
b74cfb4a70 Fix multiple replacement in captializeTitles in Chrome/Safari 2011-07-01 06:22:01 +00:00
Simon Kornblith
e37f4e3215 Don't break code (e.g. Scaffold) that returns a value from the select handler instead of using the callback 2011-07-01 06:07:30 +00:00
Simon Kornblith
bd165f60bc - Add ability to pass a callback to Zotero.getTranslators(). AFAIK, this is only used by COinS.
- Don't try to do RPC on non-web translators
- Remove Zotero.Text.titleCase from zotero.js
2011-07-01 05:14:45 +00:00
Simon Kornblith
3b2cc93269 Move Zotero.Text.titleCase() to Zotero.Utilities(), since it's not used anywhere else in the Zotero code 2011-07-01 04:20:48 +00:00
Simon Kornblith
cd046433da Don't run translator tester without Zotero Standalone 2011-06-30 23:10:00 +00:00
Simon Kornblith
ca1e3f8647 -Retrieve trunk translators from repo
-Make translator tester always re-retrieve translators that were previously retrieved from repo
2011-06-30 23:05:15 +00:00
Simon Kornblith
1d72849d99 Don't store translator code in localStorage 2011-06-30 22:14:45 +00:00
Simon Kornblith
39298312db - Reduce object creation overhead when updating translators
- Don't save code for a translator if the lastUpdated date is older than the lastUpdated date in the translator metadata. This is necessary in case translator metadata is retrieved from the repo and then outdated code is retrieved from standalone to avoid being stuck on the outdated code until the next translator update.
2011-06-30 07:15:13 +00:00
Simon Kornblith
aeef8ecc15 Use lastUpdated dates to determine whether to update translators 2011-06-30 06:36:48 +00:00
Simon Kornblith
b1584a1eae Normalize notes and creators 2011-06-30 05:19:11 +00:00
Simon Kornblith
e5268ba2f2 Normalize tags on save 2011-06-30 03:36:00 +00:00
Simon Kornblith
ad04e96ad4 Fix error in multiple item saving 2011-06-30 02:01:31 +00:00
Simon Kornblith
b114266fb3 - Closes #1832, Connectors should be able to retrieve translator data and code from server in the absence of Zotero Standalone
- Closes #1831, Connectors should be able to save via API in the absence of Zotero Standalone
- Fixes Zotero.Utilities.deepCopy() for arrays
- Fixes some circumstances where an error would not be saved for future error reporting
- Fixes connector status checking
2011-06-30 01:08:30 +00:00
Simon Kornblith
2bee3ecf1e Update to citeproc-js 1.0.185 2011-06-29 23:28:06 +00:00
Simon Kornblith
cd783b3f49 Fix error 2011-06-28 18:32:43 +00:00
Simon Kornblith
0d7ffcc1c1 - Add preferences to connector. Debug logging does not yet work
- Add rudimentary connector API version checks, although I still need a good way of showing that the connector/server is out of date
- Throw new Error() in translate (so that we get a stack trace)
- Log errors in connector
2011-06-28 18:24:24 +00:00
Simon Kornblith
dda8551a22 Fix additional race condition and make IPC more resilient to hanging on shutdown 2011-06-28 03:59:18 +00:00
Simon Kornblith
1cba396675 Indent translator metadata with tabs instead of spaces 2011-06-28 00:50:50 +00:00
Simon Kornblith
1d2052cb1a Fix mistake in last commit 2011-06-23 09:43:26 +00:00
Simon Kornblith
ca2e1f4de6 Fix decrementing async processes when there is more than one level of translator calls 2011-06-23 09:42:50 +00:00
Simon Kornblith
7a7bcae2c3 Add option not to delete hidden browser in http.js, and use it in translatorTester.js 2011-06-23 09:29:53 +00:00
Simon Kornblith
c453db744a - Remove null, undefined, and false properties from items before passing to parent translators or handlers
- Fix a bug in Zotero.done()-less operation when a child translator encounters an error
2011-06-23 09:13:21 +00:00
Simon Kornblith
5aa511cf6d - Closes #1839, [patch] Pluralization in translatorTester.js (thanks to Avram)
- Fixes a bug with XMLHttpRequests for XML files on Chrome/Safari
- Adds support for running tests for search translators and (untested) support for running tests for import translators
- If a test specifies "items":"multiple", the testing framework ensures that multiple items are available, but only tests saving one
- Properties explicitly defined as false are now ignored
2011-06-23 08:03:29 +00:00
Simon Kornblith
fc6121e488 Fix a bug in serialize.js that was breaking Zotero startup in Nightly (blame Tim Berners-Lee) 2011-06-22 17:55:36 +00:00
Simon Kornblith
6c6b9c8be2 Remove unused _dontWrap argument 2011-06-22 08:43:44 +00:00
Simon Kornblith
f71122e788 add hack comments to utilities.js 2011-06-22 07:52:06 +00:00
Simon Kornblith
663bc77b5f Actually commit XPath utility functions, missed in r9585 2011-06-22 07:46:10 +00:00
Simon Kornblith
4b08734c9a - Z and ZU in sandbox are now shortcuts to Zotero and Zotero.Utilities
- Closes #1654, XPath helper functions
- Fix DOMParser in sandbox under Firefox 5 in a really nasty way (presumably broken by http://hg.mozilla.org/mozilla-central/rev/673f93bb84aa)
- Add XPath-based CrossRef translator
- Fix search translation-related issues (broken since r9471 or r9574)
2011-06-22 07:37:48 +00:00
Simon Kornblith
c7e32c7ee6 Fix saving to collection 2011-06-21 19:55:00 +00:00
Dan Stillman
b2dda2ec23 Replace all setTimeout(string, ms) calls with setTimeout(func, ms) for AMO 2011-06-20 20:02:14 +00:00
Simon Kornblith
94d0bcf229 Closes #1783, Eliminate Zotero.done() 2011-06-20 18:57:33 +00:00
Simon Kornblith
2d4c81b1ef Save browserSupport as "g" if none specified 2011-06-20 18:56:19 +00:00
Simon Kornblith
72fe1b77a1 Run 6 concurrent translator tests 2011-06-20 18:55:32 +00:00
Simon Kornblith
7152c71e84 Fix Firefox 3.6 compatibility 2011-06-20 17:23:31 +00:00
Simon Kornblith
dd05b26dcc Fix typo 2011-06-20 07:06:28 +00:00
Simon Kornblith
581a8df4b9 Show debug output for translators and allow running all translators or only individual translators 2011-06-20 05:43:54 +00:00
Simon Kornblith
983f5023bc Missing changes from r9554 2011-06-20 04:42:19 +00:00
Simon Kornblith
776724d71e Use Avram's object comparison code to compare items, rather than relying upon equality of the serialized JSON 2011-06-20 03:38:43 +00:00
Simon Kornblith
0c7c40a50f Sanitize items by converting document to URL, so that tests will not fail unexpectedly in connector 2011-06-20 01:32:53 +00:00
Simon Kornblith
1fea00245e - Make translator tester run detect code
- Add support for creating tests to translatorTester.js
2011-06-20 01:22:41 +00:00
Simon Kornblith
7986a8242e closes #1834, Map Zotero language field to CSL item variable "language" 2011-06-18 22:50:00 +00:00
Simon Kornblith
5a43eae702 Clear attached document objects when running translator tests 2011-06-18 17:36:35 +00:00
Simon Kornblith
fb5d4b5da9 Use local namespace for translator tester 2011-06-18 17:09:57 +00:00
Simon Kornblith
5947b240dd Test up to 6 translators concurrently 2011-06-18 17:09:15 +00:00
Simon Kornblith
bfa8786fb4 Don't try to send documents via connectors 2011-06-18 15:37:07 +00:00
Simon Kornblith
597609703f don't print test to console 2011-06-18 08:15:21 +00:00
Simon Kornblith
8771e4b47f Other part of translator testing framework modifications for Chrome/Safari 2011-06-18 08:01:56 +00:00
Simon Kornblith
dcbea215d9 Batch translator tester for testCases format (not yet Chrome/Safari-compatible) 2011-06-18 01:27:06 +00:00
Simon Kornblith
942fe0f97f Fix apply call in Zotero.Translate 2011-06-18 00:48:13 +00:00
Simon Kornblith
fc078caddf Addresses #1829: [PATCH] wpdDOMSaver fails due to undefined Zotero
Removes calls to Zotero object, since they are unnecessary (the call that was problematic was a workaround for a Fx 4 beta crashing bug).
2011-06-17 21:25:05 +00:00
Simon Kornblith
55280e5256 - fix Zotero.loadTranslator() from sandbox
- add (currently only en-US) months to Zotero.Date for connectors (localization is #1830)
2011-06-17 20:05:48 +00:00
Simon Kornblith
48b5bc8bee also fix gatherElementsOnXPath() for Chrome/Safari 2011-06-17 19:37:11 +00:00
Simon Kornblith
59f9c1639d add support for unescapeHTML in Chrome/Safari 2011-06-17 19:35:41 +00:00
Simon Kornblith
6169643b16 add missing "g" parameter to for each regexp 2011-06-17 19:33:39 +00:00
Simon Kornblith
edceb34153 - support retrieveSource(), even though it is inadvisable
- throw appropriate error for retrieveDocument()
- warn about undesirable behaviors even when translators are run under Firefox
2011-06-17 19:26:13 +00:00
Simon Kornblith
d1fa4399af More tweaks to select items behavior 2011-06-17 18:52:53 +00:00
Simon Kornblith
e35c25e31d Fix lingering bugs in Chrome/Safari translation 2011-06-17 18:20:50 +00:00
Simon Kornblith
250e193645 Tweaks to support translation in connector (detection works now, but processDocuments() is still not implemented and no import/export/search translators are Safari/Chrome-compatible, so I haven't tested anything) 2011-06-17 07:01:12 +00:00
Simon Kornblith
38e25d4756 restore comment and fix an accidental transposition in connector.js 2011-06-17 03:49:48 +00:00
Dan Stillman
c10fe8606c Closes #1563, add ability to add links by URI and edit existing link attachment URIs
Thanks to ajlyon for the patch
2011-06-16 18:17:06 +00:00
Dan Stillman
5d30b8c726 Have the database integrity check look for the schema-related inconsistencies that the DB Repair Tool fixes 2011-06-16 04:57:37 +00:00
Simon Kornblith
d1a0f923e8 update to citeproc-js 1.0.179 2011-06-15 13:47:28 +00:00
Simon Kornblith
acfd317de9 - Addresses #1828, Ensure any code that uses nsITimer directly maintains a global reference until callback executes
- Adds an optional runWhenWaiting argument to Zotero.setTimeout(), so that code can be set to run even if Zotero.wait() is in progress
2011-06-14 21:26:48 +00:00
Simon Kornblith
5d32e800fc don't try to call callback if it doesn't exist 2011-06-14 21:24:29 +00:00
Simon Kornblith
11e337a189 fix non-triggering setTimeout calls and restore r9383 2011-06-14 19:24:39 +00:00
Dan Stillman
47dbd613ea Revert r9383 (substantially) to fix unending sync icon spinning 2011-06-14 17:46:46 +00:00
Simon Kornblith
856abf366d fix mis-licensed files 2011-06-14 07:51:45 +00:00
Simon Kornblith
8fe64c6d9a Scrape progress indicators for Safari and Chrome 2011-06-14 07:44:51 +00:00
Simon Kornblith
8cf7f6e331 don't throw a bunch of errors for no reason 2011-06-14 04:10:22 +00:00
Simon Kornblith
d0017c875a remove debug line 2011-06-14 04:05:11 +00:00
Simon Kornblith
40e0c6fee6 Fix race condition under Firefox 4 2011-06-14 04:02:27 +00:00
Dan Stillman
2b68113fd7 - Fix search bar drop-down on Linux
- Increase padding slightly next to non-menu toolbar buttons
- Tweak alignment of sync icon
2011-06-14 03:24:21 +00:00
Simon Kornblith
8268d1b01c Zotero Everywhere megacommit
- Implement connector for Firefox (should switch in/out of connector mode automatically when Standalone is launched or closed, although this has only been tested extensively on OS X)
- Share core translation code between Zotero and connectors

Still to be done:

- Run translators in non-Fx connectors (this works in theory, but it's not currently enabled for any translators)
- Show translation results in non-Fx connectors
- Ability to translate to server when Zotero Standalone is not running
2011-06-14 00:36:21 +00:00
Simon Kornblith
289e696e90 allow CSL 1.0 dependent styles to reference CSL 0.8 parents, and vice versa 2011-06-10 21:39:40 +00:00
Simon Kornblith
06be99acfa parse mm/yyyy properly even on non-US systems 2011-06-08 14:19:16 +00:00
Simon Kornblith
b874641bf9 - show correct gradients for between focused, selected, and inactive tree items in collections tree on OS X
- use -moz-linear-gradient instead of images
2011-06-07 06:26:12 +00:00
Dan Stillman
4c07ff04a1 Copy mainwindow-dropdown-arrow.png to skin directory for availability in Standalone 2011-06-07 06:00:36 +00:00
Dan Stillman
689b758dd3 Fixes #1824, Fix appearance of search menu on Windows 2011-06-07 05:47:58 +00:00
Simon Kornblith
54a13955e4 Fix "Support and Documentation" from cog menu in tab mode
http://forums.zotero.org/discussion/18251/support-and-documentation-tab-not-opening/
2011-06-06 16:11:08 +00:00
Simon Kornblith
81e9a7010e only use first 50 selected items when determining locate menu actions, to prevent a slowdown when accessing the context menu with a large number of items selected 2011-06-06 04:30:06 +00:00
Dan Stillman
5fcbd914ae Use existing function instead of DB query 2011-06-05 00:12:14 +00:00