Commit Graph

964 Commits

Author SHA1 Message Date
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
Simon Kornblith
9ae9045664 - add Chicago Manual of Style (Note with Bibliography)
- only use numbers when outputting note citations
- fix type conditionals
2006-12-20 09:26:25 +00:00
Simon Kornblith
e5575d0643 really fix dates this time 2006-12-20 06:14:57 +00:00
Simon Kornblith
b79e798ef4 oops 2006-12-20 05:39:12 +00:00
Simon Kornblith
f56dd72ce4 fixed year bugs (thanks Sean) 2006-12-20 05:37:50 +00:00
Simon Kornblith
5ddd30eed8 - closes #458, chicago manual of style bibliography style. Sean and others, please test this if you have the time.
- fixes conditional bugs in cite.js. i haven't had to use the conditionals until now, but Chicago has some bizarre formatting rules (especially 17.169)
- removes extraneous debug code
2006-12-20 05:01:13 +00:00
Simon Kornblith
8515b0551a add AMS MathSciNet 2006-12-20 02:29:39 +00:00
Simon Kornblith
4afeb64196 support Oxford Journals table of contents 2006-12-20 01:37:01 +00:00
Simon Kornblith
04db363691 use getImageSrc() functions in place of hard-coded image URLs 2006-12-20 00:29:18 +00:00
Simon Kornblith
cfb9397638 add Oxford Journals. PDF downloads don't work quite right, because of #460. 2006-12-20 00:03:16 +00:00
Dan Stillman
c29a7abc00 Addresses #401, Add keyboard shortcuts
Closes #371, OCLC OpenURL resolver lookup should be a manual operation
Closes #341, Switch preferences to use prefwindow with multiple prefpanes

- Keyboard shortcuts for various actions and interface elements while Zotero pane is open, editable via new preference pane (which needs a better icon) -- more coming

- Switched keyboard shortcuts on Mac (including Zotero pane shortcut) back to Command-Shift, since apparently Command-Option-everything is more or less totally broken on OS X -- this does conflict with Redo on OS X, but people can change one of the two if they care.

- Option (on by default) to try to override existing shortcuts, which should help with some conflicts (e.g. Web Developer extension has a lot)

- Preferences now use prefwindow, which is totally buggy but when it works makes for a nicer and more platform-specific UI (e.g. preferences take effect immediately on OS X with no OK button)

- "Search for Resolvers" button instead of automatic request

- Zotero.Prefs.get() now takes a second 'global' param to easily get non-Zotero prefs

- Focus tag selector on display
2006-12-19 21:20:56 +00:00
Simon Kornblith
39025ab461 support Gale Literature Resource Center MLA Bibliography 2006-12-18 20:28:06 +00:00
Simon Kornblith
4e4c46f5c4 adapt InfoTrac College Edition translator to work with MLA Bibliography (version 1). there's also another MLA bibliography under the GaleNet Literature Resource Center that we don't yet support 2006-12-18 11:04:59 +00:00
Simon Kornblith
511f7ec77d - add DB load and save features to Scaffold
- add ECL notice to XUL files that were missing it
2006-12-18 08:01:04 +00:00
Simon Kornblith
666418ae64 frame issue fixes 2006-12-18 04:25:12 +00:00
Simon Kornblith
0c06cecebd - add Web of Science (but not Web of Knowledge CrossSearch) translator
- allow forcing of content type in doPost, although this luckily was not yet needed
- add missing Scaffold copy icon
2006-12-18 03:11:35 +00:00
Dan Stillman
9eb58db5a3 Fix tabbing in tags pane (broken by last commit) and make ensureItemIsVisible() work for tags 2006-12-17 23:28:21 +00:00
Simon Kornblith
4ff95b1715 - support testing in frames in Scaffold
- fixed a frame bug in ingester
2006-12-17 23:27:13 +00:00
Dan Stillman
3e399fa5de Fixes #137, When you scroll down in item info, and click another item, the scroll is still down.
Also:

- Ensures that buttons and fields in metadata pane are visible when you tab to them (e.g. off the bottom)
- Returns focus to items pane after updating field (without using tab)
2006-12-17 22:13:36 +00:00
Dan Stillman
fa23389d2c Fixes #422, Scroll to note in items pane when adding note via selection
Fixes this for other item types too (e.g. if title changes)
2006-12-17 21:01:06 +00:00
Dan Stillman
7aef526696 Somewhat better icon for the tag selector 2006-12-17 17:55:48 +00:00
Simon Kornblith
801a6c5dd2 - don't try to scrape JSTOR article information pages
- get rid of some console errors
2006-12-17 12:35:17 +00:00
Simon Kornblith
46607d0f90 support table of contents in JSTOR 2006-12-17 12:25:37 +00:00
Simon Kornblith
f65a62e0da added ACM 2006-12-17 11:53:29 +00:00
Simon Kornblith
b482e75bea fixed InnoPAC translator on University of Washington catalog 2006-12-17 09:54:37 +00:00
Simon Kornblith
db5ba3f2f0 - added Cambridge Scientific Abstracts
- fixed date generation in Scaffold
2006-12-17 09:44:59 +00:00
Simon Kornblith
448faedab5 - added a "copy" feature to Scaffold, which copies a translator to the clipboard
- implemented ability to test regex and run detectCode from within Scaffold. it is now possible to generate an entire translator from within the environment.
- added Factiva translator, which should work, although Factiva just went down for maintenance a few minutes ago
2006-12-17 01:27:42 +00:00