Commit graph

466 commits

Author SHA1 Message Date
Dan Stillman
99dd1c0697 Merge branch '4.0'
Since modal windows (e.g., the Create Bib window and the Quick Copy site
editor window) can't use yield, style retrieval
(Zotero.Styles.getVisible()/getAll()) is now synchronous, depending on a
previous async Zotero.Styles.init(). The translator list is generated in
the prefs window and passed into the Quick Copy site editor, but it's
possible the translators API should be changed to make getTranslators()
synchronous with a prior init() as well.
2015-06-27 16:59:58 -04:00
Dan Stillman
4868095820 Guidance panel for new save icon
For new installations, a panel will show for the Z icon with a ">"
button to go to a second panel for the save icon. For existing
installations, a panel will show just for the save icon. In both cases,
the panels are non-auto-hiding but are dismissed if clicked on or when a
new content page is loaded.

There's also a new close button, but it's not enabled currently. Might
be useful for panels with embedded links where an accidental click on
the panel alone shouldn't close the panel (like the Firefox customize
mode wizard).
2015-06-25 22:51:05 -04:00
Dan Stillman
233b9991f5 Merge pull request #623 from rmzelle/locale-selector
Add drop-down menu for bibliographyLocale
2015-06-24 14:34:47 -04:00
Aurimas Vinckevicius
6ac0403049 Reorganize and improve locale drop-down code 2015-06-24 14:10:33 -04:00
Dan Stillman
dfb28ff3f6 File Issues: Greatest Hits, 2006-2015
- When relinking a missing stored file, copy it into the attachment's
  storage directory automatically
  - Previously, selecting a file outside the attachment subdir would
    just result in a missing attachment, since it only looks for stored
    files within the subdir
- Display an error message if a Windows shortcut (.lnk) is added via
  drag-and-drop or via a file dialog on non-Windows systems, until we
  can figure out how to determine the original file
  - Shortcuts can cause errors during syncing, for unclear reasons
  - Neither nsIFile::copyToFollowingLinks() nor nsIFile::target work for
    me to get the original file, even when nsIFile::isSymlink() returns
    true
  - Windows file dialogs seem to automatically resolve shortcuts, so
    it's only an issue there for drag-and-drop
- Disallow hidden files from being selected in relink dialog
  - I think some people on Windows with hidden files shown relink the
    .zotero* files that show up when they click Locate, which causes
    file sync errors. Which brings us to...
- Fix file sync errors for *.lnk and .zotero* files
- Ignore existing .zotero* attachment files, treating the files as
  missing instead to encourage relinking
- Strip leading period in getValidFileName() to prevent added files from
  being hidden
    - This allows hidden files to be added explicitly; they just won't
      stay that way in the storage directory

