Commit graph

1721 commits

Author SHA1 Message Date
Simon Kornblith
9312300420 ignore active attribute on Firefox 3.6 in Zotero Tab 2011-02-13 02:35:57 +00:00
Simon Kornblith
c8478f02f8 tweak OS X Zotero tab appearance 2011-02-13 02:29:00 +00:00
Simon Kornblith
1a726d357a fix broken ensureElementIsVisible method
I think this should fix #1730, Metadata pane doesn't scroll down when tabbing between fields
2011-02-13 01:57:54 +00:00
Simon Kornblith
8592e26187 appropriately truncate last name in item box 2011-02-13 01:02:54 +00:00
Simon Kornblith
a21c3b28a2 properly reset flex attribute on last name after editing 2011-02-13 00:26:11 +00:00
Simon Kornblith
effdfc1adf item pane UI consistency tweaks 2011-02-12 23:47:08 +00:00
Simon Kornblith
806576aacb remove "create item from current page" from tab 2011-02-12 22:18:46 +00:00
Simon Kornblith
51c119ae8a control selected appearance on clicky based on tree focus, not window focus 2011-02-12 21:22:01 +00:00
Simon Kornblith
7b66113990 put "View PDF" at top of locate menu 2011-02-12 21:09:41 +00:00
Simon Kornblith
b4e5819a82 fix context area popup menu 2011-02-12 21:08:03 +00:00
Simon Kornblith
6c7c8a66c0 - don't try to open non-native attachments using Fx
- don't try to get non-existent strings for non-existent buttons
2011-02-12 20:40:46 +00:00
Simon Kornblith
5edcc84cf9 pad top of itembox on OS X 2011-02-12 20:31:52 +00:00
Simon Kornblith
f629418dc2 don't turn off "ignoreWhitespace" before serializing xml string 2011-02-12 20:19:31 +00:00
Simon Kornblith
e5a4d4a1ee fix activated/deactivated appearance in Fx 4 2011-02-12 19:56:13 +00:00
Simon Kornblith
50cf63f5db only save automatic tags if pref is enabled 2011-02-12 19:28:33 +00:00
Simon Kornblith
e78e886b57 - a better way of getting the container window for our tab
- close tab on restart if tab mode is off and there was a crash
2011-02-12 08:57:28 +00:00
Simon Kornblith
2c41bcff56 Update to citeproc-js 1.0.111
From Frank's release notes:

Avoid an error when attempting to sort citations that have not yet
appeared in the registry. This error could be triggered, following a
change made in release 1.0.108, by incremental cite insertion
operations via appendCitationCluster() or processCitationCluster().
2011-02-12 08:33:16 +00:00
Simon Kornblith
c668ecab83 prompt before saving items via RIS/Refer 2011-02-12 07:07:23 +00:00
Simon Kornblith
5246248159 generate a citation list when using "Create Bibliography" context menu options if the selected style does not define a bibliographny 2011-02-12 04:36:37 +00:00
Simon Kornblith
7448e2ac6a maintain selection across tab/pane switch 2011-02-11 22:39:13 +00:00
Simon Kornblith
47f57509e5 make column and position information persist between tab and overlay 2011-02-11 22:16:32 +00:00
Simon Kornblith
c7e92b6e16 don't show menu separator when no locate engines are available 2011-02-11 21:55:48 +00:00
Simon Kornblith
8af3a30fa4 fix tab switch issues 2011-02-11 18:04:31 +00:00
Simon Kornblith
e30890711a - locate menu tweaks (needs more testing)
- add missing modifications for DB error when selecting tab in Fx 4
2011-02-11 08:07:20 +00:00
Simon Kornblith
2a8c514123 don't show startup error twice in standalone 2011-02-10 01:58:47 +00:00
Simon Kornblith
7984bb195c better startup error handling 2011-02-10 01:53:15 +00:00
Simon Kornblith
c20863e8fa don't call non-existent onLoad function, take 2 2011-02-10 01:08:52 +00:00
Simon Kornblith
328769ca09 revert last commit 2011-02-10 01:07:52 +00:00
Simon Kornblith
c589cd11e7 don't try to call non-existent onLoad function 2011-02-10 01:06:28 +00:00
Simon Kornblith
3ea54df059 fix for any other translators that create enormous arrays instead of objects 2011-02-10 00:35:48 +00:00
Simon Kornblith
8a49a28bbf fix broken preferences 2011-02-09 23:42:47 +00:00
Simon Kornblith
1d2395db0c fix locate menu in tab and standalone 2011-02-09 23:16:23 +00:00
Simon Kornblith
296c76ff3b fix xml/e4x mode on very large files 2011-02-09 22:10:10 +00:00
Simon Kornblith
a83fbb4fa8 fix import issues 2011-02-09 21:54:38 +00:00
Simon Kornblith
3fd0523b6e - fix preference links
- fix tab mode tooltip
- zotero://fullscreen opens standalone
2011-02-09 06:42:08 +00:00
Simon Kornblith
701845fa0a - remove attachment go buttons
- tweaks to locate menu behavior for attachments
2011-02-09 05:03:40 +00:00
Simon Kornblith
7d0e31bc95 make spage and epage work with en dashes 2011-02-09 04:54:08 +00:00
Simon Kornblith
ca29a0d6eb fix the "Restore Defaults" button 2011-02-09 04:27:05 +00:00
Simon Kornblith
1486132626 Add flexible locate menu, based on a (very heavily modified) copy of the pubget patch. Documentation is forthcoming. 2011-02-09 03:22:06 +00:00
Simon Kornblith
b6d2898a03 fix OpenURL preferences 2011-02-08 23:57:58 +00:00
Simon Kornblith
42761e8e0d fix Fx hang on extensions DB corruption 2011-02-08 11:59:00 +00:00
Simon Kornblith
fe1ce60a46 update to citeproc-js 1.0.110
From Frank's release notes:

With collapse="year", do not block the collapsing of subsequent
authors due to differences that are masked by et al. truncation of the
name list.
2011-02-07 08:47:15 +00:00
Simon Kornblith
ab96c38037 fix for fx 3.6 2011-02-07 08:26:06 +00:00
Simon Kornblith
d89dcd3b87 expose DOMParser to sandbox. this is way harder than it should be, but actually seems to work. 2011-02-07 08:21:23 +00:00
Simon Kornblith
481fed9c38 first pass at DOMParser for sandbox. this doesn't quite work yet. 2011-02-07 08:02:03 +00:00
Dan Stillman
45c4d15128 Catch "script stack space quota is exhausted" sync error and display an upgrade message 2011-02-07 07:33:20 +00:00
Simon Kornblith
a85a52dec0 don't actually need to worry about disabling reentrancy here 2011-02-07 07:00:25 +00:00
Simon Kornblith
508a08179c closes #1762: Save items from translators in a transaction 2011-02-07 06:57:41 +00:00
Simon Kornblith
c8ce422b95 fix window resizing 2011-02-07 05:30:28 +00:00
Simon Kornblith
7046f894ff fix item saving in group collections 2011-02-07 05:20:08 +00:00
Simon Kornblith
9a82adb3a5 don't break Zotero.Utilities.HTTP on Fx 4 2011-02-07 04:46:18 +00:00
Dan Stillman
3b294949bc Remove an erroneous debug line 2011-02-07 00:08:11 +00:00
Dan Stillman
a78665fdf5 Remove <Fx3.5 code 2011-02-07 00:02:43 +00:00
Simon Kornblith
eee772d893 - closes #1778: Zotero.Cite.makeFormattedBibliography throws an error when citeproc-js output contains &nbsp;
- update to citeproc-js 1.0.109

