Commit Graph

990 Commits

Author SHA1 Message Date
Dan Stillman
ee9cf59e26 Improve attachment saving with regard to filenames
- Added a wrapper around nsIMIMEService.getPrimaryExtension() that works a bit more sanely (doesn't throw an error on failure, enforce a couple hard-coded extensions (PDF and HTML) even on Linux (where the MIME service one isn't implemented))
- Use the extension we got back from our improved getPrimaryExtension(), even if the filename already had one
- If no filename, use last part of path before restorting to hostname
2007-01-10 21:42:30 +00:00
Dan Stillman
6fbebfae28 Fix error if file has no MIME type in indexFile() (fixes startup error reported in forums) 2007-01-10 11:03:00 +00:00
Dan Stillman
dd4ab35dc4 Pushed fixed ISI Web of Knowledge translator to repo 2007-01-10 05:03:14 +00:00
Simon Kornblith
c37aea8165 oops; update timestamps 2007-01-10 00:19:07 +00:00
Simon Kornblith
9d39f73947 - fixes issues with the ISI Web of Knowledge translator. in the process of testing, I realized that, when searching the Web of Knowledge for common words (e.g., "quark"), the Web of Knowledge does not return a meaningful set of results. neither the "Web of Science" links, nor the export feature (through Zotero or the web interface) work at all. perhaps this is something to contact ISI about?
- fixes miscellaneous issues with frames (not relevant to b3)
2007-01-10 00:17:52 +00:00
Dan Stillman
c33cc7d0c9 Not sure how this bug made it this far, but don't return empty values in Items.get() when passed an array including nonexistent itemIDs 2007-01-09 05:49:31 +00:00
Simon Kornblith
97665e4060 closes #492, i think
unfortunately, EBSCO exports still aren't working for me, but it doesn't seem to be Zotero's fault; i'm just not getting any RIS output to begin with. i'll give this another glance later today.
2007-01-08 17:38:02 +00:00
Dan Stillman
fceb21f629 Get rid of my local test.js changes (committed by accident) 2007-01-08 09:36:17 +00:00
Dan Stillman
62f273e034 Merge r1047 through r1063 back to branch 2007-01-08 09:33:36 +00:00
Dan Stillman
1bfa4425bd Merge r1036, r1037, r1039, r1040, r1041, r1042 back to the branch 2007-01-05 08:17:01 +00:00
Dan Stillman
80354effc6 Don't break Zotero upgrades completely 2007-01-05 07:45:42 +00:00
Dan Stillman
87e6d3ab0b Localizations from Babelzilla, merged with new English strings for Beta 3 2007-01-05 07:37:09 +00:00
Dan Stillman
e5bb27311d Fix tag selector display after localstore.rdf has been cleared 2007-01-03 11:33:52 +00:00
Dan Stillman
cf603a4b6c Fix default sort order 2007-01-03 11:24:10 +00:00
Dan Stillman
55244b5cf7 Closes #418, Context menu option to rename attached files
New methods, Item.renameAttachmentFile(newName, force) -- _force_ forces overwrite of an existing file

For the moment, implemented in the UI via a checkbox in the attachment title rename dialog (accessible by clicking on the title in the right pane) to rename the associated file as well -- this might be replaced by the upcoming keep-filenames-in-sync-with-attachment-titles feature, but it's probably fine for Beta 3.

Also new:

- Zotero.Attachments.getPath(file, linkMode) to get a relative or persistent path as appropriate given the link mode
2007-01-03 11:16:36 +00:00
Dan Stillman
b9f036e5f1 Fix various things I broke (empty collections, auto-selection of new items, editing of inline attachment notes) 2007-01-03 07:45:32 +00:00
Dan Stillman
1b675ecc7e Fixes #447, Disable tags and related on abstracts
New methods:

Item.removeAllRelated()
Item.removeAllTags()

Also:

- Tag selector didn't initialize properly if it was closed when Firefox was started
- Items pane would lose open state of items and current scroll position when an item was edited while the tag selector was open -- added save/rememberOpenState() and save/rememberFirstRow() to fix this, and these could also fairly easily be used to remember the open state while switching between collections
2007-01-03 06:54:41 +00:00
Simon Kornblith
be2abdf397 provide DB infrastructure for resizing annotations; this will delete any existing annotations 2007-01-03 04:48:18 +00:00
Simon Kornblith
70d06e02f2 closes #440, In-page highlighting of snapshots
closes #441, In-page annotations of snapshots