(These things should have tests, but that will have to happen on the 5.0
branch.)
2015-06-24 06:10:48 -04:00
Dan Stillman
33dedd1753 Tags overhaul [DB reupgrade]
- Simplified schema
- Tags are now added without reloading entire tag selector
  - On my system, adding 400 tags to an item (separately, with the tag
    selector updating each time) went from 59 seconds to 42. (Given that
    it takes only 13 seconds with the tag selector closed, though,
    there's clearly more work to be done.)
- Tag selector now uses HTML flexbox (in identical fashion, for now, but
  with the possibility of fancier changes later, and with streamlined
  logic thanks to the flexbox 'order' property)
- Various async fixes
- Tests
2015-06-23 05:21:58 -04:00
Dan Stillman
80d5b74cf3 Merge 4.0 up to 28301ea45f
Conflicts:
	chrome/content/zotero/preferences/preferences_export.js
	chrome/content/zotero/xpcom/proxy.js
2015-05-26 17:48:22 -04:00
rmzelle
06e6168cb4 Implement locale drop-down menus 2015-05-26 00:12:04 -04:00
Dan Stillman
6e4eb61694 Merge pull request #673 from sendecomp/optional-proxy-redirect-notification
Add an option to not show the proxy redirection notification
2015-05-25 21:57:16 -04:00
LinuxMercedes
34c0e746f5 Add an option to not show the proxy redirection notification 2015-05-25 17:38:24 -05:00
Dan Stillman
aa730bb3bd Merge branch '4.0'
Conflicts:
	chrome/content/zotero/fileInterface.js
	chrome/content/zotero/xpcom/translation/translate_item.js
	chrome/content/zotero/xpcom/utilities_internal.js
	chrome/content/zotero/zoteroPane.js
2015-05-23 18:26:32 -04:00
Dan Stillman
8352934009 Merge pull request #671 from gracile-fr/localize-locators-labels
Add localized locator labels
2015-05-21 02:19:16 -04:00
rmzelle
4bdef75074 Add DOI-field context-menu 2015-05-19 16:25:02 -04:00
Dan Stillman
43a2045aec Change computerProgram 'version' to 'versionNumber'
And use 'version' instead of 'itemVersion' for object version for items

Also add deferred foreign key checking to system.sql so that DROP TABLE
commands don't fail mid-transaction
2015-05-04 02:45:53 -04:00
Dan Stillman
fbef911cb7 Add wizard for My Publications
Show a wizard after items are dragged to My Publications choosing
whether to include files and notes and choosing sharing settings for the
items. Sharing options are Creative Commons licenses, CC0, "All rights
reserved", or keeping the existing Rights field if available.

Also blocks collections, searches, linked file attachments, and
top-level attachments/notes from My Publications at the data layer, but
not yet from the UI in all places (so it can crash if you try).

Todo:

- Block certain UI actions with nice messages
- Show a nice scrollable list of items in the wizard to allow selecting
  specific files/notes, instead of just having checkboxes for files and
  notes that apply to all dragged items
- Show an explanation of My Publications in the right-hand pane when no
  items are selected
- Maybe adjust handling when no attached files/notes, since it might be
  a bit alarming at the moment to see sharing options for metadata
  entries
2015-04-26 19:41:45 -04:00
Dan Stillman
fec43f1f62 Merge branch '4.0' into api_syncing 2015-04-13 02:01:43 -04:00
Dan Stillman
4625b7081e Add checkbox to use one side for all remaining conflicts
This should be rewritten in a way that allows it to be unit tested, but
it seems to work.
2015-03-26 20:34:23 -04:00
Dan Stillman
b042973751 Merge branch '4.0' into api_syncing 2015-03-22 19:51:29 -04:00
Dan Stillman
4d8471afac Merge pull request #674 from gracile-fr/localize-wordproc-prefs
Localize Word Processors tab in Preferences
2015-03-17 01:12:27 -04:00
Dan Stillman
bdd69d0a53 Merge branch '4.0' into api_syncing 2015-03-16 23:41:10 -04:00
Dan Stillman
a03772cae7 Merge branch 'master' into api_syncing
Note that this loses conflicting changes to translate_item.js from 849803473a,
so those will need to be reapplied if applicable. /cc @aurimasv, @mtd91429
2015-03-16 15:23:07 -04:00
Dan Stillman
bf36a988e4 Initial My Publications support
Adds a "My Publications" source after "My Library", implemented as a
separate library. Top-level items can be dragged in and removed.

(This doesn't currently work without disabling Quick Copy.)

Also:

- Make "Group Libraries" an unselectable header instead of a container,
  and don't indent group libraries
- Fix relation purging, which maybe never worked
- Pass only libraryID/key on deletes (which should speed them up)
- Fix async item cloning/copying
- Fix miscellaneous other bugs

To-do:

- Confirmation dialog on drag
- API support
2015-03-16 12:18:54 -04:00
gracile-fr
5e9f6ff502 Localize Word Processors tab in Preferences
Fixes #426: this allows the localization of the Word Processors Add-in
button and messages displayed in the Prefs, under the "Word Processors"
tab. These strings were previously hardcoded in the integration plugins.
2015-03-12 21:25:50 +01:00
Dan Stillman
532c95e13e Fix placeholder in word processor document version message
Noted in #426
2015-03-12 15:31:45 -04:00
gracile-fr
7fb8f162c5 Add localized locator labels
Fixes #557
2015-03-12 15:30:05 +01:00
Dan Stillman
3672d2a895 Merge pull request #668 from rmzelle/confirm-remove-from-collection
Add prompt for Remove Item(s) from Collection
2015-03-09 22:27:12 -04:00
rmzelle
c5a40d503b Add prompt for Remove Item(s) from Collection 2015-03-09 21:45:39 -04:00
gracile-fr
0a4fcc90ac Move shortcut keys prefpane to tab of Advanced
[and delete unused "#zotero-prefpane-keys checkbox" (there used to be a checkbox to "Try to override conflicting shortcuts", which has been definely removed by 5b34dce40f )]
2015-03-09 12:08:31 +01:00
Dan Stillman
a61157f8e3 Change "Zotero" button tooltip to "Open Zotero" 2015-02-23 03:33:34 -05:00
Dan Stillman
ba2a16531b Add "Show Item in Library" button to note-too-long window
TODO: other too-long errors
2015-02-19 17:44:35 -05:00
Dan Stillman
f04ae4ce47 Update "Swap First/Last Names" case, in preparation for #605 2015-02-07 05:31:51 -05:00
Frank Bennett
5cfe4db098 Use nav-bar as target ID for Zotero nav bar icon
The statusBarIcon pref is retained to maintain state across
starts.
2015-01-30 22:42:34 +09:00
Dan Stillman
7aff743da6 Remove trailing space 2015-01-30 04:45:40 -05:00
rmzelle
0be9e73b51 Further improvements to Style Editor and Preview
* Clean up code (remove some pre-CSL 0.8.1 code, see also e32e6aa2f5 )
* Complete localization
* Save vertical space. Editor: remove "pre-wrap" wrapping, use smaller headers, add grippy to collapse CSL code. Preview: remove groupbox
2015-01-28 22:20:20 -05:00
rmzelle
6fd3b298de Rename Reference Test and Preview panes
* Also start localization of Zotero Style Preview
2015-01-28 22:07:39 -05:00
MTD
849803473a Address silent failure of unrecognized URIs in Attach Link to URI
Generated files for a more robust attached-link-dialog and localized strings
* AttachLink.js
* AttachLink.xul

zotero/xpcom/attachments.js
* created function cleanAttachmentURI
* in function linkFromURL, removed the regex constraints and the comment list of valid protocols
* removed outdated function declaration from beginning of script
* Improved automatic title generation mechanism
2014-12-16 11:20:55 -05:00
Dan Stillman
db0fa3c33e Async DB megacommit
Promise-based rewrite of most of the codebase, with asynchronous database and file access -- see https://github.com/zotero/zotero/issues/518 for details.

WARNING: This includes backwards-incompatible schema changes.

An incomplete list of other changes:

- Schema overhaul
  - Replace main tables with new versions with updated schema
  - Enable real foreign key support and remove previous triggers
  - Don't use NULLs for local libraryID, which broke the UNIQUE index
    preventing object key duplication. All code (Zotero and third-party)
    using NULL for the local library will need to be updated to use 0
    instead (already done for Zotero code)
  - Add 'compatibility' DB version that can be incremented manually to break DB
    compatibility with previous versions. 'userdata' upgrades will no longer
    automatically break compatibility.
  - Demote creators and tags from first-class objects to item properties
- New API syncing properties
  - 'synced'/'version' properties to data objects
  - 'etag' to groups
  - 'version' to libraries
- Create Zotero.DataObject that other objects inherit from
- Consolidate data object loading into Zotero.DataObjects
- Change object reloading so that only the loaded and changed parts of objects are reloaded, instead of reloading all data from the database (with some exceptions, including item primary data)
- Items and collections now have .parentItem and .parentKey properties, replacing item.getSource() and item.getSourceKey()
- New function Zotero.serial(fn), to wrap an async function such that all calls are run serially
- New function Zotero.Utilities.Internal.forEachChunkAsync(arr, chunkSize, func)
- Add tag selector loading message
- Various API and name changes, since everything was breaking anyway

Known broken things:

- Syncing (will be completely rewritten for API syncing)
- Translation architecture (needs promise-based rewrite)
- Duplicates view
- DB integrity check (from schema changes)
- Dragging (may be difficult to fix)

Lots of other big and little things are certainly broken, particularly with the UI, which can be affected by async code in all sorts of subtle ways.
2014-08-06 22:59:37 -04:00
Dan Stillman
ba89dbf0ae Link translator errors to troubleshooting page instead of known issues 2014-06-02 17:00:57 -04:00
Dan Stillman
59f534d56f Error report improvements
- Always allow "Report Errors...", even when no errors

- Show submitted diagnostic info in report

- Use white background and unitalicized text for report

- Make window larger by default
2014-05-26 20:07:41 -04:00
Dan Stillman
9f91d240b0 Library switcher in advanced search window
When opening the advanced search window, the current library is
selected, and a different library can be selected to change the search
scope. If a library is read-only, the saved search button is disabled.
For saved searches, the appropriate library is selected and the
drop-down is disabled.

Also:

- Close the advanced search window after a search is saved
- The default name for saved searches ("Untitled 2", etc.) was based on
  collections rather than searches
- Once an initial search has been performed, the drop-downs and
  checkboxes now update the results
- More consistent spacing in advanced search window
- (dev) Zotero.DB.getNextName() now takes a libraryID as its first
  parameter instead of always using My Library; the old parameters are
  deprecated but still work
2014-05-15 21:41:22 -04:00
Dan Stillman
dd477e15b8 Configurable secondary sorting and other improvements
- Each column in the middle pane can now have its own persistent
  secondary sort column, configurable from a new submenu in the column
  picker menu (top right of items list). The settings are stored in
  extensions.zotero.secondarySort.[primaryField]. The submenu title
  includes the current primary field (e.g., "Secondary Sort (Creator)"),
  which is pretty weird, and I'm not sure I want to keep it, but it does
  convey that the setting is specific to the selected column.

- The fallback sort fields (firstCreator, date, title, dateAdded) are
  now configurable via the extensions.zotero.fallbackSort. Setting that
  pref to an empty string avoids all fallback sorts, which
  allows reverse-order clicking to set the order, as requested by
  @aurimasv in #275.

- The previous behavior of sorting based on the exact Creator string
  (rather than the actual creators) can now be restored with the
  extensions.zotero.sortCreatorAsString pref. (It simply circumvents all
  the newer code, so it's pretty safe.) This setting should result in
  faster sorting in large libraries that have many items with the same
  Creator string.

- Some of the lesser fields in the column picker menu are now in the
  More Columns submenu (which is now alphabetical)

- The "Type" column is now the less-ambiguous "Item Type".

- This uses a different method to modify the column picker menu that is
  simultaneously less and more hacky. (It no longer has to duplicate
  Mozilla code in a custom XBL binding that wouldn't reflect future
  upstream changes, and instead it bushwhacks its way through various
  boxObject properties to get to the underlying menupopup.)
2014-05-07 05:15:07 -04:00
Dan Stillman
1524fff30f Revert "Separate toolbar guidance strings for easier localization"
This reverts commit 5da9b4bbb6 and uses
slightly different wording between the two messages ("Click here…" vs.
"Click the icon…").
2014-04-29 03:03:42 -04:00
Dan Stillman
cefe301c74 s/firstRunGuidance.toolbarButton.new/firstRunGuidance.toolbarButton.upgrade/ 2014-04-28 22:56:41 -04:00
Dan Stillman
5da9b4bbb6 Separate toolbar guidance strings for easier localization 2014-04-28 22:49:51 -04:00
Simon Kornblith
4afb29e59f Tweak toolbar icon guidance 2014-04-28 20:49:45 -04:00
Simon Kornblith
6c74d670d1 Missing strings from last commit 2014-04-28 20:40:14 -04:00
aurimasv
57350fae1e [Retrieve Metadata] Use a single queue to query Google Scholar. Window closing tweaks.
* Close window on blur after completion on Mac (revert previous change)
* Don't close window when canceling
* Add Esc handler to cancel/close window
* Allow columns to be resized
* Fixes #445
* Fixes #444
2014-01-31 02:09:35 -06:00
aurimasv
b3da19e96d [Retrieve Metadata] Recognize HTTP 503 code as Google Scholar CAPTCHA + other tweaks.
* Stop metadata retrieval when cancelled
* Display CAPTCHA dialog
* Don't close window on blur
* Use Zotero.Utilities.cleanISBN to validate ISBNs
2014-01-31 02:00:28 -06:00
Dan Stillman
15710060be "back up and delete" -> "remove" 2013-11-21 20:25:14 -05:00
Dan Stillman
74445f11b3 "signons.*" -> "signons.sqlite" in corrupt-login-manager error message 2013-11-21 20:22:00 -05:00
Dan Stillman
1a8f264ccf Add "directory" to "[Firefox/Zotero] profile" in login manager error message 2013-11-21 20:18:22 -05:00
Dan Stillman
a75192d744 Add ellipses to Rebuild/Clear Index buttons in prefs
And add punctuation.ellipsis localized string
2013-11-19 15:52:30 -05:00
Dan Stillman
f4abe14b59 Merge branch 'db-update' into 4.0 2013-11-13 00:32:48 -05:00
Dan Stillman
8e52dcca42 Tweak the text a bit in #410 2013-11-13 00:31:45 -05:00
Dan Stillman
7ae36f968f Change "files" to "items" in library-access-denied message 2013-11-10 15:31:23 -05:00
Dan Stillman
9161237e90 Merge branch '4.0_fulltext_sync' into 4.0 2013-11-05 16:21:11 -05:00
Dan Stillman
a47bd95903 Localize full-text sync strings 2013-11-05 16:16:31 -05:00
Simon Kornblith
0b92ad0037 Modify behavior on Zotero Standalone launch to account for failure
- Close Zotero pane before database is closed prior to reload, instead
  of waiting until reload is complete
- Show an error message if Zotero Standalone is not accessible when it
  should be
2013-11-05 15:52:40 -05: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
Dan Stillman
b6f493207f Closes #311, Update RIS/Refer pref to mention BibTeX too 2013-08-06 16:32:02 -04:00
Dan Stillman
86c6611560 Update auto-update pref text to include styles 2013-08-05 10:57:09 -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
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
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
Simon Kornblith
23fc663378 Call Preferences "Preferences" in menu on all platforms
Fixes #340
2013-06-19 12:52:04 -04:00
Dan Stillman
5a2a485a79 Add a WebDAV verification step to ensure 404 on missing files 2013-05-02 01:19:26 -04:00
Simon Kornblith
91b2de3ec6 Add missing string from d81e801685 2013-04-17 02:01:30 -04:00
Dan Stillman
82c4c90f5c Fix spacing in sync auto-merge dialogs 2013-04-13 03:44:09 -04:00
Dan Stillman
2236bab130 Better handle some file sync file access errors
- Catch additional errors on Windows (too-long paths, maybe aliases)
- Fix "Show File" button (which didn't show in some cases, at least on
  Windows)
- Clarify error message
2013-04-11 04:28:38 -04:00
Dan Stillman
5878dac132 Clarify error message for login manager access failure in Firefox
Fixes #288, Inappropriate error message when master password times out
2013-04-07 16:28:40 -04:00
Simon Kornblith
4c7d096545 Use typographic quotes 2013-03-28 00:24:38 -04:00
Simon Kornblith
6efe6c5bd6 Move "Automatically abbreviate journal titles" setting to document preferences
The setting is disabled by default for existing documents, but enabled by
default for new documents.
2013-03-27 23:53:38 -04:00
Simon Kornblith
6d518c0cec Clarify failed validation error message
See http://forums.zotero.org/discussion/28540?page=1#Item_4
2013-03-27 11:29:53 -04:00
Dan Stillman
b54b77a107 Clarify WebDAV error messages 2013-03-22 17:47:35 -04:00
Dan Stillman
c7c8cbbeae Mention Search pane in PDF tools message 2013-03-22 13:34:01 -04:00
Dan Stillman
1f1c6d16ff Quit rather than restart when changing data directory 2013-03-20 16:45:09 -04:00
Dan Stillman
5a863d97c8 Context-menu string cleanup
- Remove all "Selected" from "Selected Item", because that's how a context menu works
- Change "Remove Selected Item" to "Remove Item from Collection" (fixes #122)
- Change "Delete Selected Item from Library" to "Move Item to Trash")
- Change "Remove" on Duplicate/Unfiled Items to "Hide" (fixes #122)
- Change "Create Parent Item from Selected Item" to "Create Parent Item"
2013-03-17 01:22:47 -04:00
Dan Stillman
022ee4481b Add "Delete Collection and Items..." context-menu option
Also update collection/search deletion dialogs with better button text and no more "[JavaScript Application]"
2013-03-16 22:55:50 -04:00
Dan Stillman
490a176dcd Remove whitespace from localized strings
Follow-up to #264
2013-03-05 18:08:26 -05:00
Dan Stillman
c6afb86ba6 Put "Swap first/last names" in creator context menu root
And remove "Transform Name Form" menu for now

Discussed in #132
2013-03-05 15:03:01 -05:00
Dan Stillman
c68196e7b5 Merge 'gracile/fbennett-patch-authors' 2013-03-05 14:58:31 -05:00
Dan Stillman
4496c8d9e9 Merge remote-tracking branch 'aurimasv/multipleLookup'
Conflicts:
	chrome/locale/en-US/zotero/zotero.dtd
2013-03-05 14:46:31 -05:00
Dan Stillman
8333c68f77 Fix trailing whitespace from #264 2013-03-05 03:43:50 -05:00
Dan Stillman
0c60911fd1 Tweaks to @gracile-fr's localization changes
Addresses #264
2013-03-05 03:43:46 -05:00
Dan Stillman
30f5679ec8 Merge remote-tracking branch 'gracile/3.1-l10n' into 3.1-l10n 2013-03-05 03:06:43 -05:00
gracile-fr
eb7b301073 Localizes most of the strings marked "todo: localize" 2013-03-04 03:44:37 +01:00
Dan Stillman
d2f028d797 Tag colors, synced settings, and (stopgap) silent DB upgrades
- New tag colors support, with the ability to assign colors to up to 6
  tags per library. Tags with colors assigned will show up at the top of
  the tag selector and can be added to (and removed from) selected items
  by pressing the 1-6 keys on the keyboard. The tags will show up as
  color swatches before an item's title in the items list.
- Synced settings, with Notifier triggers when they change and
  accessible via the API (currently restricted on the server to
  'tagColors', but available for other things upon request)
- Silent DB upgrades for backwards-compatible changes. We'll do
  something fancier with async DB queries in 4.0, but this will work for
  changes that can be made without breaking compatibility with older
  clients, like the creation of new tables. The 'userdata' value is
  capped at 76, while further increments go to 'userdata2'.

TODO:

- Try to avoid jitter when redrawing swatches
- Optimize tag color images for retina displays
- Redo attachment dots in flat style?
- Clear all colors from an item with 0 (as in Thunderbird), but I don't
  think we can do this without undo
2013-03-03 06:23:25 -05:00
gracile-fr
d69ffd2ad8 localize sync.js 2013-03-01 18:37:25 +01:00
gracile-fr
217929a3ea more localization 2013-02-28 23:31:07 +01:00
gracile-fr
cc2f7836f8 localization preferences pane 2013-02-27 17:13:48 +01:00
Simon Kornblith
41e32647c7 Merge pull request #258 from gracile-fr/3.0-access-key
Fix strange accesskeys in Standalone ("Print" & "Support and Documentation")
2013-02-26 17:37:42 -08:00
Simon Kornblith
4d2cee7824 Support journal abbreviations
Currently disabled by default
2013-02-24 05:57:28 -05:00
Dan Stillman
27a2a9c1f7 More relative path changes
- If attachment exists at same relative path in new base directory,
  leave it alone so that it continues to work.
- If attachment doesn't exist in new base directory, revert it to an
  absolute path.
- If new base directory is an ancestor or descendant of the previous
  base directory, adjust relative paths below the new directory so that
  they keep working.
- More dialog changes
- Select current base directory in file picker when changing directory
- Always use .persistentDescriptor instead of initWithPath(), though it
  probably doesn't matter, and wrap in try/catch in case the old setting
  is broken in some way.
- New function Zotero.File.directoryContains(dir, file), since
  nsIFile.contains() isn't recursive
- Don't use a private Zotero.Item property from outside to force path changes.
2013-02-21 06:24:46 -05:00
Dan Stillman
f1eb356c19 Relative path support changes
- Changed placeholder to just "attachments:" for consistency with "storage:"
- Reworked dialog text
- Use a fancier (and undocumented) filefield XUL element for path
- A few small code tweaks
2013-02-21 06:24:46 -05:00
Will S
b224c5cf66 Relative path support for linked files 2013-02-21 06:24:46 -05:00
gracile-fr
f110e3fba2 Fix strange accesskeys in Standalone "(Print" & "Support and Documentation") 2013-02-16 22:33:22 +01:00
Dan Stillman
ee16d96f92 Merge branch '3.0'
Conflicts:
	chrome/content/zotero/preferences/preferences.xul
	chrome/content/zotero/xpcom/storage/webdav.js
	chrome/locale/gl-ES/zotero/zotero.dtd
	chrome/locale/gl-ES/zotero/zotero.properties
	chrome/locale/zh-CN/zotero/zotero.dtd
	chrome/locale/zh-CN/zotero/zotero.properties
	install.rdf
	update.rdf
2013-02-16 05:07:59 -05:00
gracile-fr
f2239d31bc Localize quotation marks (cf. previous commit) and colon 2013-02-07 00:11:32 +01:00
Dan Stillman
0061ff3ca5 Merge branch '3.0'
Conflicts:
	chrome/content/zotero/preferences/preferences.xul
	chrome/content/zotero/xpcom/data/item.js
	chrome/content/zotero/xpcom/utilities_translate.js
2013-02-04 07:02:38 -05:00
Dan Stillman
650c393507 Expose launchNonNativeFiles hidden pref in Firefox
"Open PDFs and other files within Firefox when possible"
2013-02-04 01:56:29 -05:00
gracile-fr
f0ad251097 Localization of hardcoded "Quick Format Citation" dialog title 2013-02-02 15:31:41 +01:00
Simon Kornblith
91c3374d6b Merge branch '3.0' and modify recognizePDF.js to use promises
Conflicts:
	chrome/content/zotero/recognizePDF.js
	install.rdf
	update.rdf
2013-01-21 01:04:05 -05:00
aurimasv
1b9c89fd59 Add support for multiple identifier lookup to the magic wand tool. Enable shift+enter for submitting input in multiline mode. Use shift+enter in single line mode to convert to multiline 2012-12-12 00:21:46 -06:00
Dan Stillman
bb93f019dc File sync overhaul
- New promise-based architecture
- Library-specific file sync queues, allowing other libraries to
  continue if there's an error in one library
- Library-specific sync errors, with error icons next to each library
- Changed file uploading in on-demand download mode, which had been missing
- On-demand download progress indicator in middle pane
- More accurate progress indicator
- Various tweaks and bug fixes
- Various future tweaks and bug fixes
2012-12-11 15:16:40 -05:00
Dan Stillman
2e81f087b9 Fix WebDAV URL error message 2012-12-11 03:30:48 -05:00
Simon Kornblith
73f775950d Merge branch '3.0'
Conflicts:
	chrome/content/zotero/xpcom/cite.js
2012-11-08 09:40:18 -05:00
Dan Stillman
6220bc39f5 "Citations"/"Notes" instead of "Citation"/"Note" in right-click dialog 2012-11-06 01:16:03 -05:00
Simon Kornblith
b3237ae5e5 Merge branch '3.0'
Conflicts:
	chrome/content/zotero/xpcom/http.js
	chrome/content/zotero/xpcom/translation/translate_firefox.js
2012-11-06 00:50:11 -05:00
Dan Stillman
dfd0a7ad83 Add option to skip tags when copying items between libraries 2012-11-02 05:45:26 -04:00
Dan Stillman
3a9483070e Merge branch '3.0'
Conflicts:
	chrome/content/zotero/tinymce/plugins/paste/editor_plugin.js
	chrome/content/zotero/xpcom/translation/translate_firefox.js
	chrome/content/zotero/zoteroPane.js
	install.rdf
	update.rdf
2012-11-01 22:14:08 -04:00
Dan Stillman
079b767974 Closes #44, Allow generating citations via right-click
Currently generates multi-source citations for multiple items for note
styles, but a list of note citations might be better.

Also, context menu option is unchanged, since it becomes very long if
you add "Citation/Bibliography".
2012-11-01 21:47:10 -04:00
Simon Kornblith
9ea12d5561 Merge branch '3.0'
Conflicts:
	chrome/content/zotero/xpcom/translation/translate_item.js
2012-10-10 17:25:21 -04:00
Dan Stillman
bd75d95da9 Fix "(null)" in Firefox login manager corruption message
(It turns out this also displays if the user clicks Cancel on a master
password prompt, though.)
2012-09-26 21:57:40 -04:00
Dan Stillman
c2e116a49a Merge branch '3.0'
Conflicts:
	chrome/content/zotero/locale/csl
	chrome/content/zotero/xpcom/server_connector.js
	chrome/content/zotero/xpcom/storage.js
2012-09-10 17:18:08 -04:00
Sebastian Karcher
2f7fb532c8 Update chrome/locale/en-US/zotero/zotero.dtd
Change label for "Create New Item" button - as per mutual agreement here: http://forums.zotero.org/discussion/17909/create-new-item-from-current-page-should-use-translator/#Item_17
2012-09-09 12:34:37 -06:00
Simon Kornblith
d9ea6d3647 Add useJournalAbbreviation export option for BibTeX (see https://github.com/zotero/translators/pull/436) 2012-08-16 21:11:21 -04:00
Simon Kornblith
ab4c2f247d Merge branch '3.0' 2012-08-05 19:44:57 -04:00
Simon Kornblith
cd6e78899b Fix "Use profile directory" option to use correct app name 2012-08-01 10:52:00 -04:00
Simon Kornblith
349c19fe4d Merge branch '3.0' 2012-07-21 18:29:04 -04:00
Simon Kornblith
4fd978905c Clarify wording of missing item message as suggested by @adam3smith 2012-07-19 10:53:01 -04:00
Simon Kornblith
06825c4767 Validate CSL styles on installation, and restructure Zotero.Styles.install() to use Q.
Closes https://www.zotero.org/trac/ticket/1681, automatic CSL validation
2012-07-10 02:46:57 -04:00
Simon Kornblith
471af0c8ab Merge branch '3.0'
Conflicts:
	chrome/content/zotero/xpcom/translation/translate_firefox.js
	chrome/content/zotero/xpcom/translation/translate_item.js
2012-07-08 13:15:27 -04:00
Simon Kornblith
d2dcf2bbc7 LibreOffice does not support saving custom properties to docx, and corrupts properties read from docx, so change message 2012-07-08 11:00:11 -04:00
gracile-fr
7ee1b1e491 Frank's patch https://github.com/zotero/zotero/issues/132
Menu item to swap creator first/last names (#132)
2012-06-14 17:19:30 +02:00
Simon Kornblith
ac19b0490a Merge branch 'no-new-collection-on-import' 2012-06-10 22:39:41 -04:00
Simon Kornblith
d26bb24849 Merge branch 'attachment-progress' 2012-06-10 21:56:15 -04:00
Dan Stillman
f1f4044018 Merge branch '3.0' 2012-06-10 21:50:14 -04:00
Simon Kornblith
3a6669c66f Closes #23, "Saving item..." notification should show the name of the library where item is imported 2012-06-10 16:50:06 -04:00
Simon Kornblith
68365e2297 Allow user to control whether files are imported into a new collection.
Adds three new preferences controlling whether a new collection is created upon import:
- extensions.zotero.import.createNewCollection.fromFile
	Controls whether a new collection is created by import from cog menu
- extensions.zotero.import.createNewCollection.fromClipboard
	Controls whether a new collection is created by import from clipboard
- extensions.zotero.import.createNewCollection.fromFileOpenHandler
	Controls whether a new collection is created when import is initiated by
	double-clicking a file or by dragging it over Zotero. This preference applies only to
	Zotero Standalone, and is configurable in the dialog that appears asking the user
	to confirm the import.

Closes #19, [papercuts] (26) Clipboard import into an open collection
2012-06-10 11:05:39 -04:00
Dan Stillman
1a76318538 Just focus libraries pane on shortcut key
Closes #133
2012-05-25 14:24:08 -04:00
gracile-fr
12a45882fe Localize editorWarning
(cherry picked from commits f1be6125...f84e6b12)
2012-05-04 15:33:43 -04:00
Dan Stillman
d456117ebe Merge branch '3.0' 2012-05-03 17:56:32 -04:00
Dan Stillman
2bbd2be4e7 Use "%S more..." instead of hard-coding space, and make general string
(cherry picked from commit 49b9c14b8d)
2012-05-03 17:46:49 -04:00
gracile-fr
4ba9b6a4c0 Localization of strings previously hardcoded. All these strings are related to duplicate detection.
(cherry picked from commit d6ae1c544d)
2012-05-03 17:45:15 -04:00
gracile-fr
12fc2eadc0 Localization of strings previously hardcoded in itembox.xml (Move up/down)
(cherry picked from commit acb7c22f75)
2012-05-03 17:42:25 -04:00
gracile-fr
0ece4145cd Fixes #111: "Search subcollections" instead of "Search subfolders" in Advanced search. 2012-05-03 17:35:49 -04:00
Dan Stillman
49b9c14b8d Use "%S more..." instead of hard-coding space, and make general string 2012-05-03 17:33:19 -04:00
gracile-fr
7b5c176f8e Fixes #111: "Search subcollections" instead of "Search subfolders" in Advanced search. 2012-05-03 23:06:27 +02:00
gracile-fr
d6ae1c544d Localization of strings previously hardcoded. All these strings are related to duplicate detection. 2012-05-03 22:38:14 +02:00
gracile-fr
acb7c22f75 Localization of strings previously hardcoded in itembox.xml (Move up/down) 2012-05-03 22:16:24 +02:00
Simon Kornblith
18d9c6be8c Add print and save options to reports, part 1 2012-04-19 00:12:43 -04:00
gracile-fr
18111dd15d Make additional fields available as columns with a submenu (fixes #84) 2012-03-24 19:39:14 +01:00
Simon Kornblith
947be813ec Merge branch '3.0' 2012-03-20 02:16:43 -04:00
gracile-fr
192162c567 Update chrome/locale/en-US/zotero/zotero.properties 2012-03-13 20:03:42 +01:00
Dan Stillman
daf1899c72 Remove unnecessary ellipsis 2012-03-12 01:43:56 -04:00
gracile-fr
ed0741959d Localize editorWarning 2012-03-08 14:06:01 +01:00
Simon Kornblith
b3f9f5102b Merge branch '3.0'
Conflicts:
	chrome/content/zotero/overlay.js
	chrome/content/zotero/xpcom/schema.js
2012-02-28 17:22:34 -05:00
Dan Stillman
fbef301fe0 Add citation/footnote instructions to Quick Copy prefs 2012-02-28 15:28:14 -05:00
Dan Stillman
edd2f99ec9 Correct schema errors without pointing users to DB repair tool
We can't do anything about actual database corruption, but we can fix
all the other things that the repair tool fixes.
2012-02-24 12:05:06 -05:00
Simon Kornblith
394ad64091 Address Rintze's comments per http://forums.zotero.org/discussion/21934/ 2012-02-19 23:13:49 -05:00
Simon Kornblith
07028650f0 Closes #48, Additional field in QuickFormat dialog showing the name of the library and providing a link to the item with the following modifications
- Open in current window if one is already open
- Use a button instead of a label
- Don't show button if citation item is not linked to a Zotero item

This doesn't currently work if the Zotero pane has never been opened in the given window, because ZoteroPane.selectItem() appears to fail in that circumstance. This needs to be fixed.
2012-02-19 18:37:42 -05:00
Dan Stillman
de7467a62c Merge branch '3.0' 2012-02-10 14:10:07 -05:00
Dan Stillman
5c5967166f Fix broken en-US locale file 2012-02-10 04:53:18 -05:00
Dan Stillman
1ce06aae79 Add line about editing citations to QuickFormat guidance panel 2012-02-10 04:47:41 -05:00
Dan Stillman
3a4401a995 Merge branch '3.0'
Conflicts:
	chrome/content/zotero/xpcom/integration.js
	chrome/content/zotero/xpcom/storage/webdav.js
	chrome/content/zotero/xpcom/storage/zfs.js
	install.rdf
	update.rdf
2012-02-09 02:13:02 -05:00
Dan Stillman
7ce3bd7060 "Zotero Migration Notification" -> "Existing Zotero Library Found" 2012-02-01 19:28:58 -05:00
Dan Stillman
d3f4bc6d7e Tweak QuickFormat first-run text 2012-02-01 19:17:38 -05:00
Dan Stillman
ebfae117fd Remove "classic" part of QuickFormat first-run guidance 2012-02-01 18:18:38 -05:00
Simon Kornblith
46f64523a4 Add first-run guidance to QuickFormat dialog 2012-02-01 17:23:25 -05:00
Dan Stillman
f4804b66b5 Merge branch '3.0' 2012-01-27 00:24:50 -05:00
Dan Stillman
a4afb67d91 Point directly to 3.0 plugins page from preferences
Not sure why this is localized, though
2012-01-25 16:44:48 -05:00
Dan Stillman
f272fc6861 Tweak read-only save error message 2012-01-20 17:51:00 -05:00
Dan Stillman
b1cd48a863 Avoid a third "this" in save icon first-run guidance 2012-01-19 21:06:28 -05:00
Dan Stillman
5e2cd44cc8 Remove trailing period 2012-01-18 03:41:29 -05:00
Dan Stillman
eddaa672ef Provide link to cert override docs in Standalone Verify Server
The button wasn't opening the WebDAV URL within Standalone, and
XULRunner doesn't provide the whitelist interface anyway.

Documentation page still needed
2012-01-18 03:37:54 -05:00
Dan Stillman
7c4a69b9e1 Merge branch '3.0' 2012-01-17 01:16:47 -05:00
Dan Stillman
d63d24c636 Show access error for translator save attempt to read-only library
Not sure how this works for connector saves
2012-01-11 18:12:21 -05:00
Dan Stillman
4767cad19e Merge branch '3.0' 2012-01-10 19:54:09 -05:00
Dan Stillman
9d16cb2fe6 "Use Firefox profile directory" -> "Use profile directory" 2012-01-05 14:58:11 -05:00
Dan Stillman
3ac5a6db09 Merge branch '3.0' 2011-12-22 12:21:32 -05:00
Simon Kornblith
878f70998f Show most recently cited items at the top of QuickFormat. Also, typing "ibid" into QuickFormat now shows a list of the most recently cited items. 2011-12-19 01:36:33 -05:00
Dan Stillman
059460a5d2 Merge branch '3.0'
Conflicts:
	chrome/content/zotero/xpcom/storage/webdav.js
	chrome/content/zotero/zoteroPane.js
	chrome/skin/default/zotero/preferences.css
2011-12-17 16:25:58 -05:00
Dan Stillman
fe97d33e38 Display "Load WebDAV URL" button in Verify Server error
Allows for easier Standalone cert override (I hope -- not yet tested)
2011-12-17 16:13:37 -05:00
Dan Stillman
0456e5d3be About pane updates 2011-12-14 17:52:10 -05:00
Simon Kornblith
eeedc49274 Fix quotation marks 2011-12-07 02:31:40 -05:00
Simon Kornblith
3349acc747 Fix description of how to add a locate engine 2011-12-04 14:17:51 -05:00
Dan Stillman
309579719a Remove numChildren localization 2011-11-26 03:45:56 -05:00
Dan Stillman
758216638f On-demand download support
Can choose to download files "at sync time" or "as needed"

On-demand defaults to on, but remains off for existing users

To-do:

- Handling of local and remote file changes on on-demand download
  (currently if a file exists it isn't downloaded, which means a
  remotely modified file won't be redownloaded in on-demand mode)
- Additional control over file downloading and retention

Other changes:

- Overhauled entire file syncing architecture
- Replaced numAttachments column with Note and Attachment columns with
  dynamic icons to indicate status
- Double-clicking a parent with a missing best attachment and on-demand
  downloading off no longer loads the parent URL
- Bugs
2011-11-26 03:45:55 -05:00
Dan Stillman
81b6974053 Add more reasonable "Medium" font setting, and shift M/L to L/XL
Also adjust spacing of radio buttons in General pref pane
2011-11-17 02:10:10 -05:00
Simon Kornblith
a259a6b8cd First run guidance for creator menu 2011-10-03 06:04:37 +00:00
Simon Kornblith
27b5505661 First run guidance for save icon 2011-10-03 04:44:40 +00:00
Simon Kornblith
3364a533c5 Add "Restore to Library" context menu option 2011-10-02 15:50:54 +00:00
Dan Stillman
e1cc377162 Show Zotero pane progress bar during sync processing
TODO: limit to large syncs?

This needs a lot of testing.

Also:
- Tweak pumpGenerator() wait level behavior to match Zotero.wait()
- If Zotero is closed in the top-most window, show a popup instead of the pane-covering progress meter, and take an optional icon in Zotero.showZoteroPaneProgressMeter() for use in the popup
- Restore protection against opening Zotero pane when Zotero.locked is set
- Display a nicer error if Zotero.DB.commitTransaction() is called without an active transaction
- Allow text with icons to extend to multiple lines in progressWindow popup
- Automatically use current window if one isn't specified in Zotero.repaint()
2011-09-21 23:00:20 +00:00
Simon Kornblith
08c8c4dfbd Use asynchronous APIs for collecting fields. This currently has the side effect of breaking the editor. 2011-09-15 07:57:06 +00:00
Simon Kornblith
953ec31166 Add context menu to translate icon, allowing the user to save to Zotero with alternative translators and to perform library lookup or use lookup engines without first saving the item 2011-08-28 20:12:08 +00:00
Simon Kornblith
a38119365e Locale changes from r10295 2011-08-26 21:52:41 +00:00
Simon Kornblith
aae77c6015 Add-on discovery support for Zotero Standalone, part 1 2011-08-25 07:35:22 +00:00
Simon Kornblith
d382f293ca Add link to cslPreview.xul and make sure things work in Standalone (and tab mode) 2011-08-24 06:58:42 +00:00
Simon Kornblith
b3cf130821 Add "Open csledit.xul" to Standalone advanced prefs 2011-08-24 05:59:20 +00:00
Simon Kornblith
cf0e1e6972 Ask before importing files on double-click 2011-08-18 15:29:13 +00:00
Simon Kornblith
a35c33312d Move standalone.dtd out of separate directory 2011-08-10 19:36:05 +00:00
Dan Stillman
7bf14390b2 Update version number 2011-08-10 19:30:54 +00:00
Dan Stillman
913cd0736e A couple other tweaks 2011-08-10 19:25:05 +00:00
Dan Stillman
b0d07045ef Fix typo 2011-08-10 19:21:03 +00:00
Simon Kornblith
c1057e2587 Remove uses of "Firefox" and fix version 2011-08-10 07:07:26 +00:00
Simon Kornblith
4a00bf1f74 Compactify tag selector. Unfortunately, there seems to be a bug in Fx 4+ that makes <menuitem type="checkbox"/> not work quite right on OS X. 2011-08-10 06:29:24 +00:00
Simon Kornblith
421e570ada Fix a bug in QuickFormat years and enable QuickFormat by default 2011-08-09 03:49:06 +00:00
Simon Kornblith
0031f0d319 Warn the user if they have modified a citation and ask whether to perform future updates. This makes the editor obsolete. 2011-08-09 03:37:24 +00:00