Commit graph

3989 commits

Author SHA1 Message Date
Dan Stillman
a59f3c50ed Hack to fix "Numéro" search condition in French locale
https://forums.zotero.org/discussion/14942/
2014-06-03 14:17:54 -04:00
Dan Stillman
cbdc75df9a Fix search condition handling when two conditions have same translation
This prevented one "Numéro" from working in the French locale.

Also do a proper collation sort
2014-06-03 14:17:54 -04:00
Aurimas Vinckevicius
85c5c614ea Fix CSL-JSON date import 2014-06-02 17:25:16 -05:00
Dan Stillman
ba89dbf0ae Link translator errors to troubleshooting page instead of known issues 2014-06-02 17:00:57 -04:00
Dan Stillman
c0d6648b9e Allow inline editing of collection names
Can be triggered by double-clicking or Return and also by F2 on
Windows/Linux

This does mean double-clicking no longer toggles the collection open and
closed. If we wanted to preserve that we could probably capture the
double-click.

Closes Trac ticket 231, only 8 years later
2014-05-31 14:24:52 -04:00
Dan Stillman
326d2bc1e3 Enforce minimum note font size of 6px
https://forums.zotero.org/discussion/37147/
2014-05-31 01:42:31 -04:00
Dan Stillman
db6ec2b160 Persist single position/size for all note windows
Previously, position/size was persisted for each item's note
individually, but that meant that there was no default position/size for
the note window and an entry was created in localstore.rdf for
every note opened in a new window. There's also a good chance people had
no idea what was going on.
2014-05-28 14:35:05 -04:00
Dan Stillman
370fa78048 Merge pull request #489 from f-mb/csl-mapping
Update csl mapping
2014-05-28 02:15:47 -04:00
Dan Stillman
c986e6106b Blacklist additional errors 2014-05-26 20:09:27 -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
072ae245d9 Use base-mapped dates for sorting (broken in dd477e15) 2014-05-26 19:13:21 -04:00
Dan Stillman
95bf52baf5 Check for NS_ERROR_STORAGE_CONSTRAINT in tag constraint error 2014-05-23 14:51:21 -04:00
Florian Martin-Bariteau
982dbeb962 Update utilities.js 2014-05-22 23:37:17 -04:00
Florian Martin-Bariteau
7b40ae2a46 Update utilities.js 2014-05-18 18:57:28 -04:00
Dan Stillman
472892b4f0 Closes #482, Include active info pane tab in tab cycle on OS X
That was easy. (@simonster, since you disabled this originally, any reason not
to do this, other than the extra tab stop? At least in current Firefox
versions, this is the default behavior.)
2014-05-17 04:10:37 -04:00
Dan Stillman
4305aa1356 Debugging for sync error 2014-05-16 17:57:35 -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
f8798fe996 Set maximum with and chars on Name field when editing saved search 2014-05-15 21:41:22 -04:00
Dan Stillman
66ca236876 Use XUL xmlns instead of prefix in zoterosearch.xml 2014-05-15 21:41:21 -04:00
Dan Stillman
3552fe92b6 Merge pull request #479 from fbennett/preselect-csledit-style
Preselect default Export style in csledit.xul
2014-05-15 00:05:01 -04:00
Simon Kornblith
2a292faeaf Merge pull request #481 from aurimasv/import-network-shares
Recognize Windows network shares on file attachment import
2014-05-14 23:54:45 -04:00
Frank Bennett
c31a3c263b Preselect default Export style in csledit.xul 2014-05-15 12:43:50 +09:00
Dan Stillman
7ac35363e3 Clear guidance panel before adding text
This is probably only necessary if the pref is reset manually, but this
prevents duplicate text in that situation.
2014-05-14 17:18:54 -04:00
Dan Stillman
3ee09e8d38 Fix gray bar below Zotero pane when resizing Firebug down
Follow-up from c1c0b42a12
2014-05-14 17:14:45 -04:00
Aurimas Vinckevicius
e861c3e298 Fix slash direction on Windows for absolute paths
E.g. Mendeley exports something like `C:/some/path/test.pdf`
2014-05-13 13:30:30 -05:00
Aurimas Vinckevicius
f2a887fd24 Recognize Windows network shares on file attachment import
Related to zotero/translators#735
2014-05-13 12:53:38 -05:00
Dan Stillman
6cf597a08f Merge pull request #478 from fbennett/fix-csl-export-creators
Fix dropping of creators in CSL JSON export
2014-05-10 02:59:56 -04:00
Frank Bennett
6605486354 Use ID rather than name on getPrimaryIDForType()
Use creator name for comparison (creatorTypeID does not exist on array-form creators)
2014-05-09 22:29:45 +09:00
Dan Stillman
fd9452adbc Fix error when sorting by Item Type column (since dd477e15b8) 2014-05-07 13:45:20 -04:00
Dan Stillman
ebb112890d 'throw' -> 'throw new Error' in a couple places 2014-05-07 05:16:25 -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
d65ee27592 Switch to array uniquing function that keeps the first instance
The previous version would keep only the last instance.