From Frank's release notes:

Use numeric rather than named entities when producing HTML, to avoid
error if the output is processed as XML in an environment in which
named entities have not been declared.
2011-02-06 21:51:07 +00:00
Simon Kornblith
8deb7043fc use getXULWindowEnumerator to work around a bug I encountered on Linux (even though this code was based on an example on MDC, apparently it doesn't work quite right) 2011-02-06 07:16:10 +00:00
Simon Kornblith
51b5c8322e fix statusBarOverlay to call ZoteroOverlay.toggleDisplay() 2011-02-06 06:53:41 +00:00
Simon Kornblith
23edf0d415 merge citeproc-js 1.0.108 from multilingual 2011-02-06 00:43:20 +00:00
Simon Kornblith
e81390b177 forward compatibility with standalone translation
(see http://www.zotero.org/support/dev/zotero_2.1_and_zotero_standalone_for_developers)
2011-02-06 00:17:22 +00:00
Dan Stillman
8479aef5f9 Possible fix for "script stack space quota is exhausted" download sync error (trunk) 2011-02-04 09:00:05 +00:00
Simon Kornblith
d43dbefc4e fix Fx 3.6 compatibility, accidentally broken by last commit 2011-02-04 03:52:53 +00:00
Simon Kornblith
f1909346d9 - fix notes in Firefox 4 beta (broken due to bug 628410)
- fix notes in the tab (this seems like an unnecessarily complex solution, but it works)
2011-02-04 03:51:33 +00:00
Simon Kornblith
b22894006a more Fx 3.6 fixes 2011-02-03 20:51:41 +00:00
Simon Kornblith
f4f326601d support Zotero tab in Fx 3.6 2011-02-03 20:46:48 +00:00
Simon Kornblith
dcb440d458 update to citeproc-js 1.0.106
Fix a flaw in disambiguation logic that could result in a processor
hang, when a creator list with fewer names than its predecessor
required additional names to accomplish disambiguation.

Include the year-suffix as a sortable number string in dates used as
sort keys. Citations that include a year-suffix will now sort
correctly within the citation.

Restore XML to defaults before creating E4X objects.

Repair the processor demo page, which broke after revision 1.0.95.
2011-02-03 20:27:18 +00:00
Simon Kornblith
0578c01899 fix some cases where multiple Zotero tabs could be open 2011-02-03 20:22:56 +00:00
Simon Kornblith
e26b292324 let toggleTab() take an explicit mode argument 2011-02-03 07:20:02 +00:00
Simon Kornblith
9dd8a7119d remove some debug code 2011-02-03 07:10:19 +00:00
Simon Kornblith
9d50ee9317 closes #1750: Show determinate progress bars for import/export 2011-02-03 07:04:14 +00:00
Simon Kornblith
fbb7f79689 appropriately handle case where tab is loaded before window finishes loading 2011-02-03 05:35:47 +00:00
Simon Kornblith
b001c5433f fix a few issues opening the zotero pane 2011-02-03 05:05:11 +00:00
Simon Kornblith
c722bbff56 ditch ZoteroPane.getActiveZoteroPane() and just make window.ZoteroPane refer to either tab or pane, depending on which is active 2011-02-03 05:00:08 +00:00
Simon Kornblith
ddcdfb6961 closes #1779: Some CSLs can only be parsed once
Restore global XML properties when Zotero.Cite.makeFormattedBibliography() is complete. At some point, we should probably modify our existing uses of E4X not to rely on these properties being set to their defaults.
2011-02-02 22:18:34 +00:00
Simon Kornblith
0a4fe5725e update to citeproc-js 1.0.105
From 1.0.100:

Allow institutional names to collapse correctly when cite collapsing
options are in effect.

Add an option to identify Vietnamese names and format them correctly
(i.e. always family name first). There is a small possibility of false
positives, so the option is off by default. See the processor manual
for details: http://gsl-nagoya-u.net/http/pub/citeproc-doc.html

From 1.0.101:

Add sortkeys array to skeleton items received during
restoreProcessorState() if it is undefined. Avoids a processor crash
on the first Zotero 2.1 connection to a Zotero 2.0.9 document.

From 1.0.102:

When rendering non-ranged cites collapsed  with collapse="year-
suffix", and the year suffix is implicit (not being rendered through a
cs:text node with variable="year-suffix"), add the necessary splice
delimiter details to the number object.

Protect against undefined name.multi.main when checking headline names
for a name tag.

From 1.0.103:

Add a reference to item data in registry objects.

Provide a registry method getSortedRegistryObjects() to return current
bibliography data.

Document new registry method in processor manual.

From 1.0.104:

Make restoreProcessorState() notice that the sequence of citations has
changed, and assign fresh citation IDs to duplicate citations in the
input.

From 1.0.105:

Assure that all ids passed into an array or as a straight variable are
stringified. Loosen condition statements where appropriate to treat
numeric IDs of string and numeric type as equivalent.
2011-02-02 06:49:20 +00:00
Simon Kornblith
a9132a2be2 addresses #1773, RDF read from disk works once, fails after
This fixes some issues with streams being closed due to overzealous garbage collection in Firefox 3.6. I'm not sure if this is the same as #1773 or not, but it certainly produces export errors.
2011-02-02 05:42:16 +00:00
Simon Kornblith
0a91608268 fix for a last-minute Fx 4 API change. this at least gets the translator infrastructure working, but the API change may result in a good amount of translator breakage as well. 2011-02-02 04:39:42 +00:00
Simon Kornblith
623e2dd150 move last line of embedded js in overlay.xul to overlay.js 2011-02-01 10:51:59 +00:00
Simon Kornblith
df28ad6e76 should probably have thought harder before the last commit. change all lets to var, since it doesn't make a difference in this scope. 2011-02-01 07:24:59 +00:00
Simon Kornblith
4283134d32 don't throw on locale not found, just return false 2011-02-01 07:24:01 +00:00
Simon Kornblith
156f2be269 closes #1771, citeproc-js breaks initial Quick Copy drag after Firefox startup
caused by an XHR, which inexplicably breaks dragging behavior
2011-02-01 07:23:01 +00:00
Simon Kornblith
3b78e8ff39 also change back init call 2011-02-01 07:05:29 +00:00
Simon Kornblith
f326fb2aad change back pref key 2011-02-01 06:31:34 +00:00
Simon Kornblith
c107fcf18a don't try to update keyElem when there is no open zotero key 2011-02-01 06:24:52 +00:00
Simon Kornblith
3bcd421f07 add getActiveZoteroPane() call to global Zotero object 2011-01-31 20:28:42 +00:00
Simon Kornblith
25fbec095f fix hasBibliography call for dependent styles 2011-01-31 20:16:06 +00:00
Simon Kornblith
d6c160fb5b fix tab loading issues 2011-01-30 10:08:38 +00:00
Simon Kornblith
a3fe51e8a5 fix another typo 2011-01-30 09:54:32 +00:00
Simon Kornblith
faf2f539f3 fix typo 2011-01-30 09:53:22 +00:00
Simon Kornblith
02efb56902 fix some ZoteroPane references 2011-01-30 09:52:51 +00:00
Simon Kornblith
ecf0f3397c Zotero as a tab. This may need to be backed out for 2.1 depending on the amount of trouble it generates. 2011-01-30 09:44:01 +00:00
Dan Stillman
e1c770bef7 Remove Full Sync option from preferences 2011-01-29 01:24:47 +00:00
Simon Kornblith
621af3b301 fix import failure when an attachment has no path or uri 2011-01-28 22:48:07 +00:00
Simon Kornblith
d850b290aa fix automatic import based on MIME type 2011-01-28 22:19:00 +00:00
Simon Kornblith
ee00d32117 update to citeproc-js 1.0.99
From 1.0.94:

The input format for multilingual data changes in this version.  The
change affects only multilingual data; ordinary input is not affected.

The previous multilingual input format, intended only for testing,
relied on string parsing to identify multilingual data embedded in a
given field. While this strategy worked for initial testing (its sole
intended purpose), it is cumbersome and potentially fragile.

The multilingual input data format recognized beginning with this
version of citeproc-js separates multilingual content properly into
separate elements, resulting in simpler design and more robust
operation.

The change to the multilingual input format is not backward
compatible; in the unlikely event that any  existing projects have
relied upon the old format, adjustments will be required to run this
version of the processor.

From 1.0.95:

Render multilingual names atomically, and do not modify the content of
names objects during processing. This permits implementation of
alternative name forms, needed to accomodate a new style rule in
scientific publishing, that permits author names to be given in the
original script alongside the romanized form.

Implement the rendering of original name forms, where an alternative
form of the name is used for the primary rendering.

From 1.0.96:

Fixes a global variable assignment. Important for stability.

From 1.0.97:

Replace the methods setLangTagsForCslNameTransliteration() and
setLangTagsForCslTitleTransliteration() with a single method
setLangTagsForCslTransliteration().

Change the multilingual parameters available through the default-
locale attribute of style files (parameters used primarily for
testing, not production) to reflect the API change described above.

Add method setOriginalCreatorNameFormatOption() to the control API.
This allows the name ordering and initialization conventions of
transliterated names either to track those of the original language,
or to follow the conventions of the target script.

Document new setOriginalCreatorNameFormatOption() method and  the
previously added method setOriginalCreatorNameFormsOption() in the
processor manual, and update the description of testing parameters
available via the default-locale attribute.

From 1.0.98:

Properly honor et-al-subsequent-min when it is smaller than et-al-min
(which it ordinarily is).

From 1.0.99:

Fix loop constraint variable misassignment that was a likely cause
behind the word processor plugin stability issue reported in the
following discussion thread:

http://forums.zotero.org/discussion/15777/error-updating-openofficeorg-document-in-21b/
2011-01-26 19:04:08 +00:00
Sean Takats
f10381a84e Trevor is dead, long live Debbie. Faolan is "promoted." 2011-01-26 02:07:51 +00:00
Simon Kornblith
9408d468f7 hide browser chrome on zotero apptab 2011-01-24 19:41:44 +00:00
Simon Kornblith
1a3d616c2d - add support for Zotero as a separate tab (currently only via loading chrome://zotero/content/tab.xul)
- tweak twisty appearance on OS X (highlight-on-click is gone, but this seems preferable to the previous behavior)
- simplify chrome.manifest for standalone
2011-01-24 10:29:36 +00:00
Dan Stillman
bd796aec41 Fix prompt after restart on Restore from Server 2011-01-21 06:21:26 +00:00
Simon Kornblith
762d51059d fix automatic standalone migration on Linux 2011-01-17 21:53:49 +00:00
Simon Kornblith
f4ac1c0b55 don't show proxy options in standalone 2011-01-17 17:14:58 +00:00
Simon Kornblith
efe3121805 allow setString to be called multiple times over the lifetime of a Zotero.Translate object
fixes issues retrieving multiple items from Google Scholar
2011-01-17 16:14:21 +00:00
Simon Kornblith
daada078a2 fix file import bug 2011-01-17 15:48:05 +00:00
Simon Kornblith
d7dc47f3f5 revert a line of code accidentally included in r7734 2011-01-17 07:43:58 +00:00
Simon Kornblith
259c286db7 - fix export when dataMode is undefined (translate architecture should assume plain text)
- don't use "null" as a file extension
2011-01-17 07:42:22 +00:00
Simon Kornblith
a552bb19bd hide "get word processor plug-ins" link in standalone 2011-01-14 21:25:05 +00:00
Simon Kornblith
06e446a527 Only start dummy statement when backup completes if it was running before backup. Fixes broken upgrades in 2.1b3. 2011-01-14 20:28:29 +00:00
Dan Stillman
a709b779a7 Update CSL 1.0 locales from bitbucket 2011-01-14 18:04:38 +00:00
Simon Kornblith
697e840d4e set label on Report Errors... menu option properly 2011-01-14 07:48:42 +00:00
Simon Kornblith
9da1a2b9e0 don't give addonsbar-related error messages in standalone 2011-01-14 07:40:27 +00:00
Dan Stillman
823a9b08f2 Open "New Group" page in browser from Standalone 2011-01-13 23:53:32 +00:00
Dan Stillman
d359974bb7 Give option to use default Standalone location when a <2.1b3 directory is selected 2011-01-13 23:51:19 +00:00
Dan Stillman
2f802fe74d Don't start Standalone on databases from <2.1b3 2011-01-13 20:52:15 +00:00
Simon Kornblith
92262774a2 general fix for JSTOR-like E4X wrapping issues 2011-01-13 19:56:10 +00:00
Dan Stillman
f712ea8d40 - Reestablish database lock after on-idle backup -- the lock was being lost, which allowed Standalone (and other SQLite clients) to corrupt the database
- Don't attempt to backup database on shutdown, since it doesn't seem to work anymore and can delay shutdown
- Change idle backup check timer to 60 seconds from 10 seconds
2011-01-13 14:21:19 +00:00
Simon Kornblith
9176118494 unspecified changes 2011-01-12 23:39:12 +00:00
Simon Kornblith
78205c2482 Fix integration failures after switching commands. 2011-01-12 18:44:28 +00:00
Dan Stillman
5ae9bd41ae Fix bug in hangingindent HTML output 2011-01-11 20:59:36 +00:00
Dan Stillman
43effcb1a6 Update a couple comments 2011-01-11 19:44:56 +00:00
Dan Stillman
0bb4b0afdd Replace deprecated calls 2011-01-11 19:44:27 +00:00
Simon Kornblith
fed87c5441 don't leak browsers from connector 2011-01-11 05:02:40 +00:00
Simon Kornblith
18aa61918d don't check in Standalone, which has Zotero.isFx set to true 2011-01-11 04:56:13 +00:00
Simon Kornblith
291c87737c only check for private browsing mode in Firefox (it doesn't exist in xulrunner) 2011-01-11 04:55:09 +00:00
Simon Kornblith
3acdc18d88 fix report of translation failure in standalone 2011-01-10 21:41:01 +00:00
Dan Stillman
78a92255d8 - Add the Zotero icon to the add-on bar instead of the status bar in Fx4
- Make the add-on bar visible if the Zotero icon isn't set to hidden, which is an annoying way of dealing with https://bugzilla.mozilla.org/show_bug.cgi?id=616419 not yet landing -- people who use an upper toolbar button and don't want the add-on bar to show will need to set the Zotero icon to hidden

Addresses #1726, Firefox 4 Compatibility
2011-01-07 06:36:31 +00:00
Dan Stillman
5ceb3f4cf7 Closes #1754, [PATCH] MIME type sniffing of PDFs is too strict for some real-world files
Look for "%PDF-" anywhere in the first 128 bytes
2011-01-07 04:10:52 +00:00
Dan Stillman
45bc19c06a - Fix WebDAV deleted file purging
- Reenable WebDAV orphaned file purging (currently once every ten days)

Also:

- Create pref of appropriate type automatically in Zotero.Prefs.set() if one doesn't exist
2010-12-26 19:04:09 +00:00
Dan Stillman
f7765be35c Fix Stop button for WebDAV Verify Server 2010-12-26 17:31:15 +00:00
Dan Stillman
e2ff2c3ab7 Fix a tag syncing edge case (which shouldn't be possible with production sync server) 2010-12-26 09:14:55 +00:00
Dan Stillman
3f28260507 Remove all references to deprecated nsDragAndDrop, and remove some obsolete drag code 2010-12-26 03:40:35 +00:00
Dan Stillman
642a857a29 Fix drag from advanced search window 2010-12-26 03:08:35 +00:00
Dan Stillman
1b7e2b412b Fix tag selector drag and drop in Firefox 4 2010-12-26 02:49:49 +00:00
Dan Stillman
31f9378da5 - Add trash auto-empty setting to visible prefs
- Tweak Zotero version header tooltip
2010-12-26 01:52:47 +00:00
Dan Stillman
17119aadd1 Use proper collation sort for creators 2010-12-23 08:08:31 +00:00
Dan Stillman
0347b576e6 Closes #1656, Creator sort should include firstName
Needs some testing

Also cleaned up sorting code a little bit
2010-12-23 07:35:32 +00:00
Dan Stillman
c8cca79217 Fix creator type menu and field transform popup for Fx4 compatibility
Addresses #1726, Firefox 4 Compatibility
2010-12-22 08:59:22 +00:00
Simon Kornblith
dd665ec41f try to load libc from libc.so.6 on Linux (since this appears to work, but loading from libc.so fails) 2010-12-21 19:12:17 +00:00
Simon Kornblith
8c80d6acb6 - update to latest update.xsl
- update to citeproc-js 1.0.93

From 1.0.93:

Cast human-readable dates parser as a separate JS module, and provide
documentation in the processor manual.

Small change to multiple value handling in cs:number.

From 1.0.92:

Fix wrong ordinal suffix assignment for values 11 - 13 (for English,
at least).

From 1.0.91:

Set circa rather than fuzzy on uncertain dates in the internal human-
readable dates parser.

From 1.0.90:

Reimplement language conditions through cs:layout rather than
cs:choose.

From 1.0.89:

In language condition statements, allow multiple locales to be
specified in a condition; restrict fallback behavior to base (single
two-character) locale specifiers; and use the first locale listed in
the attribute as the locale to be assigned to children of the
condition when the test is successful.

Properly honor locale for quotes and punctuation in language condition
statements.

Implement dynamic locale-sensitive layout delimiter and affixes with
language condition statements.

Fix minor bug in xmle4x.js XML parser that affected some locale load
operations that can arise when executing language condition
statements.
2010-12-21 18:37:06 +00:00
Simon Kornblith
b43c6da675 disable full screen button in standalone (for now, until preview pane is implemented) 2010-12-21 05:54:33 +00:00
Simon Kornblith
e71bed5297 fix minor error 2010-12-21 05:50:32 +00:00
Simon Kornblith
493b3225f6 improve error handling in integration worker 2010-12-21 05:49:53 +00:00
Simon Kornblith
03f8f11156 fix display glitches in Fx 4 2010-12-21 03:45:27 +00:00
Simon Kornblith
e36979747e changes to integration error handling:
- show the error message for errors during initialization
- allow Python to throw ExceptionAlreadyDisplayed to suppress a further error message
2010-12-20 23:50:47 +00:00
Simon Kornblith
e681b4698f enable integration pipe on patched 2.0b9pre builds (unpatched builds will log an error) 2010-12-20 05:11:22 +00:00
Simon Kornblith
7a4782073c remove globalRegionDTD from standalone.xul (breaking xulrunner 11/12+) 2010-12-20 04:46:43 +00:00
Simon Kornblith
0ccc6d0892 don't need bufPtr 2010-12-19 06:41:33 +00:00
Simon Kornblith
1ed0c88c32 protect against potential buffer overflow 2010-12-19 06:28:37 +00:00
Simon Kornblith
afea210a99 add missing file 2010-12-19 06:27:42 +00:00
Simon Kornblith
66b1ce048d - Update integration pipe code so that it will work with Fx 4.0b9 once it is released. At the moment, this only works if Firefox is patched with the patch at https://bugzilla.mozilla.org/show_bug.cgi?id=615153, which requires compiling from source.
- Fix integration issues with Minefield.
2010-12-19 06:26:47 +00:00
Dan Stillman
a97d70da9e Fix broken error reporting 2010-12-14 17:39:06 +00:00
Dan Stillman
17fae0d657 Fix tag not disappearing on removal from item if tag selector is closed 2010-12-13 22:28:45 +00:00
Dan Stillman
07c450acbf Remove unnecessary joins 2010-12-13 22:10:06 +00:00
Dan Stillman
2f7bf480c0 Display proper error message if Zotero directory or Zotero database is not writable, instead of just if the database isn't readable 2010-12-13 22:09:20 +00:00
Dan Stillman
ef36b39454 Use separate buttons for "Reset Translators" and "Reset Styles" in preferences 2010-12-13 22:07:13 +00:00
Dan Stillman
045667fe93 Fixes #1724, Missing box around tags popup in attachment metadata pane in Firefox 4 2010-12-13 21:25:31 +00:00
Dan Stillman
f4cfba06d3 Fixes #1708, discontinuities in context menus in Fx4 2010-12-13 21:20:45 +00:00
Dan Stillman
cba0c0ad51 Replace WebDAV HEAD requests with GET requests 2010-12-13 18:20:06 +00:00
Simon Kornblith
4bdfa5f30b revise comment 2010-12-12 13:29:28 +00:00
Simon Kornblith
43670e3d4c fix invalid XML on export due to quotation marks in URI 2010-12-12 13:24:47 +00:00
Simon Kornblith
e01aa91e49 check UTF-8 in separate chunks, since running a regexp on too much data produces an error 2010-12-12 07:16:00 +00:00
Simon Kornblith
071c05e0bb return en-US test, which i had disabled for testing 2010-12-11 07:02:24 +00:00
Simon Kornblith
83d34a9f77 load date strings from Fx dateFormat bundle instead of using citeproc-js 2010-12-11 07:00:42 +00:00
Simon Kornblith
ac9d524a9f update to citeproc-js 1.0.88
From 1.0.82:

Fixes to cs:if and cs:else-if logic.  Was failing to set the match
attribute on singleton nodes, among other things.

Treat greek letters as part of the "romanesque" character set,  for
name formatting purposes.

If cs:number input has numbers separated by spaces, but also
extraneous non-comma, non-ampersand, non-hyphen characters, then
render as literal.

From 1.0.83:

Use en-dash rather than hyphen in formatted page range joins.

From 1.0.84:

Preserve explicit double spaces in HTML output.

From 1.0.85:

Pass full suite of double space suppression tests.

Language switching within a style works, for both localized dates and
terms.  (This functionality is not yet valid in CSL.)

From 1.0.86:

Address bug that caused unreasonable delays with large namesets.

From 1.0.87:

Where et-al-min, et-al-subsequent-min or names-min are set to some
value larger than zero, and the number of names in a nameset exceeds
an arbitrary threshold of 50, truncate author lists that are longer
than the *-min value (plus a buffer value of 2), to raise performance
to a  reasonable level with large namesets.

From 1.0.88:

Adjustments to language condition logic, to use only the base language
name for matching, while applying the full locale specified in the
conditional to node children.

Refinements to the recently introduced handling of brace-enclosed
leading characters as initialized form of names.

Adjustments to print statement arbitration, with a view to playing
nice with various systems.
2010-12-10 07:12:08 +00:00
Simon Kornblith
070c8eb7a5 fix code mistakenly removed in r7384 2010-11-30 21:02:34 +00:00
Simon Kornblith
17466694bb fix error message display during Standalone startup 2010-11-30 20:59:21 +00:00
Simon Kornblith
add7bef0be Show a meaningful error message when multiple instances of Zotero are open simultaneously 2010-11-30 20:34:08 +00:00
Dan Stillman
a50167ac40 Add support for second-field-align to HTML mode 2010-11-27 00:03:25 +00:00
Simon Kornblith
de1df45444 don't disable animation when saving snapshots in Fx4, as this appears to result in a crash 2010-11-23 21:37:03 +00:00
Dan Stillman
5d622b91f0 Bibliography HTML: move line-height to root div and disable some comments 2010-11-22 20:40:08 +00:00
Simon Kornblith
c6f3e0b844 - Update to citeproc-js 1.0.81
- Fix "myxml.localName() is null" when using dates on non-base locales

Thanks to Frank for dealing with my pestering regarding locale behavior.

From citeproc-js 1.0.78:

Enable the proper parsing and rendering of seasons in ranged dates, in
the internal dates parser.

From citeproc-js 1.0.79:

Correct fault in locale fallback behavior.  Had been ignoring optional
default argument set in the processor.

From citeproc-js 1.0.80:

More fixes to locale selection behavior.

Provide a toggle to override the locale of a style with the locale set
on the processor at runtime.

From citeproc-js 1.0.81:

Yet more fixes to locale selection logic. Now uses en-US as ultimate
fallback, for any missing terms or missing locales.
2010-11-22 19:33:22 +00:00
Dan Stillman
b2bcff1dac Disable debug output 2010-11-22 19:19:22 +00:00
Dan Stillman
fbee8ece40 Include inline CSS when generating HTML bibliographies
Rules based on primitive.css from citeproc-js demo, with some modifications

second-field-align is not yet supported
2010-11-22 19:18:54 +00:00
Simon Kornblith
62d2af7d4c fix calling search translators from web translators with different sandboxes 2010-11-21 02:52:50 +00:00
Simon Kornblith
87363fbe2e - update citeproc-js to 1.0.76
- fix issues with RTF export of brackets

From 1.0.71:
Variables (including names) should be (and have been) suppressed when
rendered via the cs:substitute node of cs:names.  Prior to this patch,
however, citeproc-js was unconditionally suppressing name variables
after their first use within a given cite, and this behavior differed
from the Zotero CSL 0.8.1 processor.  This patch restores the original
behavior, allowing names rendered outside of cs:substitute to be used
repeatedly within a cite.  (The only exception to this behavior is a
name rendered with et-al-min=1 and et-al-use-first=1, which will be
clipped from subsequent output within the same cite.)

The processor was using the localized close-inner-quote character for
apostrophes.  This caused problems in styles that use alternative
quotation marks.  The processor now uses a hard-coded apostrophe
character for apostrophes.

A bug in the normalization of names, for disambiguation purposes, that
contain punctuation or extraneous spaces has been fixed.

From 1.0.72:
Allow simple range, comma, and ampersand joins in the input to
cs:number, to permit "1st-2nd",  "xi-xv", etc.  When multiple numbers
are given, the following operations are performed: (1) ranges are
expanded and the numbers are converted to a list; (2) the resulting
list is sorted; (3) duplicates are eliminated; (4) ranges are
truncated; (5) numeric formatting is performed; and (6) appropriate
punctuation is applied to the result. (As of this writing, the use of
multiple numbers with cs:number is not covered by the CSL 1.0
specification, so this is an anticipatory change.  It is consistent
with the CSL 1.0 schema, however, and does not have any effect on
single input numbers. Production use of multiple number, issue,
volume, and edition variables should await the formal approval of a
CSL 1.0 schema change to allow the use of these variables with
cs:label, for contextual pluralization of any associated label.)

Eliminate space following a trailing apostrophe on a dropping-
particle, when immediately followed by the family name part in
rendered output.

Recognize multiple parameters to a position attribute on cs:if and
cs:else-if, per the CSL 1.0 schema.  For the fix, we eliminate cutted-
and-pasteded code from node_if.js and node_elseif.js, and consolidate
all position node-level position logic in attributes.js.

From 1.0.73:
Limit the recognition of multiple numbers to cases in which they are
separated by at least one space, to prevent the accidental
reformatting of things like "Document no. 1-3752,42".

From 1.0.74:
Recognize new Khmer locale for CSL provided by Hem Sras.

When parsing number ranges in the input to cs:number, abort parsing
when spread of range is over an arbitrary limit of 1000.

Support names-use-last attribute on cs:key. (Anticipatory change to
support upcoming change to CSL schema and specification.)

Use unicode ellipsis character rather than (nonexistent) locale term
when splicing author listings trucated with et-al-use-last.

From 1.0.75:
Do not apply decorative formatting to name suffixes.

Fix breakage in ordinal suffix formatting for days in a date.

For an all-lowercase name suffix (such as an explicit "et al."),
exclude the suffix from the name for disambiguation purposes, and
include it in the strict short form of the name in the short form of a
citation.

Add and recognize delimiter-precedes-et-al attribute, in line with
draft CSL proposal.

Implement grammatical gender sensitivity for ordinal suffixes, in line
with draft CSL proposal.

From 1.0.76:
Fix bug in locale processing, arising from the previous release, that
could trigger a processor crash.
2010-11-20 22:37:38 +00:00
Simon Kornblith
3a9adcc25e closes #1747, Improvements to OpenURL ContextObject support
patch thanks to Avram
2010-11-20 22:16:21 +00:00
Dan Stillman
d4550807d8 Fix incorrect WebDAV error calls 2010-11-15 19:48:29 +00:00
Dan Stillman
a1865f5e18 Clear previousData after item save 2010-11-15 06:49:40 +00:00
Dan Stillman
e95a919c12 Display more helpful error message for nsIFile.remove() error 2010-11-14 00:38:05 +00:00
Simon Kornblith
57eb90196c closes #1734, Map CSL number-of-pages to Zotero numPages
Thanks Frank, and sorry for overlooking this
2010-11-10 01:56:47 +00:00
Dan Stillman
593d90c29d Re-enable object element (without wildcard attributes) in notes on trunk and 2.1b2 tag 2010-11-09 21:06:57 +00:00
Dan Stillman
b76d788133 Fix an issue that could cause a sync error (and maybe other tag-related problems) in very old databases 2010-11-08 09:29:35 +00:00
Simon Kornblith
734472fbe4 fix search translation fallback issues 2010-11-08 08:00:13 +00:00
Simon Kornblith
c6663988dc fix OpenURL issue 2010-11-08 07:51:03 +00:00
Simon Kornblith
dd5942c538 fix handling of files without extensions 2010-11-07 07:38:50 +00:00
Simon Kornblith
a7a911683c update to citeproc-js 1.0.70
From Frank's release notes for 1.0.69:

Suppress a leading prefix character that is nested at an arbitrary
depth on the subsequent sibling hierarchy of the current output blob
object, where it would result in duplicate punctuation in the
flattened output.

Fix over-aggressive suppression, on subsequent items, of variables
that are called through cs:substitute (and are therefore suppressed
within the current item).

Define print statement conditionally, following suggestions from
Carles Pina and Fergus Gallagher.

Limit suppression of a year that is identical to the volume number
only for cites in which volume and container-title are both rendered,
and volume precedes container-title.  Suppression allows legal cites
such as The King v. Lockwood, 99 Eng. Rep. 379 (K.B. 1782) and
Hastings v. Perkins, 1930 P. 217 (Eng. C.A.) to be handled with a
single item type and without resorting to presentation toggles in the
input data.  Limiting suppression to cites in which a rendered volume
precedes a rendered container-title prevents this behavior from
corrupting other citation forms.

From Frank's release notes for 1.0.70:

Adopt conventions from Chicago 16th ed. for commas that follow
terminal punctuation in user content fields such as title.
2010-11-07 05:08:15 +00:00
Simon Kornblith
a1f52aede4 slightly less ugly hack for opening cite preferences 2010-11-07 04:36:39 +00:00
Simon Kornblith
a1f327a97a tweaks to prefs window opening 2010-11-07 04:18:58 +00:00
Simon Kornblith
0e46cdec10 don't try to wrap null 2010-11-07 03:38:42 +00:00
Simon Kornblith
f0ff19fd05 fix error report submission 2010-11-07 03:38:29 +00:00
Simon Kornblith
352158b48c - add ZU.deepCopy()
- fix attachment export/import
- make Translator return a copy of displayOptions or configOptions objects
- adjust file export functions for above change
2010-11-07 03:13:58 +00:00
Simon Kornblith
983673e354 - don't export duplicate items
- don't export top-level collection name
- use file name for name of collection when importing
2010-11-06 22:20:53 +00:00
Simon Kornblith
4df28f93cb don't use getters, since they probably don't save much memory and they don't seem to work with Fx3.6 wrappers 2010-11-06 21:35:06 +00:00
Simon Kornblith
e531493ba0 fix collection import/export 2010-11-06 20:52:15 +00:00
Simon Kornblith
8027e6c4f2 fix accidental global variable 2010-11-06 19:51:31 +00:00
Simon Kornblith
32d97b9ef9 correct automatic handlers 2010-11-06 19:48:31 +00:00
Simon Kornblith
379888eec4 fix search translation and get rid of unnecessary instanceof calls 2010-11-06 19:42:28 +00:00
Simon Kornblith
219cc49988 - fix RDF file left open after completion
- fix failure to serialize RDF to string
- fix failure to report translation errors
- fix error when translating without specifying displayOptions
2010-11-06 17:10:08 +00:00
Simon Kornblith
b8d89b9d60 fix incorrect creatorType 2010-11-06 05:16:48 +00:00
Simon Kornblith
e979a55c6d remove debug code 2010-11-06 04:58:05 +00:00
Simon Kornblith
ff9b7bb1ce fix related item bug that appears to be due to inability to iterate over SJOW 2010-11-06 04:57:16 +00:00
Simon Kornblith
1703dfe5cc remove debug code 2010-11-06 04:08:25 +00:00
Simon Kornblith
58bfd33556 fix attaching notes and tags 2010-11-06 04:07:04 +00:00
Dan Stillman
65ffe8ae4c Estonian localization from Meelis Friedenthal 2010-11-06 02:01:00 +00:00
Dan Stillman
dd53cb5da9 Fixes #1745, Observe private browsing mode
Don't report translator failure if in private browsing mode

Thanks to ajlyon for the patch
2010-11-05 23:00:48 +00:00
Simon Kornblith
fb91854601 don't load all addons on Fx4 startup 2010-11-05 05:05:36 +00:00
Simon Kornblith
6d320ab307 tag saving fix and remove unnecessary attachment code 2010-11-05 04:11:08 +00:00
Simon Kornblith
924c537473 perform full same origin check on translator for getTranslatorObject(), rather than checking equality of URIs 2010-11-05 03:34:20 +00:00
Simon Kornblith
ee101b5bc0 fix getTranslatorObject(), and throw an error if cross-site getTranslatorObject() is attempted 2010-11-05 03:26:00 +00:00
Simon Kornblith
253e439a0c fix DOM XML 2010-11-05 03:14:36 +00:00
Simon Kornblith
36cba09f6d make MODS work with Fx 4 2010-11-05 03:12:22 +00:00
Simon Kornblith
3409811b6c Zotero.CreatorTypes.getLocalizedString() 2010-11-05 03:11:49 +00:00
Simon Kornblith
3c28e25eab remove abstracted data layer calls 2010-11-05 03:10:56 +00:00
Simon Kornblith
925bc7ca5b fix 2.1b1-related field code corruption 2010-11-05 02:52:14 +00:00
Simon Kornblith
b31eb91a4a undo apparent revert of r7224 by merging r7225 2010-11-04 17:09:09 +00:00
Simon Kornblith
f4d722d028 don't leave TabSelect uncommented 2010-11-04 01:31:30 +00:00
Simon Kornblith
d9fb09c1d6 fix handling of tab switching in Fx4 2010-11-04 01:30:59 +00:00
Dan Stillman
7ecb788615 Fix typo in Swedish localization 2010-11-03 17:38:27 +00:00
Simon Kornblith
4c4998b7f8 fix "me" 2010-11-03 15:31:00 +00:00
Simon Kornblith
3f2a8a39ab - Overhaul of Zotero.Translate instance. New code should use new Zotero.Translate.Web, Zotero.Translate.Import, etc. The core Translate class is now abstracted away from data access, read/write IO, and the sandbox API. This all needs more testing.
- Translators now use configOptions and displayOptions properties in their metadata instead of Zotero.configure() and Zotero.addOption() to specify interfaces.
- Replaced now broken Zotero.Utilities.inArray() appearances in MODS.js with proper indexOf() calls
2010-11-02 21:39:54 +00:00
Simon Kornblith
f6e09f7103 Update to citeproc-js 1.0.68
From Frank's release notes:

Further refactoring of output queue mechanism, to unify all quote-
swapping and detection code for duplicate terminal punctuation and
spaces in a single function.  No changes to behavior, unless there is
a hole in the test suite somewhere.

Fix an output nesting mismatch error triggered by items with two
institutional authors in sequence, when rendered with a style that
sorts on the bibliography.

In the output queue mechanism, fix a bug in the migration of a leading
terminal character in a prefix to the preceding sibling suffix.
2010-10-31 18:18:11 +00:00
Simon Kornblith
8207201c6a merge r7225 to trunk 2010-10-31 05:19:43 +00:00
Simon Kornblith
2f5fc456c7 don't double-wrap properties 2010-10-30 17:38:58 +00:00
Simon Kornblith
cd7211da99 update to citeproc-js 1.0.67
From Frank's release notes:

Reimplement duplicate terminal punctuation handling in new
adjustPunctuation() function. Remove old functions used for this
purpose, which were excessively complex and fragile. Some operations
in queue.js may now be redundant, since the new code does a much
better job of cleaning up the output queue in advance of
serialization.

Clears some remaining duplicate punctuation issues.

Corrects errors in the placement of punctuation where multiple
terminal punctuation marks span a formatting boundary (i.e. italics,
boldface, etc.).
2010-10-28 17:00:09 +00:00
Simon Kornblith
f10b1dbd94 don't actually need isConnector 2010-10-27 02:45:39 +00:00
Simon Kornblith
214d857861 fix startup error on Fx 3.6 2010-10-27 02:45:04 +00:00
Simon Kornblith
e0e84bc22a - eliminate for each in future cross-browser code
- move itemTypeExists, getCreatorsForType, and getLocalizedCreatorType back under ZU
- modify OpenURL code to use ZU.itemTypeExists
2010-10-27 02:10:45 +00:00
Simon Kornblith
e61dd60024 move Zotero.Date and Zotero.OpenURL to independent files 2010-10-27 00:36:20 +00:00
Simon Kornblith
d22ccf2219 Zotero.Utilities changes:
- Zotero.Utilities is now a singleton
- Zotero.Utilities.HTTP is now Zotero.HTTP
- Zotero.Utilities.md5 and Zotero.Utilities.Base64 are now located under Zotero.Utilities.Internal
- Zotero.Utilities.AutoComplete has been eliminated

This needs testing to make sure there is no associated breakage.
2010-10-25 00:58:47 +00:00
Simon Kornblith
21a2188caa move getSQLDataType to Z.DB 2010-10-25 00:17:53 +00:00
Simon Kornblith
acdc36c9a1 kill ZU.isInt 2010-10-25 00:01:10 +00:00
Simon Kornblith
8d3e25dbfa kill ZU.min3 2010-10-25 00:00:29 +00:00
Simon Kornblith
a4cb8608da remove ZU.probability 2010-10-24 23:55:50 +00:00
Simon Kornblith
85b703aa33 kill Zotero.arrayToHash, which looks like it was never used, and Zotero.hasValues 2010-10-24 23:49:00 +00:00
Simon Kornblith
8bf5a5fb17 also remove inArray from ZU 2010-10-24 23:42:33 +00:00
Simon Kornblith
f1402708c0 kill Zotero.inArray() and Zotero.arraySearch() 2010-10-24 23:41:32 +00:00
Simon Kornblith
9e3f4576d2 check the right type variable 2010-10-24 19:08:01 +00:00
Simon Kornblith
f7e6843d68 a marginally better solution to XPCCrossOriginWrapper woes achieved by binding child sandboxes to the same locations as parent sandboxes
this won't work if a web/search translator wants to call getTranslatorObject on another web/search translator, but that doesn't happen at the moment, so it should sufficie
2010-10-24 19:04:44 +00:00
Simon Kornblith
95003c88e4 fix translation in Fx 4 trunk builds 2010-10-24 06:52:54 +00:00
Simon Kornblith
9740c42666 try to workaround death of explicit SJOW 2010-10-24 05:35:21 +00:00
Simon Kornblith
26edf1a3f9 hide create item from current page button in standalone (and create new file for standalone-specific CSS) 2010-10-24 05:27:39 +00:00
Simon Kornblith
3f778299b8 correctly display titlebar 2010-10-24 05:16:10 +00:00
Simon Kornblith
43fd51b71c fix CookieManager interaction with hidden browsers 2010-10-18 21:35:50 +00:00
Simon Kornblith
1575ce9df0 fix CookieManager bugs that were breaking Google Scholar 2010-10-18 19:45:10 +00:00
Simon Kornblith
42edc63bf8 fix strange "invalid quantifier" error in Fx4 2010-10-16 20:02:12 +00:00
Simon Kornblith
90922843b0 update to citeproc-js 1.0.66
from Frank's announcement:

Adjustment to the conditions controlling the tainting of entries
carrying year-suffix values.

Avoid redundant application of year-suffix values during
disambiguation.

Provide a default "institution" format blob on the output queue, to
avoid a processor crash with lone institutional author names.
2010-10-15 23:21:21 +00:00
Simon Kornblith
363f059ca3 - run plug-in cleanup() method before displaying dialogs (so that ScreenUpdating is re-enabled before dialogs are shown in WinWord)
- code clean-up
2010-10-15 21:32:49 +00:00
Simon Kornblith
4c2b717c65 add ID to preferences section so that OpenOffice.org prefpane shows paths 2010-10-15 19:17:01 +00:00
Simon Kornblith
d4da080967 Styles->Cite section in Zotero preferences and split to "Word Processors" and "Styles" tabs
also change "Shortcut Keys" to just "Shortcuts" (since the icon is a key anyway)
2010-10-15 05:36:37 +00:00
Simon Kornblith
98ef051951 update to citeproc-js 1.0.65
From Frank's release notes:

citeproc-js 1.0.64:

This release just pulls through the actual changes described in 1.0.62
and 1.0.63.

Apologies for any confusion this caused.

citeproc-js 1.0.65:

Do not needlessly circumvent name disambiguation logic. Reverses a
patch introduced in the 1.0.61 through 1.0.64 series of changes.

Apply the concise and correct fix for the undefined-in-name bug
previously addressed by the 1.0.61 through 1.0.64 series of releases.
Just replacing an undefined variable with an empty string does the
trick.

Force an initialized name that lacks an explicit string value on
initialize-with to full form, but only when using the by-cite
disambiguation rule.

Permit update of year-suffix when it is added, in addition to when it
exists and then changes.

Protect against an undefined value in updateItems(), which can
apparently sometimes occur in the course of word processor plugin
transactions.

Map page-first variable to page when snooping for a value. Prevents a
lone page-first cs:text node within a cs:group from being suppressed
for lack of output.

Repair recently amended appendCitationCluster() command to return a
list of paired values, in accordance with the processor manual.

Extend restoreProcessorState() to work with an empty argument, for
resetting the processor to a pristine state (for use case suggested by
Carles Pina).
2010-10-15 01:03:39 +00:00
Dan Stillman
639e0794bc Clarify NoScript warning to say that a restart is required 2010-10-13 18:16:19 +00:00
Dan Stillman
d8341eb2d1 Fix June and July abbreviations in French locale 2010-10-12 17:14:53 +00:00
Dan Stillman
f0d58fa948 Don't load javascript: and data: URIs from URI field 2010-10-09 20:33:55 +00:00
Dan Stillman
490794dfb9 More XPI fixes for TinyMCE 2010-10-09 19:22:28 +00:00
Dan Stillman
f17e0d6d28 Reapply r3565 to fix TinyMCE in XPI builds 2010-10-09 18:08:38 +00:00
Dan Stillman
d309ad2539 Hide location and status bar and skip Zotero translators on TinyMCE popups 2010-10-09 18:03:03 +00:00
Dan Stillman
ee6c386bae Run Cut/Copy/Paste commands in notes with chrome privileges so they work 2010-10-09 17:21:25 +00:00
Dan Stillman
79334fdbd5 Tell NoScript users how to fix note display 2010-10-09 09:37:07 +00:00
Dan Stillman
c7c27935d0 Fix CSS paths in read-only note and integration views (not yet tested) 2010-10-09 08:12:37 +00:00
Dan Stillman
744b4a597b Missed file from previous commit 2010-10-09 08:06:08 +00:00
Dan Stillman
84f59ab451 Run TinyMCE as content rather than chrome (and now without needing any modifications)
Also upgraded to latest version

Popup windows currently show location and status bars, which needs to be fixed
2010-10-09 08:04:25 +00:00
Simon Kornblith
f4dfc13eab update to citeproc-js 1.0.63 (I think; the code itself still says 1.0.61, but this should be the latest revision available on bitbucket)
Form Frank's release notes:

citeproc-js 1.0.63:

Fix appendCitationCluster() to return a simple string, and required by
Zotero RTF Scan or any similar utility.

citeproc-js 1.0.62:

Block needless initialization of names where
the full name is requested and initialization
is not.

citeproc-js 1.0.61:

Block needless initialization of names where
form is long, no initialization is requested,
and last names are identical.

citeproc-js 1.0.60:

Turn on the parsing of name prefixes and
suffixes by default.

(This change should make CSL 1.0 name prefix
and suffix handling designed by Rintze Zelle
available to existing applications, without complex
changes to the user interface.)
2010-10-09 04:13:51 +00:00
Dan Stillman
8cedbbe125 Don't display trash message when deleting from group collection 2010-10-08 08:43:59 +00:00
Dan Stillman
f58d6f3597 Uncomment valid_elements in TinyMCE config 2010-10-08 07:54:44 +00:00
Dan Stillman
b7a7e4e7ce Sanitize note markup in TinyMCE
[Uncommented note.html's valid_elements in r7027]
2010-10-08 06:44:33 +00:00
Dan Stillman
c9c5fa79f5 Closes #1735, csledit.xul with citeproc-js
Thanks to Frank for the patch
2010-10-07 18:52:18 +00:00
Simon Kornblith
a3ce940fd6 activate the appropriate app with Zotero standalone 2010-10-04 01:32:28 +00:00
Simon Kornblith
a5365bb938 closes #1732, Creator sequence breaks in RDF export with > 10 creators (thanks Frank) 2010-10-04 00:40:59 +00:00
Simon Kornblith
60026d5f39 sandbox cookies in connector to prevent a potential security vulnerability (although this vulnerability would be quite difficult to exploit in a serious manner) 2010-10-04 00:26:06 +00:00
Simon Kornblith
1640d07776 code cleanup in connector and prohibit GET requests 2010-10-03 19:11:48 +00:00
Dan Stillman
5f099967b2 - Move translatorCache to userdata so that translators aren't reinstalled after a system.sql update
- Delete existing translatorCache via schema update to fix translator filename bug in 2.1b1 build
2010-10-03 17:44:10 +00:00
Simon Kornblith
a1eb0e4af7 update to citeproc-js 1.0.59
From Frank's announcement:

Extend punctuation swapping to cases
where quotes entered within a locator.

Implement context-sensitive pluralization
of labels.

Fix bug affecting givennames with more
than two words when rendered in full
form without initialization.

Fixes et al. behavior affecting some
mixed personal and institutional name
combinations.
2010-10-02 20:40:26 +00:00
Simon Kornblith
52479d7c2e update updateCSL.xsl to r41 2010-10-02 20:33:40 +00:00
Simon Kornblith
fc1df31d10 don't automatically adjust pref, since it shouldn't be necessary unless the user has made manual modifications 2010-10-02 20:09:32 +00:00
Simon Kornblith
5bd30580c5 add hidden pref for enabling/disabling connector 2010-10-02 20:08:16 +00:00
Dan Stillman
908b96ccc4 - Add some month/year tests (many of which fail -- refs #1731)
- Always delete empty strToDate part (for proper testing)
2010-10-02 05:18:48 +00:00
Dan Stillman
7b6e017d38 Use display title for related items in reports 2010-09-30 22:50:30 +00:00
Dan Stillman
8a5e5385cb Addresses #1726, Firefox 4 Compatibility 2010-09-30 22:02:24 +00:00
Dan Stillman
6b9f9643da Fixes #1158, Cannot drag item to tag with both automatic and manual versions
And create a manual tag when dragging to an automatic tag in the tag selector
2010-09-30 22:00:45 +00:00
Dan Stillman
7ff2ddae89 Sync credentials weren't cleared if username field was removed first 2010-09-30 18:16:40 +00:00
Dan Stillman
c41f754138 Don't throw an error trying to index an unindexable text file (e.g., text/xml) 2010-09-29 04:09:08 +00:00
Dan Stillman
1e2dc0035f Replace HEAD requests in ZFS syncing with GET requests to work around compatibility problems with proxy servers and security software 2010-09-28 23:44:16 +00:00
Dan Stillman
7f12d2c095 Trim Amazon XML response as possible fix to a user's error 2010-09-28 19:14:52 +00:00
Simon Kornblith
c629a99185 Merge citeproc-js 1.0.57
From Frank's release notes:

citeproc-js 1.0.54:
- Fix misplacement of labels that (should) appear before the
 nameset to which they apply.

citeproc-js 1.0.55:
- Fix bug that triggered "registry[id] undefined"
 error in some disambiguation operations.

- Fix bug affecting voluntary suppression
 of small caps in rich text parsing engine.

- Add methods for setting multilingual
 transliteration, translation, and sort
 parameters on configured processor.

citeproc-js 1.0.56:
- Distinguish between transliterations of
 (personal) names and transliterations of
 titles in recently-added multilingual
 configuration methods.

citeproc-js 1.0.57:
- Correctly handle singleton conditional nodes (if and else-if).
2010-09-27 17:55:20 +00:00
Simon Kornblith
7f83086e1c remove extraneous backslash (although it should not be causing any issues) 2010-09-27 17:34:39 +00:00
Simon Kornblith
5d2db73cc9 fix RTF bibliography generation 2010-09-27 17:25:51 +00:00
Simon Kornblith
8bb80de5db fix bibliography style persistence 2010-09-27 17:12:41 +00:00
Sean Takats
71ab2401f8 Remove Nagoya from About box. 2010-09-26 04:52:04 +00:00
Simon Kornblith
86941ba9fc don't use appendRelativePath to fix Windows issues 2010-09-25 16:09:55 +00:00
Simon Kornblith
c5b703da82 more path fixes 2010-09-25 16:05:15 +00:00
Simon Kornblith
a7c7b8d488 fix path on Windows 2010-09-25 16:04:18 +00:00
Simon Kornblith
48680fbfd8 fix issues searching for existing zotero data directory on windows 2010-09-25 16:00:31 +00:00
Dan Stillman
3abda6bbd8 Use regexp object instead of string 2010-09-23 06:11:35 +00:00
Dan Stillman
1adf489801 Standalone: Open HTTP(S) URLs externally in default browser
Other URLs (such as zotero://attachment) won't work yet
2010-09-23 06:10:04 +00:00
Simon Kornblith
9f2d231741 don't attempt to collapse toolbar in Z standalone 2010-09-23 05:18:47 +00:00
Simon Kornblith
48017eb1b6 make standalone.xul have windowtype navigator:browser (not actually sure this is a good idea for a long-term solution) 2010-09-23 05:05:37 +00:00
Simon Kornblith
4fb708778a fix hidden browser creation in Z standalone 2010-09-23 04:57:36 +00:00
Simon Kornblith
d06a19b6a8 add Zotero Connector 2010-09-23 04:14:19 +00:00
Dan Stillman
253485d96f Remove de-CH and de-AT CSL locales 2010-09-21 00:19:33 +00:00
Dan Stillman
749b13bc02 Replace nsIPrompt with nsIPromptService for Fx4 compatibility 2010-09-20 06:10:06 +00:00
Simon Kornblith
50934eef0c support importing on Windows and *NIX 2010-09-20 02:50:24 +00:00
Simon Kornblith
498489f8c3 on first run of Standalone Zotero, allow user to share data directory with and import settings from Zotero for Firefox 2010-09-20 02:24:07 +00:00
Dan Stillman
4edfceae80 Fix "%S" showing up instead of hostname in WebDAV SSL certificate error 2010-09-19 03:01:52 +00:00