Commit graph

4000 commits

Author SHA1 Message Date
Dan Stillman
db43af33ac Fix "req is not defined" error message (which indicates a WebDAV error) 2013-10-12 02:54:28 -04:00
Dan Stillman
e457e5bdfe Show patents by issue date in timeline view 2013-10-06 23:57:40 -04:00
Dan Stillman
df9439f9a2 Don't fail during file upload if file doesn't yet exist 2013-10-06 23:48:49 -04:00
Simon Kornblith
94b50ca697 Abbreviate word pairs (e.g. New York -> N. Y.) 2013-09-19 23:33:07 -04:00
Aurimas Vinckevicius
84b6d8c5ee If abbreviation is same as key, it's still valid
See http://forums.zotero.org/discussion/32000/overriding-automatic-abbreviations/
2013-09-19 14:06:44 -05:00
Aurimas Vinckevicius
b680bcf375 Abbreviate plural forms of words same as singular 2013-09-18 00:47:28 -05:00
Aurimas Vinckevicius
7f7d78603a Use the longest abbreviation possible.
E.g. Fictional journal "Journal of Annunc Materials" (obviously annunc is not a real word)
Use "annunc-":"annunc." substitution instead of "annu-":"annu." resulting in "J. Annunc Mater." instead of "J. Annu. Mater."
2013-09-17 22:57:28 -05:00
Aurimas Vinckevicius
a55f9b624e Don't drop last word when abbreviating journal names 2013-09-17 21:52:10 -05:00
Aurimas Vinckevicius
6393c3bfe2 Look for abbreviations for longest possible match first 2013-09-17 21:41:34 -05:00
Dan Stillman
f510bd9d64 Debugging for failed file downloads 2013-09-09 16:47:15 -04:00
Dan Stillman
261c17ff51 Lock cursor on 'move' for collection drag on Windows 2013-09-06 16:02:52 -04:00
Dan Stillman
48a94c6716 Force 'move' action for collection drag 2013-09-06 15:52:59 -04:00
Dan Stillman
d318bca7a4 Allow items to be moved (not copied) between collections w/modifier key
Cmd on OS X, Shift on Windows/Linux

How do I not get to close a ticket for this?

Unfortunately on Windows it doesn't seem possible to set the cursor
effect to arbitrary states (see note in libraryTreeView.js::
_setDropEffect() for the gory details), so this just uses the default
cursor there. On OS X and Linux the cursor reflects the requested
action.
2013-09-06 15:30:37 -04:00
Dan Stillman
ea97c3d956 Get rid of Task.spawn in checkForUpdatedFiles(), since no yields are left 2013-09-06 15:23:22 -04:00
Dan Stillman
992f08b8b3 Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/storage.js
2013-09-06 14:29:17 -04:00
Dan Stillman
6c0be3426b Use async storage mtime checking in Fx24 on Windows
https://bugzilla.mozilla.org/show_bug.cgi?id=899436 was backported to 24
2013-09-05 16:36:15 -04:00
Dan Stillman
840790926b Fix merging of tags during sync conflict
If an item was added to a tag on one computer and another item was added
to the tag on a different computer, and then they both synced one of the
tags could be removed on the second computer to sync.
2013-09-04 17:53:11 -04:00
Dan Stillman
6eb354bf36 Fix cursor feedback for file drag-in on Linux, where we can set it 2013-09-03 04:49:02 -04:00
Dan Stillman
82769f0b9c Allow moving (instead of copying) files into Zotero
Cmd-drag on OS X, Shift on Windows and Linux

As requested in
https://forums.zotero.org/discussion/31717/delete-source-file-on-import/