This version requires the array to contain only primitives of a single
data type, but I think that's OK for all of our uses. (This version
should also be faster.)
2014-05-07 03:10:39 -04:00
Dan Stillman
42c02526ef Fix parsing of January dates in Zotero.Date.strToISO()
https://forums.zotero.org/discussion/36550/#Item_6
2014-05-06 14:50:13 -04:00
Simon Kornblith
6a58d3b2ff Revert "Use var in place of let"
This reverts commit 9b67d60197.

(I totally bungled this commit)
2014-05-04 19:07:19 -04:00
Simon Kornblith
b6c04a1653 Use var instead of let
This code gets included into the bookmarklet, so uglifyjs has to like it
2014-05-04 19:05:41 -04:00
Simon Kornblith
3bfe5949d7 Merge branch '4.0' of github.com:zotero/zotero into 4.0 2014-05-04 19:05:24 -04:00
Simon Kornblith
9b67d60197 Use var in place of let
This makes uglifyjs happier
2014-05-04 19:04:48 -04:00
Dan Stillman
156f4eb160 Allow items to be moved (not copied) between collections w/modifier key
Cmd on OS X, Shift on Windows/Linux

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

Unfortunately on Windows it doesn't seem possible to set the cursor
effect to arbitrary states (see note in libraryTreeView.js::
_setDropEffect() for the gory details), so this just uses the default
cursor there. On OS X and Linux the cursor reflects the requested
action.
2014-05-03 11:52:38 -04:00
aurimasv
c9346d4caa [RDF] Encode > in content when serializing to XML
This avoids the invalid combination "]]>" from appearing in the output
2014-05-01 15:44:07 -05:00
Dan Stillman
c1c0b42a12 Fix gray bar when resizing Zotero pane down
Caused by new toolbar icon guidance panel
2014-04-30 18:01:11 -04:00
Dan Stillman
61af5e987d Update versions 2014-04-30 15:08:58 -04:00
Dan Stillman
c73a0753d7 Handle lowercase shortcut key pref values
Honor lowercase pref values for shortcut keys, and also always display
and set shortcut keys as uppercase in the preferences
2014-04-30 15:08:12 -04:00
Dan Stillman
3d9853acaa Redo instead of toggling Z pane in text fields (except search bar) on OS X
Previously Cmd-Shift-Z worked for redo in text areas (Abstract, Extra)
but would toggle the Zotero pane in regular text fields. This change
allows Redo to work as expected.

The search bar gets focus when you first open the Zotero pane, though,
so we don't redo there, since it would be annoying if you couldn't close
the pane immediately with the same shortcut.
2014-04-30 14:29:59 -04:00
Dan Stillman
5913e6780e Fix Redo via Cmd-Shift-Z in notes on OS X 2014-04-30 14:09:18 -04:00
Simon Kornblith
8d807b73c6 Fix display of missing data directory startup error in Standalone 2014-04-30 14:02:11 -04:00
Dan Stillman
74ed0879f6 Update versions 2014-04-29 04:21:32 -04:00
Dan Stillman
50eeed9e32 Restore panel auto-hide and increase show delay to 2 seconds
I think requiring everyone with Zotero installed to manually close the panel is
just too annoying. (Not allowing the auto-hide for a couple seconds after
opening to prevent accidental closes would be nice, but preventDefault() in the
panel's onpopuphiding() doesn't seem to work, nor does changing noautohide
after opening.)

Increase the delay to 2 seconds to try to show on top of the Firefox 28->29
upgrade panel on slower computers.
2014-04-29 03:48:57 -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
Simon Kornblith
7841bb4327 Don't dismiss icon first run guidance until clicked 2014-04-29 01:43:35 -04:00
Simon Kornblith
2ce31d7565 Add delay before showing icon guidance 2014-04-28 23:41:40 -04:00