testers: please check pages containing both annotations and highlights to make sure everything works correctly
2007-01-03 02:21:26 +00:00
Dan Stillman
09920275ac Closes #424, "Create Zotero Note from Selection" should create a webpage item automatically
Also make "Add Selection to Zotero Note" note not add two newlines before the text if the note is empty
2007-01-03 01:41:28 +00:00
Dan Stillman
0db91db680 Closes #398, add option to have a smaller Zotero logo or just a "Z" in the status bar
And removed some old images
2007-01-03 01:14:30 +00:00
Dan Stillman
8218ef7ec4 Don't throw an error (accessing the document domain propety) when loading a Zotero report 2007-01-02 22:15:41 +00:00
Dan Stillman
8710875fdb Fix itemTreeView.rememberSelection() to find children of unopened parents as well as top-level items
This makes the quicksearch considerably more useful, as you can search for a child item in the library, select it, and then clear the search to view the item in context. (Works for multiple items as well, even of different parents.)
2007-01-02 13:15:31 +00:00
Dan Stillman
0abda111a6 Addresses #394, Add generic item types
Add Document item type.  Just the type -- no magical properties for now.

Fields: title, publisher, date, and the globals (callNumber, archiveLocation, repository, rights, url, accessDate, extra). 
Creator types: author, contributor, editor, translator, reviewedAuthor (should these all be here?)
2007-01-02 12:19:00 +00:00
Dan Stillman
0f818079bd Closes #437, ability to get sorted contents of selected collection/saved search
ZoteroPane.getSortedItems() -- return array of item ids of visible items in current sort order
2007-01-02 11:46:17 +00:00
Dan Stillman
aec015c039 Dramatically speed up items pane sorting (~65% reduction in sort time on a test library of 195 items)
(Moved redundant string manipulation out of the sort() callback. I put it there by mistake in r831 when namespacing all the XUL ids right before b2.r2.)
2007-01-02 11:28:04 +00:00
Dan Stillman
b8321f13ea Fix ZoteroPane.selectItem() to rely on itemsView.selectItem() to find the item in the current view if it's there, regardless of mode -- this simplifies ZP.selectItem() and fixes problems adding items while viewing a saved search. If the new item(/attachment/note) matches the saved search, it'll now appear and become selected. Otherwise, Z will switch to the Library and the new item will be selected in there.
There might be some regressions from this, but it seems to work fine.

Also:

- Fixed JS strict warnings in popup note window
- Use Zotero.Notes.add() when using toolbar button instead of a two-stage save with ZP.newItem('note')
2007-01-02 10:50:38 +00:00
Dan Stillman
26c62fba4b Addresses #400, Report generation
CSS updates from Jeremy with some streamlining by me (consistency of print style, removal of unnecessary lines, and some other fixes)

Changed doctype to XHTML 1.0 Strict from 1.1

Adding /html/report.html to end of URL to provide a filename hint for Firefox (instead of the file being called 12345-34567-84573-42632.xhtml)
2006-12-31 14:32:13 +00:00
Dan Stillman
c2858475a8 Fixes #347, Dragging a URL over the Zotero pane (even without releasing) throws an SQL error
x-moz-url was listed as a supported flavour in both panes but not actually supported