Unfortunately due to https://bugzilla.mozilla.org/show_bug.cgi?id=911918
(and another issue on Windows) we can't show proper cursor feedback for
external file drags.
2013-09-03 04:25:35 -04:00
FMB
e262cfa0d5 z's bill session mapped to csl's chapter-number
Following : 59e31879fa (commitcomment-3989222)
2013-08-31 21:59:19 +02:00
FMB
0876d52b2c Update Zotero-to-CSL mapping for legal entries (statute and bill) 2013-08-31 20:17:47 +02:00
Dan Stillman
4d4d074ad9 Fix saving advanced search with no name
Addresses #379
2013-08-31 04:58:16 -04:00
Dan Stillman
94233108ae Fix saving advanced search
Fixes #379
2013-08-31 04:47:39 -04:00
Simon Kornblith
2f275a187c Fix path for translators/styles directories in symlinked dev Standalone build 2013-08-29 11:46:30 -04:00
Simon Kornblith
a5bc68bc17 Fix updating translators and styles from unpacked build 2013-08-28 22:06:28 -04:00
Dan Stillman
5a6e8cb65b Fix secondary function name 2013-08-27 17:13:50 -04:00
Simon Kornblith
ba32544c87 Don't call done handler multiple times on import
Broken by ff0f649a4d
2013-08-27 16:01:40 -04:00
Dan Stillman
ce62e7f29b Fix "Invalid sync state '4'" error 2013-08-27 14:26:29 -04:00
Dan Stillman
976696772d Use SQLite.jsm from Fx24 to fix hang in Fx25+ 2013-08-22 13:08:35 -04:00
Dan Stillman
5d42f06707 Add Zotero.File.deleteIfExists(path) and iterateDirectory(path, gen) 2013-08-21 01:05:04 -04:00
Dan Stillman
b13b46c641 Use consistent style for promises 2013-08-20 16:55:01 -04:00
Dan Stillman
93411a3dac Fix incorrect variables 2013-08-20 16:52:53 -04:00
Dan Stillman
74c679e6d2 Remove non-OS.File storage code, now that last mtime works on Win in Fx24 2013-08-20 12:54:36 -04:00
Dan Stillman
ccc18dd41e Return the promise in Zotero.Translators.loadFromDisk() 2013-08-20 12:43:39 -04:00
Dan Stillman
c1211b0357 Correct variable name 2013-08-20 12:43:09 -04:00
Dan Stillman
8fe02d8b71 Handle input streams and other sources in Zotero.File.getContentsAsync() 2013-08-20 12:42:07 -04:00
Dan Stillman
1be8cf743e Merge pull request #375 from gracile-fr/4.0
4.0 - Localization
2013-08-18 00:54:52 -07:00
Simon Kornblith
0c431e07ef Fix unnecessary reloading of session data
See https://forums.zotero.org/discussion/30740?page=1#Item_16
2013-08-17 17:43:39 -04:00
Simon Kornblith
0490886f28 Merge branch 'async-translators' 2013-08-17 03:47:20 -04:00
Simon Kornblith
526441c3ca Make translator loading asynchronous
Other changes:
- Factored out Zotero.Translators from Zotero.Translator. The latter
  should be usable in the bookmarklet and connectors without changes.
- configOptions, displayOptions, and hiddenPrefs no longer copy on
  read. I don't think this actually affects any existing code.
- Zotero.Translate._loadTranslator() now returns a promise
2013-08-17 03:15:43 -04:00
Simon Kornblith
efc4455476 Fix connector server changes for async getTranslators() 2013-08-17 01:23:50 -04:00
Simon Kornblith
f397b0e3d1 Fix Zotero.Translator.save() 2013-08-17 01:18:48 -04:00
Simon Kornblith
8b13d473c7 Import OS.File into Zotero global scope 2013-08-17 01:17:39 -04:00
Simon Kornblith
67e5388598 Fix getTranslatorObject() 2013-08-17 01:11:10 -04:00
Simon Kornblith
b16bfc80e1 Update mimeTypeHandler for asynchronous getTranslators 2013-08-17 00:32:50 -04:00
Simon Kornblith
f58a5ed298 Fix returning translators from Zotero.Translate.getTranslators() 2013-08-17 00:32:29 -04:00
Dan Stillman
4384a8ecc2 Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/schema.js
2013-08-16 18:16:59 -04:00
Dan Stillman
2d7d72fb2a Upgrade Q, and change allResolved() to allSettled()
Not fully tested
2013-08-16 18:15:00 -04:00
Simon Kornblith
ba0c33545f More typos 2013-08-16 17:56:10 -04:00
Simon Kornblith
70f04c3d8b Fix typos (thanks @aurimasv) 2013-08-16 17:53:36 -04:00
Dan Stillman
8e2de92ca8 Fix the Quick Copy site editor window 2013-08-16 16:28:23 -04:00
Dan Stillman
e85eaf218a Update quickCopy.js and preferences_export.js for async getTranslators() 2013-08-16 16:27:17 -04:00
Simon Kornblith
540a54515e Async Zotero.Translators.get* and Zotero.Translate.getTranslators
This mostly works, but there is still much to be done:

- getTranslators() calls in preferences_export.js and quickCopy.js need
  to be made asynchronous
- getTranslators() calls in mimeTypeHandler.js need to be made
  asynchronous. This looks hard, since there is a synchronous Mozilla
  API involved
- I need to test lookup, the connector server, and export more to make
  sure that they actually work
- This API needs to be implemented for the connector and bookmarklet
- Translators should be read off the disk using async IO
2013-08-16 13:48:59 -04:00
Dan Stillman
81e94b4475 Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/schema.js
2013-08-15 23:32:32 -04:00
Dan Stillman
5040fba8bb Use async DB for Zotero.Translators.init()
Zotero.Translators.init() now returns a promise. This will temporarily break
all the Zotero.Translators.get* calls.
2013-08-15 23:21:57 -04:00
Dan Stillman
a901b47d87 Use async file access for saving translators and styles 2013-08-15 22:30:33 -04:00
Dan Stillman
28ca0a3599 Fix DB initialization with async DB access
Also fix the initial repository check to trigger after initialization is
complete instead of waiting
2013-08-15 17:35:16 -04:00
gracile-fr
f3137099bc Localize et al. in the middle pane
(Heromyth's PR #358, #360, #361)
2013-08-15 23:15:02 +02:00
gracile-fr
723e8a4e30 Localize Ctrl/Cmd-Shift in Prefs 2013-08-15 22:53:56 +02:00
gracile-fr
355b1fbc57 Localize Ctrl/Cmd-Shift in Prefs 2013-08-15 22:45:04 +02:00
Simon Kornblith
ff0f649a4d Call done handler after saving
Broken by dde09c54a2
2013-08-15 15:50:44 -04:00
Simon Kornblith
e35f254fa1 Use API v2 in connector, part 1 2013-08-15 15:43:24 -04:00
Simon Kornblith
71e7fde327 Return multiple items from Zotero.Utilities.itemToServerJSON() 2013-08-15 15:43:22 -04:00
Simon Kornblith
52a544850a Rename Zotero.ID.getKey() to Zotero.Utilites.generateObjectKey()
(To make it accessible to the connector)
2013-08-15 14:32:15 -04:00
Simon Kornblith
2e4f75a9f0 Rename Zotero.ID.getKey() to Zotero.Utilites.generateObjectKey()
(To make it accessible to the connector)
2013-08-15 14:31:03 -04:00
Simon Kornblith
14192059ce Fix innocuous "itemProgress is not defined" error 2013-08-15 13:59:43 -04:00
Simon Kornblith
dde09c54a2 Fix handling of errors when saving items to data store asynchronously 2013-08-15 13:47:03 -04:00
Simon Kornblith
857fcfa31d Add Zotero.lazy() and use in _getConnectionAsync
I tried to describe what this function does earlier today and failed.
Hopefully the code is clearer.
2013-08-14 22:17:36 -04:00
Dan Stillman
318e5b2dd6 Enable debug line for file sync 2013-08-14 10:51:05 -04:00
Dan Stillman
d4da5fec68 Check the right version when checking for old database 2013-08-13 20:01:47 -04:00
Dan Stillman
9f24dcdb44 Use async DB query for collections-containing-an-item 2013-08-12 16:31:28 -04:00
Dan Stillman
a29f8ea852 Return empty array instead of FALSE for async DB query methods
The exception is valueQueryAsync(), which continues to return FALSE if
there's no result.

Note that this is different from the synchronous query methods.
2013-08-12 16:28:22 -04:00
Dan Stillman
d05c5094c7 Doesn't matter, but cast repo check timestamp to int 2013-08-12 04:12:23 -04:00
Dan Stillman
0ac7a77381 Show bound parameters for async queries 2013-08-12 04:12:10 -04:00
Dan Stillman
995369bc9b Remove unnecessary catch() 2013-08-12 03:57:00 -04:00
Dan Stillman
7135b9f5a7 Remove unnecessary import 2013-08-12 03:55:39 -04:00
Dan Stillman
73a9eb2709 Remove ancient DB_REBUILD config option 2013-08-12 03:52:50 -04:00
Dan Stillman
7780560c1b Move Zotero.Fulltext initialization 2013-08-12 03:10:22 -04:00
Dan Stillman
bf0de6e02f Tidy up some debug messages at startup 2013-08-12 03:10:09 -04:00
Dan Stillman
4a861ef5ea Use promise to get addon version, and remove ZOTERO_CONFIG.VERSION
(This patch is small without whitespace changes.)
2013-08-12 03:06:54 -04:00
Dan Stillman
391b2085b3 Tie bundled files update to initialization rather than timeout 2013-08-12 02:49:26 -04:00
Dan Stillman
5787b230f7 Use asynchronous DB and file access for schema checks/updates
This change should improve Firefox startup time. If the Zotero pane is
opened before Zotero has initialized, the pane will be blocked with a
progress bar until it's done. Standalone currently does the same, but it
should be changed to just delay opening the window if possible.

The upgrade wizard has been disabled for schema upgrades, in the hope
that upgrades can be done in a way that won't break compatibility with
earlier versions (or that can at least be done in a way such that we can
put out point releases of the last major version that provide
compatibility during beta/post-upgrade periods).

This patch likely breaks many things, and definitely breaks connector
mode.

This change also removes upgrade steps for databases from Zotero 2.1b2
and earlier. Users with such databases will need to upgrade via Zotero
4.0.x first or delete their data directories and start anew. This should
only affect users who haven't opened Zotero since Nov. 2010.
2013-08-11 21:53:41 -04:00
Dan Stillman
2b4de89aaf Add Zotero.File.getContentsFromURLAsync(url) for local text files 2013-08-11 20:49:18 -04:00
Dan Stillman
43978624de Better error messages for async DB 2013-08-11 20:48:10 -04:00
Dan Stillman
9e2d872900 Support nested async DB transactions 2013-08-11 20:47:53 -04:00
Dan Stillman
a2816a10ca Return a Q promise from all async DB methods
With send() removed from Q, we can yield Q promises within
executeTransaction() instead of Mozilla promises.
2013-08-10 04:17:34 -04:00
Dan Stillman
957b649fa8 Remove another <Fx23 test 2013-08-10 00:02:57 -04:00
Dan Stillman
2c424c2b58 Take out unnecessary <Fx23 test 2013-08-10 00:00:05 -04:00
Dan Stillman
b2d46ee2fe Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/db.js
	chrome/content/zotero/xpcom/zotero.js
	install.rdf
	update.rdf
2013-08-09 12:48:44 -04:00
Dan Stillman
2dc8fc6912 Update versions 2013-08-09 11:50:10 -04:00
Simon Kornblith
a723c85999 Return a promise from Zotero.shutdown() 2013-08-09 11:11:01 -04:00
Simon Kornblith
8a8093028d Check if callback exists before calling 2013-08-09 11:00:55 -04:00
Simon Kornblith
2069b5b396 Fix switching in and out of connector mode
Broken by 9d3f55be51
2013-08-09 10:55:56 -04:00
Dan Stillman
8f0dac0eb4 Update version and styles 2013-08-08 15:24:47 -04:00
Dan Stillman
a954d94027 Add missing semicolon 2013-08-08 15:21:11 -04:00
Dan Stillman
d5fcde0612 Disable OS.File for file syncs on Windows <Fx25
stat.lastModificationDate returns the last access date
instead of the modification date due to bug
https://bugzilla.mozilla.org/show_bug.cgi?id=899436
2013-08-08 15:19:37 -04:00
Dan Stillman
84c5a1bffa Tweak error message for OS.File errors during file sync 2013-08-08 14:32:54 -04:00
Dan Stillman
c29720743a Fix file sync error in Gecko 23+ if local file path is too long 2013-08-08 14:31:53 -04:00
Dan Stillman
610017e4df Fix file sync error on Windows 2013-08-08 14:15:41 -04:00
Dan Stillman
4af73f4a52 Fix file sync error in Fx23+ for empty attachment paths
And fix reporting of non-OS.File file sync errors
2013-08-08 13:41:34 -04:00
Dan Stillman
bfaa0f1172 Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/db.js
	chrome/content/zotero/xpcom/zotero.js
	install.rdf
	update.rdf
2013-08-08 01:06:35 -04:00
Dan Stillman
8bdac7015b Focus title on shortcut key new item even if item type isn't changed 2013-08-07 20:28:17 -04:00
Simon Kornblith
e132787774 Move root check to before DB initialization 2013-08-07 18:32:40 -04:00
Simon Kornblith
0957f8de02 Merge branch 'zap-cache' into 4.0 2013-08-07 18:00:40 -04:00
Simon Kornblith
517ca6f342 Force quit after zapping cache files to prevent destroying prefs 2013-08-07 18:00:25 -04:00
Dan Stillman
2bd0019261 'let' is valid in XBL, just not in event attributes, I guess 2013-08-07 17:09:41 -04:00
Dan Stillman
a3375d540b Fix comment that broke 7572eebcd 2013-08-07 17:06:48 -04:00
Dan Stillman
7572eebcd1 Offer autocomplete of same creator for different creator types
If a creator exists on an item but is a different creator type than the
one being entered, show creator in autocomplete list.
2013-08-07 15:25:15 -04:00
Dan Stillman
39e92bacb3 Focus title field when creating new item via menu or shortcut key 2013-08-07 13:17:25 -04:00
Dan Stillman
9d3f55be51 Use async DB for autocomplete
This was probably hanging previously because I was passing a JS function for
onProgress, which apparently isn't allowed.
2013-08-07 11:01:12 -04:00
Dan Stillman
08296b06a5 Include libraryID in file sync debug message 2013-08-06 16:03:03 -04:00
Dan Stillman
b20a7a572c Disable some debug logging for file syncing 2013-08-06 16:02:49 -04:00
Dan Stillman
8b918b21ad Capitalize Q library in About pane 2013-08-06 15:49:45 -04:00
Dan Stillman
795211fb40 Focus Close button by default in About pane 2013-08-06 15:49:26 -04:00
Dan Stillman
5b09b1e2be Update submodules, repotime, and versions 2013-08-06 15:23:04 -04:00
Dan Stillman
97f662fe67 Fix note resetting in external note window during file syncing
https://forums.zotero.org/discussion/29008
2013-08-05 20:47:50 -04:00
Dan Stillman
675fde2f1a Use async I/O for attachment (blue dot) column file check in Fx23+ 2013-08-05 16:31:23 -04:00
Dan Stillman
f341bb1ae0 Fix error exporting linked HTML file
https://forums.zotero.org/discussion/29392/#Item_14
2013-08-04 23:30:28 -04:00
Dan Stillman
1117332177 Merge branch '4.0'
Conflicts:
	chrome/content/zotero/xpcom/zotero.js
2013-08-03 18:12:36 -04:00
Dan Stillman
1267c4d659 Closes #77, Create linked files with drag and drop
The cursor effect doesn't work reliably anywhere other than on Linux,
but external files can now be linked instead of stored with
Cmd-Option-drag on OS X and Ctrl-Shift-drag on Win/Linux.
2013-08-03 18:08:09 -04:00
Dan Stillman
84d9963e14 File sync optimizations 2013-08-02 01:13:27 -04:00
Dan Stillman
e177e3e718 Optimize local file modification checks during file syncs
- On manual sync or the first auto-sync of a session, check all files
- During other auto-syncs, check only files previously modified or
  opened externally via Zotero (including Show File) within the last 3
  hours
- Every 3 hours, do a full check of all files even if it's an auto-sync
- Spin event loop during synchronous file checks to avoid hanging the UI
- Zotero.Sync.Runner.sync() now takes an options object (e.g.,
  options.background)

Todo:

- Provide feedback on last full check in sync icon tooltip?
- Auto-sync on app focus, if this speeds up syncs enough?
2013-08-02 00:45:26 -04:00
Dan Stillman
dc8998c5bc Add Firefox-wide shortcut (Ctrl/Cmd-Shift-S) for "Save to Zotero"
Also: Don't show Firefox-specific shortcut keys in Standalone prefs
2013-07-31 23:19:19 -04:00
Dan Stillman
f0c5c50bd4 Blacklist Firefox HealthReport errors 2013-07-30 15:48:53 -04:00
Dan Stillman
ec47a31000 Fix warning in Nightly about yield without a value 2013-07-29 02:26:09 -04:00
Dan Stillman
2736e7e6d1 Use Ctrl-Shift for all shortcuts on Windows/Linux instead of Ctrl-Alt
https://forums.zotero.org/discussion/25927/#Item_5
2013-07-28 20:18:24 -04:00
Simon Kornblith
670f272b32 Alter message on auto-update
Avoid ambiguously implying that Linux users should be running Zotero as
root, and tell them to fix the permissions on the Zotero executable instead.

See https://forums.zotero.org/discussion/31020/
2013-07-27 01:46:13 -04:00
Dan Stillman
b059b2abde Fix shortcut keys on Windows and Linux 2013-07-26 15:35:06 -04:00
Simon Kornblith
1055187c8b If Zotero is run as root, clobber the cache directory and show a warning 2013-07-25 00:47:38 -04:00
Dan Stillman
185c5a3a4d Perform sync file modification checks off the main thread in Firefox 23+
OS.File doesn't seem to work reliably before Firefox 23, so older
versions will continue to do mod time checking on the main thread.

Zotero.Sync.Storage.checkForUpdatedFiles() now returns a promise.
2013-07-22 20:41:37 -04:00
Dan Stillman
b9c2ea507d Add mode name to credentials-cached debug message 2013-07-22 20:39:20 -04:00
Dan Stillman
f85d25d1d1 Remove unused argument in Z.Sync.Storage.Mode.prototype.cacheCredentials 2013-07-22 20:37:39 -04:00
Dan Stillman
40f0de75d8 Separate out Zotero.Item._updateAttachmentStates() 2013-07-22 20:35:21 -04:00
Dan Stillman
4b280090fc Better debugging info for library errors 2013-07-22 20:31:52 -04:00
Dan Stillman
5806c53825 Evaluate test.js as JS 1.8 in Firefox 17 2013-07-22 20:30:45 -04:00
Dan Stillman
73b0bc67c5 Add Zotero.Item.libraryKey, to return libraryID and key ("0/ABCD2345") 2013-07-22 20:29:32 -04:00
Dan Stillman
828a2917c4 Add Zotero.platformVersion and Zotero.platformMajorVersion
platformVersion is a string that needs to be checked with
nsIVersionComparator. platformMajorVersion is an integer that can be
checked with > and < when the major Gecko version is enough.
2013-07-22 20:27:53 -04:00
Dan Stillman
e459020b66 Add asynchronous Zotero.Utilities.Internal.md5Async()
Also switch ZU.Internal.md5() to use the same binary->hex conversion
code, since I can no longer reproduce the problem I was having with it
before.
2013-07-22 20:27:40 -04:00
Dan Stillman
b075d91f9c Revert "Remove debug line"
This reverts commit a2249b9bee.
2013-07-22 03:16:40 -04:00
Dan Stillman
500c55bdd3 Revert "Revert "Extra debugging for file sync hangs on slow connections""
This reverts commit 4907489707.
2013-07-22 03:16:19 -04:00
Dan Stillman
a2249b9bee Remove debug line 2013-07-22 02:36:46 -04:00
Dan Stillman
4907489707 Revert "Extra debugging for file sync hangs on slow connections"
This reverts commit 46cce5a2bd.

Conflicts:
	chrome/content/zotero/xpcom/storage/streamListener.js
2013-07-22 02:35:53 -04:00
Simon Kornblith
67ad94c45f Update to citeproc-js 1.0.471 2013-07-22 01:46:20 -04:00
Dan Stillman
c722ec888f Remove hopefully unnecessary hack dating to Firefox 3.1 2013-07-17 18:56:33 -04:00
Dan Stillman
46cce5a2bd Extra debugging for file sync hangs on slow connections 2013-07-17 18:55:43 -04:00
Dan Stillman
8c6a9bfbf0 Add some debugging for a memory usage issue during file syncing 2013-07-17 18:03:00 -04:00
Dan Stillman
375f0774c0 Merge pull request #327 from aurimasv/dup-right-click
Allow right-click on multiple items in duplicate view. Closes #53
2013-07-16 00:32:15 -07:00
Dan Stillman
51cbf0c820 Fix spacing around Reindex Item icon on Windows 2013-07-16 03:19:44 -04:00
Dan Stillman
dcbabfa013 Merge branch '4.0'
Conflicts:
	install.rdf
	update.rdf
2013-07-15 20:05:41 -04:00
Dan Stillman
75d5d9f88d Add Publication Title to title/creator/year search
As requested by Simon
2013-07-15 19:55:18 -04:00
Simon Kornblith
b55f226900 Fix handling of multiple missing/corrupt citations when "No" is clicked 2013-07-13 16:04:24 -04:00
Simon Kornblith
d2166540c6 Zip as much as possible in ZSA without repacking omni.ja, part 1 2013-07-12 01:42:09 -04:00
Dan Stillman
59550167a7 Move TinyMCE into resource://
This fixes CSS in popups and probably other things.
2013-07-12 00:40:03 -04:00
Dan Stillman
7ec7039a9a Update repotime, submodules, renamed styles, and versions 2013-07-11 23:21:28 -04:00
Simon Kornblith
61fba0a788 Update to citeproc-js 1.0.470 2013-07-11 23:00:14 -04:00
Dan Stillman
1d09c85822 Avoid unnecessary scrollbar in sync error panel, and remove height hack 2013-07-08 21:09:39 -04:00
Dan Stillman
10e9c5e0b7 Restore ZFS quota warning
Possible that this hasn't shown since 4.0?
2013-07-08 20:13:47 -04:00
Dan Stillman
16327ddad6 Don't update Date Modified when syncing related items
This caused all items with related items to lose their Date Modified
when synced down.
2013-07-08 18:18:16 -04:00
Simon Kornblith
0a8990947c Update to citeproc-js 1.0.469 2013-07-03 00:40:35 -04:00
Dan Stillman
8e8bc15071 Closes #291, Default to last-used item type when creating item via
keyboard
2013-07-02 16:48:53 -04:00
Dan Stillman
30a0bbcca2 Fix conflict with Cmd-Shift-A, and probably other third-party shortcuts
The Zotero shortcut keys, and their event.preventDefault(), were bound
to keydown, so shortcuts bound to keypress were still be called. This
moves most of the shortcut handling code into the keypress handler.

Fixes #344
2013-07-02 02:43:53 -04:00
Dan Stillman
4d9191ccd8 Fixes #343, Add Item by Identifier textbox is truncated on second open 2013-06-30 01:46:50 -04:00
Dan Stillman
d1e2ea57a5 Maybe fix note overwriting with embedded images in notes
But given that I can't really reproduce it, this is more of a guess.
2013-06-28 15:26:23 -04:00
Simon Kornblith
85682dbb19 Remove field codes for empty bibliographies when refreshing
This happens when a user inserts a bibliography in the middle of a
paragraph and doesn't fully delete it.

Also remove unused code for deleting citations from the document.
2013-06-27 22:02:35 -04:00
Simon Kornblith
44bb1ad976 Ignore empty bibliography fields 2013-06-27 22:02:31 -04:00
Simon Kornblith
28355c5ab5 Fix error message when inserting a field in an unsupported location 2013-06-27 22:01:31 -04:00
Simon Kornblith
852021d150 Fix error message when inserting a field in an unsupported location 2013-06-27 22:00:38 -04:00
Simon Kornblith
263eb508cc Remove field codes for empty bibliographies when refreshing
This happens when a user inserts a bibliography in the middle of a
paragraph and doesn't fully delete it.

Also remove unused code for deleting citations from the document.
2013-06-19 13:46:09 -04:00
Simon Kornblith
2a9d1d2693 Ignore empty bibliography fields 2013-06-19 13:29:04 -04:00
Simon Kornblith
505e4a5674 Merge branch '4.0' 2013-06-19 12:54:47 -04:00
Simon Kornblith
f0c2507b89 Anchor regex 2013-06-19 02:23:26 -04:00
Simon Kornblith
6f9ffe13e3 Don't change capitalization of unabbeviated words in journal titles
Fixes https://forums.zotero.org/discussion/30352/
2013-06-18 23:51:46 -04:00
Simon Kornblith
dde9901c72 Anchor regex 2013-06-13 14:37:51 -04:00
Simon Kornblith
da4e7dd4f1 Merge branch '4.0' 2013-06-13 14:20:06 -04:00
Simon Kornblith
9f0e5c02a6 Ignore files in translators directory not ending in .js
Fixes #339
2013-06-13 14:18:59 -04:00
Simon Kornblith
f02132f5a9 Merge pull request #330 from aurimasv/4.0
Prefer higher priority translators even if they don't target the top frame
2013-06-06 16:50:34 -07:00
Simon Kornblith
6ef9a061f3 Only use Components.utils.methodjit when supported
As Boris Zbarsky pointed out in
https://bugzilla.mozilla.org/show_bug.cgi?id=878679,
the setTimeout() hack doesn't help in Firefox 23 and later. For now we
use the useMethodjit hack when available, so that performance won't
regress for Firefox 23, and cross our fingers that
https://bugzilla.mozilla.org/show_bug.cgi?id=776798 is fixed for
Firefox 24.
2013-06-06 19:38:48 -04:00
Simon Kornblith
1cee348f51 Revert "Remove use of Components.utils.methodjit"
This reverts commit 53a4d987b6.
2013-06-06 19:31:09 -04:00
Simon Kornblith
aecdf99482 Use Services.jsm where possible 2013-06-06 02:37:19 -04:00
Simon Kornblith
37425195c6 Merge branch '4.0' 2013-06-05 18:20:59 -04:00
Simon Kornblith
53a4d987b6 Remove use of Components.utils.methodjit
It appears that this flag can no longer be set in new-ish Nightlies.
This patch switches code that used nsITimers with the
Components.utils.methodjit hack to use setTimeout on the hidden DOM
window instead, so that we still get the JIT. (See
https://bugzilla.mozilla.org/show_bug.cgi?id=776798)

This might also mean that callbacks from doGet etc. no longer get JITed.
At some point, we should test this with the JIT profiler.
2013-06-05 18:12:52 -04:00
Simon Kornblith
5bfee27ab9 Remove unused getService for VersionComparatorService 2013-06-05 17:55:49 -04:00
Simon Kornblith
5bde5a106b Use Services.obs instead of getService for observer service 2013-06-05 17:54:53 -04:00
Aurimas Vinckevicius
7fb3c13bc2 Prefer higher priority translators even if they don't target the top frame.
E.g. pdf+html pages for HighWire 2.0 (http://www.plantcell.org/content/25/4/1213.full.pdf+html?with-ds=yes)
2013-05-27 18:43:42 -05:00
Simon Kornblith
a7984916ad Protect against pasting HTML-formatted text into QuickFormat dialog 2013-05-24 00:39:19 -04:00
Simon Kornblith
c0f3e3c425 Fix box scrolling 2013-05-23 23:27:29 -04:00
Simon Kornblith
a439456f05 Don't let bubbles get highlighted 2013-05-23 23:27:29 -04:00
Simon Kornblith
3eff3605f7 Fix deletion and keyboard navigation 2013-05-23 23:27:29 -04:00
Simon Kornblith
9c63379544 Fix drag and drop in QuickFormat dialog.
Unfortunately, this required switching from using labels to spans,
which means there is more work to make the delete key work properly
again.
2013-05-23 23:27:29 -04:00
aurimasv
fdb35e2e92 Allow right-click on multiple items in duplicate view. Closes #53 2013-05-20 04:39:19 -05:00
Dan Stillman
311e6f2fa7 Merge pull request #326 from aurimasv/dup-click
Tweak duplicate view click behavior
2013-05-19 20:21:49 -07:00
Aurimas Vinckevicius
4546089672 Tweak duplicate view click behavior
Allow ctrl/alt/shift click actions in duplicate view. (closes #324)
Allow right-click behavior on single item/attachment selection. (closes #325)
2013-05-19 22:20:28 -05:00
Dan Stillman
d3ec8fcdcf Ignore standalone-no-display class when building attachment button menu 2013-05-19 00:14:13 -04:00
Dan Stillman
c5291bdd7d Remove unnecessary ids after bfb30eed59 2013-05-19 00:10:49 -04:00
Dan Stillman
903fc0e001 Fix incorrect id in bfb30eed59 2013-05-19 00:10:08 -04:00
aurimasv
bfb30eed59 Don't display snapshot or link from page context menus for Standalone 2013-05-18 23:01:24 -05:00
Dan Stillman
bbf066f55a Merge pull request #313 from adam3smith/adduris
add more item handler protocols to add by URI
2013-05-14 00:06:42 -07:00
Dan Stillman
9c82a7a661 Reset Quick Copy list when resetting translators, too 2013-05-10 14:51:41 -04:00
Dan Stillman
5fbd569fdf Fix refreshing of Quick Copy list when resetting styles 2013-05-10 14:49:29 -04:00
Dan Stillman
6b61795d96 Fix NS_ERROR_FILE_IS_LOCKED if no files to add to upload zip 2013-05-10 01:14:22 -04:00