Commit Graph

883 Commits

Author SHA1 Message Date
Dan Stillman
5cba06673e Add ids to actions menu for utility overlay hooks 2006-11-21 16:29:25 +00:00
Dan Stillman
c371dd7603 Fix old methods in Notifier 2006-11-21 16:24:33 +00:00
Dan Stillman
c72df62264 Fix saving of gzipped CSS files via nsIWebBrowserPersist -- this will fix some of the pages for which snapshots were losing the CSS, but it doesn't address the @import issue 2006-11-21 16:05:41 +00:00
Simon Kornblith
060e2942a0 actually commit the modified utilities.js this time 2006-11-21 07:46:38 +00:00
Simon Kornblith
445ff98277 - made doGet handle multiple urls, with processor/done style interface (as in processDocuments). this should be backwards compatible
- beginnings of mapping for new item types
- fixes for Word integration (because i was using it to write a paper)
2006-11-21 07:14:27 +00:00
Dan Stillman
3d6bfbe6d5 Fixes #386, Context menu option for creating a new subfolder
Fixes #226, Insert new collections and saved searches in the proper order

Also:

- Only display "New Collection..." and "New Saved Search..." in Library drop-down
- Sort collections and saved searches case-insensitively
2006-11-18 19:48:33 +00:00
Dan Stillman
fb220f6b7b Fixes #74, Add an "Update Now" button in the prefs to manually query the repository for updated scrapers 2006-11-17 23:49:39 +00:00
Dan Stillman
67f68194af Add overflow: hidden to z-pane, which isn't a great solution to anything but will help prevent overflowing the status bar
Reduce minimum tags selector height