Also fixed a typo (= instead of ==) in collectionTreeView's canDrop()
2006-12-26 07:27:34 +00:00
Dan Stillman
36d6ff58b8 Fixed inadvertent switch() fall-through causing all collections to be recursive (which some people want, but it shouldn't be the case by accident) 2006-12-26 07:04:39 +00:00
Dan Stillman
eba6d8403b Fixes #421, Editing a note that doesn't match an active search causes note to be deselected
If an edit causes a note to stop matching the quicksearch, clear the search

Also:

- Select text in quicksearch when using shortcut key instead of just focusing
- Fixed strict warning
2006-12-26 06:30:27 +00:00
Dan Stillman
268aad212b Addresses #414, it is possible to edit the "extra" field and another field simultaneously
But don't break the independent note tags view

Also fix another tags error in that view

A lot of item pane logic really needs to be put in bindings, somehow...
2006-12-25 09:06:42 +00:00
Dan Stillman
d179ad4686 Fixes #414, it is possible to edit the "extra" field and another field simultaneously
(As noted in the ticket, this bug applied to clicking between any fields (not just "extra") without changing a value -- it also kept the second textbox from focusing properly on click.)

Not entirely sure how I broke this, but here's a fix.
2006-12-25 08:58:35 +00:00
Dan Stillman
ed3e9449d2 Closes #459, add preference option for downloadAssociatedFiles
"Automatically attach associated PDFs and other files when saving items"
2006-12-25 08:23:09 +00:00
Dan Stillman
8fc9d50400 Fixes #460, importFromURL fails when importing PDFs from servers that do not properly support HEAD requests
Override MIME type to application/pdf if extension is .pdf -- not all that robust, but it should work for most sites
2006-12-25 08:18:40 +00:00
Dan Stillman
4ac85925d2 Removed "Select Visible" button in tag selector, since it doesn't really make sense (and causes problems) without an ANY search mode
Changed "Clear Visible" and "Clear All" to "Deselect*", which is a bit messier but probably clearer
2006-12-25 07:23:59 +00:00
Dan Stillman
ecab0e5785 Closes #470, Add tag add/modification/delete targets to Notifier
Closes #471, Tag selector should update when tags are added/removed

Tag Selector overhaul:

- Right-click to rename/delete tags globally
- Filter tags to only those associated with currently visible items, with a Display All checkbox to show others in gray -- scope list set via new callback mechanism in the items tree
- Drag and drop items onto tags to batch assign
- Tag Notifier events, currently unused (tag selector currently just refreshes on all item events, since doing granular tag updates is considerably more complicated)
- Performance improvements, offset by the new features that make it slower

There should probably be an option to use either an ANY or an ALL search in the tag selector... (It's ALL by default now.)


New methods:

- Zotero.hasValues(obj) -- return true if an object (/associative array) has at least one value, false if not
- Zotero.Item.addTagByID()
- Zotero.Item.hasTag()
- Zotero.Tags.getAllWithinSearch(search)
- Zotero.Tags.rename(tagID, tag)
- Zotero.Tags.remove(tagID)
- ItemTreeView.addCallback()
- ItemTreeView.setFilter('search'|'tags', data) -- replaces searchText()
- CollectionTreeView.getSearchObject() -- search object used to generate the items list
- CollectionTreeView.getChildTags()
2006-12-25 07:06:46 +00:00
Simon Kornblith
cac436a7ee closes #465, Remember bibliography and export preferences 2006-12-22 17:09:46 +00:00
Simon Kornblith
da1f4944f5 ...and another tweak 2006-12-21 23:46:27 +00:00
Simon Kornblith
4881a2bd7c tweak HighWire regex 2006-12-21 23:33:31 +00:00
Simon Kornblith
259700f3d7 closes #468, make RIS disregard headers 2006-12-21 22:27:21 +00:00
Simon Kornblith
42a3ac9cb1 fix missing comma in book section 2006-12-21 22:13:05 +00:00
Simon Kornblith
d2e4063b20 fixes #466, Miscellaneous Chicago Manual of Style formatting problems 2006-12-21 22:09:45 +00:00
Dan Stillman
bd7d95a576 Prevent Item.save() from running when hitting Escape in an empty field (I don't know when this started, but Beta 2 didn't do it...) 2006-12-21 08:43:55 +00:00
Dan Stillman
1cf88c30e7 Fixes #461, tab bugs 2006-12-21 08:40:31 +00:00
Simon Kornblith
b650d99ef3 fix missing "l" (r1000) 2006-12-20 12:11:33 +00:00
Simon Kornblith
ae41107c59 support HighWire metasearch when accessed through HighWire site 2006-12-20 11:59:23 +00:00
Simon Kornblith
060512a379 handle all HighWire journals (Oxford, Science, etc.) with one translator 2006-12-20 11:45:00 +00:00
Simon Kornblith
a33fbd0834 add ACS Publications translator 2006-12-20 11:08:34 +00:00
Simon Kornblith
1761a2e7c8 support COinS Dublin Core format 2006-12-20 10:22:31 +00:00