Commit graph

2014 commits

Author SHA1 Message Date
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
12279cb5a3 Add nn-NO locale from http://github.com/unhammer/zotero-nn 2010-10-13 18:59:27 +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