Removed html:div in tags selector and just add display:block to vbox
2006-11-15 15:48:18 +00:00
Dan Stillman
4a8150203a Fix for startup error when trying to rebuild the fulltext index with a text file that doesn't have a charset (which shouldn't happen, but apparently it can if there's some undetermined error in the attaching process) 2006-11-11 19:17:16 +00:00
Dan Stillman
8090e04318 Deprecated Notifier.(un)register(Item|Collection)Observer() in favor of a single (un)registerObserver() method -- observers can still be limited to specific types by passing an array of types (or a single type as a string) as the second parameters to registerObserver()
e.g. registerObserver(callback, ['collection', 'search'])
2006-11-10 09:26:54 +00:00
Dan Stillman
54790c13d8 Purge tags on item delete 2006-11-10 09:23:33 +00:00
Dan Stillman
300c2f1f0f Tag conditions from tag selector should be required (though an option to find the union of selected tags might be worthwhile) 2006-11-10 05:18:28 +00:00
Dan Stillman
3f59f808e3 Tag Selector pane -- filter the current items view by one or many tags
Will be getting a lot more functionality (e.g. renaming, deleting, maybe assigning of tags from the pane), some UI changes, and possibly some modified behavior (e.g. should it only show the available tags for the items that you're viewing, show all and let you use the interface to assign tags (say, by batch drag and drop), or have a checkbox to toggle between the two modes)

Other notes:

- Implemented as XBL binding, so should be reusable elsewhere if necessary
- Needs a better icon and possibly different icon placement
- Doesn't handle live updating of modified tags yet -- will need a Notifier target
- New methods Tags.getAll() and Tags.search()
- I really wish I'd created a ticket for this so I could check it off
2006-11-09 13:33:49 +00:00
Dan Stillman
7bb4091110 Added 'noChildren' search condition and switched main items view to always use a search rather than getItems(), for reasons that will become clear soon 2006-11-09 11:12:53 +00:00
Dan Stillman
a871f8977a Error when repository can't be contacted 2006-11-08 04:30:51 +00:00
Dan Stillman
de3dd85016 Fix error when linking to plaintext file (caused wait cursor to stay active on Linux) 2006-11-08 04:30:23 +00:00
Dan Stillman
cdbe354b0b Don't show Add Note/Attach Snapshot options in context menu when multiple items are selected 2006-11-08 04:29:54 +00:00
Dan Stillman
d0d3f80a61 Much improved date handling in searches and autocomplete
Fixes #338, Dates in search window should be converted to UTC before searching
Addresses #220, Add a more friendly way to enter dates in search window and accessDate field

- Unless passed a full datetime, the search system automatically parses the string with strToDate(), so one can search for an accessDate, etc., using a freeform phrase. It will use the SQL parts where available and also search for remaining words individually, so "November 6, 2006" will find '2006-10-06 Nov. 6 2006' and "Summer 2006" will find '2006-00-00 Summer 2006". It will also properly handle SQL parts, so "August 2006" in the is/isNot operator will use "LIKE '2006-08-__'" (underscore being the single-character wildcard) and isBefore will use '2006-08-00'

- Stored UTC dates are converted to localtime in the search system when searching on just a date part, since otherwise searching for a local date with a UTC timestamp after midnight would be unsuccessful

- Date field autocomplete is now disabled in the search dialog, but on the off-chance that it's used somewhere, the autocomplete will now return just the user part of a multipart date field

- Access date autocomplete only returns date, not datetime

- Fix for Date Added and Date Modified showing as UTC

- Date.isSQLDateTime()


Known issues:

- accessDate field in metadata pane still requires SQL format

- Proper parsing of search dates with no years (e.g. searching for "August 25") depends on #389, "Date.strToDate() should return available parts even if no year"
2006-11-06 12:05:57 +00:00
Dan Stillman
d52a302bc0 A few more tiny glitches with search date age mode 2006-11-05 09:46:56 +00:00
Dan Stillman
989e79f9b1 Fix small problem in search dialog with saved string representation of isInLast value persisting to a regular textbox of another condition 2006-11-05 09:34:03 +00:00
Dan Stillman
de5b998139 Closes #388, Use relative paths for imported attachments
Also fixes breakage of linked files since multiple attachments update
2006-11-05 09:13:01 +00:00
Dan Stillman
bfe62046d1 Fixes #339, Saved search dialog doesn't expand when you add new conditions
Addresses #155, Localize strings

- Fixed flex/overflow issues with search dialog
- Localized "Name:" in search dialog
- Disabled hover color for disabled clicky buttons with CSS3 not() selector and removed "unclicky" class
2006-11-05 08:18:06 +00:00
Dan Stillman
f91134edd7 Added isInTheLast search condition and interface support 2006-11-05 06:54:22 +00:00
Dan Stillman
e73285ffc5 Improve date field handling
- Item.setField() stores dates in a multipart format beginning with an SQL date followed by the user's entry, so "November 3, 2006" becomes "2006-11-03 November 3, 2006" -- date field entries are parsed with Zotero.Date.strToDate() if not already in multipart format

- Item.getField() returns just the user part unless passed the new second parameter, _unformatted_, which returns the field directly from DB without processing (e.g. the full multipart string)

- Added SQLite triggers on the itemData table to enforce multipart format even if the table is modified outside the API

- Migration step to update existing dates

- Indicator next to date field to show what we've parsed and a tooltip over the date field to show the SQL date -- though I'm not sure how well the abbreviation part will localize (i.e. can you abbreviate 'month' in Chinese?)

One obvious problem is how to handle date ranges when sorting or searching, which may end up rendering this whole method fairly useless (though I guess the multipart format could begin with two SQL dates instead of just one, at the cost of some storage space...).


Other changes:

- Utilities.lpad() handling for undefined value parameter

- new Zotero.Date methods: strToMultipart(), isMultipart(), multipartToSQL(), multipartToStr(), isSQLDate(), sqlHasYear(), sqlHasMonth, sqlHasDay getLocaleDateOrder() (the last one unused for now)

- try/catch around manual itemData INSERT execute() statements in Item.save()
2006-11-03 09:23:24 +00:00
Simon Kornblith
a1269146b7 - fixed XML issues with PubMed scraper (although probably not the issue that everyone seems to be experiencing)
- unfinished support for new item types
2006-11-02 00:33:50 +00:00
Dan Stillman
9172622c72 Closes #374, File attachment dialogs should accept multiple files at once 2006-11-01 07:39:13 +00:00
Dan Stillman
4ed836d7d0 Addresses #155, Localize strings
Localizing some remaining hard-coded strings and get rid of programmatically added colons

Also added .zero strings for various count properties, since plural logic from English won't apply to all languages
2006-11-01 01:27:20 +00:00
Dan Stillman
ad590efe44 Fixes #385, Only the first digit of "x items selected" is displayed
Sample properties files on Babelzilla need to be updated too if possible
2006-10-31 21:08:26 +00:00
Dan Stillman
58558c37a3 Fix for error when creating new items or attachments with saved search selected
Item.getSource() no longer protests when called on a regular item (it just returns false)
2006-10-31 21:03:08 +00:00
Simon Kornblith
58150dd94e addresses #377, Problems scraping from Hubmed/PubMed
makes scrape icon disappear when navigating away from a page
2006-10-30 06:08:33 +00:00
Simon Kornblith
e1af280017 fix doc.domain errors on load 2006-10-30 05:44:48 +00:00
Dan Stillman
b7dacb664e Fix incorrect folder permissions breaking attachments on Linux 2006-10-29 19:39:21 +00:00
Dan Stillman
4a05f1c8ad Version numbers back to .SVN for auto-update 2006-10-28 15:11:01 +00:00
Sean Takats
8674057ff9 Added Chinese (simplified) and German localizations from BabelZilla translators. Updated chrome.manifest to reflect new localizations. These localizations are not 100% complete or correct, but I expect that we will get corrections quickly as users spot mistakes. Currently there is a UI issue where the Chinese characters spill off of the tabs in the item details pane. 2006-10-27 17:28:45 +00:00
Dan Stillman
7a3be3e306 Updating SIRSI scraper to last time from repo
(The current repo system is a bit flawed in that translators need to be inserted with CURRENT_TIMESTAMP but scrapers.sql can't be, so scrapers.sql needs to be updated with the repo timestamp after the fact to prevent new installs from unnecessarily grabbing the changed scrapers (or they need to be post-dated to a timestamp after the UTC time of their repository insert but preferably not by more than 24 hours). Suffice it to say, we'll have a more automated solution for this in the future.)
2006-10-25 19:07:11 +00:00
Sean Takats
48659542d3 Updated SIRSI translator to handle author field (not just personal author). 2006-10-25 17:53:17 +00:00
Dan Stillman
ab86f3c1c0 Update update.rdf Firefox compatibility versions 2006-10-25 04:54:20 +00:00
Dan Stillman
ef8cd4a5e6 We'll start without automatically adding quotes -- might be handy, but there's the problem of double-quoting text with existing double quotes, and without a manual collation function they all end up sorted to the top
We'll see what the feedback is.
2006-10-25 04:34:34 +00:00
Dan Stillman
65ef6a6926 A very quick little addition to please the masses
Add options to browser context menu, "Add Selection to Zotero Note" and "Create Zotero Note from Selection"

"Add Note" context menu option on items
2006-10-25 04:07:40 +00:00
Dan Stillman
0b1002c8ce Closes #350, Buttons to select/deselect all items when ingesting multiple items 2006-10-25 01:02:07 +00:00
Dan Stillman
c00c2dfe81 Since this morning: New Item From Page was saving child attachments to collections rather than just the parents 2006-10-25 00:07:57 +00:00
Dan Stillman
794cbaee2c Decidedly not the time to make changes of this magnitude, but ids in the global overlay really need to be namespaced properly to avoid conflicts with other extensions
(These aren't all in the global overlay, but the ones that aren't at least share a CSS rule with elements that are.)
2006-10-24 23:40:04 +00:00
Dan Stillman
5d8924b747 Fix problems with two-field creator autocomplete and multiword last names getting moved incorrectly to the firstname field 2006-10-24 19:39:52 +00:00
Dan Stillman
62f9c0d6cc OK, I think this will give us both Z-pane height persist and a working full-screen mode 2006-10-24 19:28:39 +00:00
Dan Stillman
26b1658cca Version bump to r2 and swap IMLS & Mellon 2006-10-24 18:50:17 +00:00
Dan Stillman
40edcdee91 Error when adding a link or snapshot to the library (without a collection) 2006-10-24 18:33:58 +00:00
Dan Stillman
51664bc51a Always try to commit open transactions at shutdown 2006-10-24 18:22:56 +00:00
Dan Stillman
0809408d4b Fix for Z-pane not expanding to fill full screen 2006-10-24 17:40:51 +00:00
Dan Stillman
ca501a41c5 Fix for right column getting pushed off the side 2006-10-24 17:39:24 +00:00
Dan Stillman
4ca4c7823a Nudge radio broadcast icon over 1px 2006-10-24 09:58:16 +00:00