Commit Graph

964 Commits

Author SHA1 Message Date
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
Dan Stillman
ebddde745b Fix two-field creator autocomplete when something interrupts the saving process (like the upcoming Hello World utility)
Automatically focus new creator rows when hitting plus sign
2006-10-24 09:27:10 +00:00
Dan Stillman
5ee045d8d4 Persist the Z-pane height, and default to 300px 2006-10-24 08:13:30 +00:00
Dan Stillman
99f7badf42 Fix for collections not refreshing on item delete (thanks Simon) and new snapshots not getting added to the active collection (since yesterday) 2006-10-24 08:04:41 +00:00
Dan Stillman
9762d768e1 For the love of all that is holy, persist the item pane width 2006-10-24 06:26:41 +00:00
Dan Stillman
953a43064a Item.getCreators() didn't call _loadCreators(), apparently... 2006-10-24 05:57:00 +00:00
Dan Stillman
43bc723876 Addresses #161, interface with CSL repository
Client-side updates

(Note that translator updates were broken anyway, since the translator table was changed and the update mechanism wasn't, so that's fixed now too, and <=1.0.0b2.r1 won't be served updates via the repository.)
2006-10-23 23:24:11 +00:00
Dan Stillman
61fab3a2dd Fixes #366, Automated backup will back up a corrupted DB
We already copy to an interim temp file on shutdown--just try to open it before overwriting old backup file

Still wish there was a way to detect corruption while Zotero was still open and pretending to write to the DB, but I don't know of one (other than making a copy of the DB and trying to open it, but as far as I can tell we can't release the file handle on it to then delete it or check again later)...will keep working on it.
2006-10-23 20:46:04 +00:00
Simon Kornblith
666831748e closes #358, APA style doesn't properly handle references with editors and no authors
closes #348, OpenURL should use only relevant parts of dates
closes #354, Error saving History Cooperative article
closes #356, Embedded Dublin Core scraper incorrectly saves web pages as item type "book"
closes #355, PubMed translator problem
closes #368, RIS/Endnote export hijack doesn't go into active collection
fixes an issue with quotation marks in bibliographies exported as RTF
fixes an issue with bibliographies and non-English locales
2006-10-23 07:34:34 +00:00
Dan Stillman
e9e13bd38f Forgot to commit localized string 2006-10-22 10:18:06 +00:00
Dan Stillman
677b047172 Addresses #367, Handle missing attachment files
- Catch errors trying to display missing files and display message to user

- Switch to persistent descriptors rather than relative paths for attachment paths -- this will fix attachments on networked drives (which, at least on Windows, were not working and apparently in some cases breaking entire Zotero installs), but since WebBrowserPersist.saveDocument() is asynchronous and file.persistentDescriptor can't be set on Macs before the file exists, Attachments.importFromDocument() no longer returns the id of the new attachment, so translate.js had to be changed accordingly

- Try to convert relative descriptors to persistent ones with migration step (and later on access, if persistent fails)

- Added Zotero.WebProgressFinishListener(onDone)


Next step would be to throw up a file dialog to let the user locate the missing file
2006-10-22 10:11:29 +00:00
Dan Stillman
6a40ced842 Use open envelope icon for letter (closed envelope currently used for e-mail, though that could be clearer)
Use speaker icon for radio broadcast, though it should really be a radio or a transmitter (that doesn't look like an RSS feed, unlike all the ones I saw on famfamfam)
2006-10-21 11:16:31 +00:00
Dan Stillman
117870b4f3 Fixes #361, Camera in snapshot icon should be in same place as chain in link icon
Doesn't read all that well, but the other wasn't all that much better, and at least it's more consistent with the link icon this way...
2006-10-21 11:10:57 +00:00
Dan Stillman
0f75f1243e Fixes #357, Presentation item type missing some fields 2006-10-21 10:46:52 +00:00
Dan Stillman
016587d983 Default to the field mode of the previous creator when adding a new row, and if first row, use the last-used mode program-wide 2006-10-21 09:25:12 +00:00
Dan Stillman
cf37ce6e82 Addresses #352, Make sure data layer doesn't allow bad data via the API
Don't allow a save() with noncontiguous creator order indexes
2006-10-21 06:04:30 +00:00
Dan Stillman
c507e02d58 Fix nested DB rollback behavior 2006-10-21 06:00:46 +00:00
Dan Stillman
038d403d46 Fix for one of the bibliography errors 2006-10-21 00:29:53 +00:00
Dan Stillman
a4cd5d69d6 Fix note spellcheck in Minefield 2006-10-20 23:04:38 +00:00
Dan Stillman
6a2f44c07e Fixes #353, enable spellcheck in notes
XUL spellcheck code is on Bugzilla but doesn't look like it'll make 2.0, so we'll copy-and-paste. (And even when it is checked in it might not work with our timed-textarea (which itself is a slightly modified version of Mozilla's timed-textarea) anyway.)

Seems to work, though Firefox did crash once while I was testing it...
2006-10-20 20:42:36 +00:00