Commit Graph

1128 Commits

Author SHA1 Message Date
Simon Kornblith
bb0fe85b52 fix resize issues 2007-03-13 07:55:17 +00:00
Simon Kornblith
5c1949f572 closes #529, ability to move annotations. there's a move button in the upper right. not quite as nice as dragging, but functional. 2007-03-13 07:36:39 +00:00
Simon Kornblith
0cde7d570d closes #478, ability to resize annotations 2007-03-13 00:45:40 +00:00
Dan Stillman
93b56ec0f3 Update SQL for inserting Quick Start Guide item in new installs to put title in itemData 2007-03-10 20:24:30 +00:00
Dan Stillman
ca61bce276 Localized strings for new 'title'-based fields from r1219 2007-03-10 06:45:34 +00:00
Dan Stillman
358924de47 Moved title field to itemData table, which made the following possible:
- All remaining fields in the items table exists in all items and are non-user-editable
   - Simplified some data access code (e.g. removed Item.isEditableField())
   - 'title' is now a base field used in case (Case Name), statute (nameOfAct) and e-mail (Subject)

Reengineered parts of the data layer for better performance

   - Various recent changes, including the 'title' change above and base field mapping in Item.getField(), had a negative effect on performance. This should help. In particular, itemData values are now loaded in in bulk by Items._load() (via Items.get()) rather than on-demand, the sort process in itemTreeView caches values while sorting, and ItemFields.getFieldIDFromTypeAndBase() is faster.


Addresses #346, mapping for new item types
2007-03-10 06:44:39 +00:00
Dan Stillman
3465346694 Fix translation errors when Zotero pane was closed (after being open previously) -- caused by zotero-pane switch from 'collapsed' to 'hidden' 2007-03-09 01:04:29 +00:00
Dan Stillman
caf97b6da4 Missed files from r1216
Localization changes:

- Removed periods on ingester.scrapeComplete and ingester.scrapeError
- Removed changed ingester.scrapeErrorDescription from existing locales
- Added ingester.scrapeErrorDescription.linkText
2007-03-08 23:38:54 +00:00
Dan Stillman
541c228a37 Translator errors now include a link to an upcoming Known Translator Issues page, which will eventually contain instructions for helping to fix broken translators
Related progress window changes:

- Translators now use Zotero.ProgressWindow rather than Zotero_Browser.Progress (removed) -- browser.js currently creates a single instance of ProgressWindow per browser window for its use
- Progress boxes now stay open while the mouse is over them and close when you click on them
- New method Zotero.Utilities.parseMarkup() -- parses a text string for HTML/XUL markup and returns an array of parts (currently only <a>)
- Using parseMarkup, ProgressWindow.addDescription() now supports adding clickable links to notifications

Other progress window changes:

- Fixed progress window offsets on Mac (on OS X outerHeight doesn't include 22px title bar and moveTo() positions popups 22px below the specified location) -- need to test this on other platforms
- Added support for displaying progress window notifications relative to screen edges when there's no browser window

Unrelated:

- Fixed warning when calling getSelectedCollections() before the Z pane had been opened
2007-03-08 23:36:19 +00:00
Sean Takats
47ec444b72 Whoops: didn't double quote an XPath... 2007-03-08 22:11:40 +00:00
Sean Takats
52f48e7c36 Fixes ACM, Blackwell Synergy, and SpringerLink issues mentioned in the forums 2007-03-08 21:59:48 +00:00
Dan Stillman
1f7f8bb7e1 Fix error when closing window caused by expand/collapse code 2007-03-08 20:56:45 +00:00
Dan Stillman
719ec8c694 Miscellaneous updates:
- Display items with empty titles at beginning of list (since having new notes and items appear at the bottom of the list is distracting)
- On item modify, select item if in active window (which hopefully doesn't have any side effects, though I'm not sure why I ever changed this)
- Focus quicksearch bar on Z pane open
2007-03-06 18:40:57 +00:00
Dan Stillman
f6d9a42644 Update Zotero.ProgressWindow to properly handle and stack multiple progress windows, stored in Zotero.ProgressWindowSet
Refresher:

var progress = new Zotero.ProgressWindow();
progress.changeHeadline('Indexing item...');
progress.addLines("My First Book", "chrome://zotero/skin/treeitem-book.png");
progress.addDescription('This is my first book.');
progress.show();
progress.fade();

var progress2 = new Zotero.ProgressWindow();
progress2.changeHeadline('Indexing item 2...');
progress2.addLines("My Second Book", "chrome://zotero/skin/treeitem-book.png");
progress2.addDescription('This is my second book.');
progress2.show();
progress2.fade();
2007-03-06 15:38:29 +00:00
Dan Stillman
5f37a75804 Miscellaneous fixes:
- Tags matching JS Array object methods ("every", "map", "splice") would appear selected in tag selector after clicking Deselect All
- Tag selector wasn't notified correctly on tag renames
- Don't use LIKE if no text string in Tags.search()
- Iterator variable in for loop in Notifier.commit() wasn't local
- Removed extra debug info in pdftotext run
2007-03-03 00:56:49 +00:00
Dan Stillman
12606548fe Added third parameter to Item.getField(), |includeBaseMapped|, to return value of equivalent type-specific field if provided field is a base field (e.g. getField('publisher', false, true) returns the value of the 'label' field if the item is an 'audioRecording')
Type-specific fields now display for 'publisher' in the items list

Added caching to ItemFields.isBaseField() and ItemFields.getFieldIDFromTypeAndBase()
2007-03-01 17:12:27 +00:00
Dan Stillman
5ae02ce447 Added Language, Call Number and Repository fields to middle pane
Row sorting now sorts by 'firstCreator' and 'date' after the main sort column
2007-03-01 16:05:19 +00:00
Dan Stillman
22dacc2dbc Renaming 'abstract' field to 'abstractNote' so it's not a reserved word in JS and we don't have to add in special logic for it
(Doesn't have to be 'abstractNote', especially now that abstracts aren't actually notes--other suggestions welcome.)
2007-02-28 20:16:04 +00:00
Dan Stillman
7a9cc0f935 Fixes #544, Can't add the word 'map' as a tag
Words corresponding to JS Object/Array methods/properties couldn't be added as tags -- oops

Fixed for CachedTypes and ItemFields as well, just in case
2007-02-28 20:01:34 +00:00
Dan Stillman
3e2bb8a4d7 Missed file from r1203 and removal of unrelated changes in zotero.js 2007-02-28 11:39:20 +00:00
Dan Stillman
f161b1afb8 Closes #359, Ability to store Zotero directory outside of Firefox profile directory
Customizable in the preferences

Also improves handling of Zotero startup errors, adding the ability to customize the tooltiptext of the status bar error icon and to have ZoteroPane.toggleDisplay() run a customizable error function (it no longer opens an empty and broken Zotero pane). For example, a missing Z directory now prompts the user to locate the directory.

Various code parts now check for the Zotero object and Zotero.initialized before trying to do stuff, which should cut down on redundant error lines in the console and generally make things cleaner.


Refs #542, Better icons for preferences window -- need icon for Advanced prefpane
2007-02-28 11:33:08 +00:00
Dan Stillman
4ffaaa9eea Addresses #346, mapping for new item types
Fix for base field not being included (only type-specific fields) when searching by a base field
2007-02-27 20:45:41 +00:00
Dan Stillman
b1a025be92 Fixes #543, database migration error
'number' data in B3 'patent' items should become 'applicationNumber', since there already was a 'patentNumber', even if going forward 'patentNumber' will map to the 'number' base field

Simon, if you still have a copy of the problematic data, please check that this fixes the upgrade path.
2007-02-27 20:18:06 +00:00
Sean Takats
b70cb4a2e6 Fixes JSTOR single item save; copies abbreviated publication title to full title if full title is absent in RIS (reported problem with Nature); fixes Voyager to handle UPenn catalog 2007-02-27 19:40:28 +00:00
Dan Stillman
3c60b98d69 Fix error when deleting non-attachment items caused by r1195 2007-02-21 19:53:04 +00:00
Dan Stillman
937ccaa850 Restore Notifier enable()/disable() for use by Attachment.importFromURL() and importFromDocument(), which do two-part saves and need to not send notifications after the first part 2007-02-21 19:46:14 +00:00
Dan Stillman
937072e875 Add Item.hasTags(tagIDs) -- returns true if the item has one or more of |tagIDs|
|tagIDs| can be an int or array of ints, so made Item.hasTag(tagID) just call hasTags()
2007-02-21 19:22:45 +00:00
Dan Stillman
fe0c574dee Updated JSTOR regex from Sean to work on articles from JSTOR's sandbox -- pushed to repo 2007-02-21 18:58:35 +00:00
Dan Stillman
baca59063d -- Basic support for indexing and scanning of PDF content --
This is still mostly proof-of-concept stage, but it seems to work on my Mac. It requires the pdftotext utility from the Xpdf project, which parses PDFs into plain text files. The Zotero fulltext indexer calls pdftotext on the PDF file and saves the plaintext version as .zotero-ft-cache in the attachment item's storage directory. It runs the fulltext word indexer on the plaintext file and also scans the plaintext file when doing a phrase search.

To try it out, install a copy of Xpdf (or just pdftotext) and either place pdftotext into the Zotero data directory or create a symlink. Either way, the file must be named pdftotext-{platform}[.exe], where {platform} is navigator.platform, with spaces replaced by hyphens (e.g. "Win32", "Linux-i686", "MacPPC", "MacIntel", etc.). On my Mac, with Xpdf installed via Darwin Ports, I create a symlink to /opt/local/bin/pdftotext named pdftotext-MacIntel. This setup will allow users to sync their Firefox profiles and still have Zotero use the appropriate platform-specific binary.

Assuming we go this pdftotext route, I think we'll instruct users to download and install Xpdf/pdftotext, possibly even providing binaries ourselves. The binaries are too big to include in the XPI. I'm going to look into creating a GUI to make linking Zotero to pdftotext easier. I also need to finish some of the other tickets related to indexer feedback and control.

There are also two new hidden prefs, fulltext.pdfMaxPages and fulltext.textMaxLength, currently set to 100 and 500K, respectively. The first determines how many pages of each PDF pdftotext processes, and the second determines how many characters and/or bytes of text files (the PDF cache files included) Zotero indexes and scans. These defaults may want to be adjusted higher or lower.

Closes #315, Hidden pref to set maximum file size to index/scan
2007-02-20 15:55:24 +00:00
Dan Stillman
0eb970fc9c Closes #443, Duplicate record via context menu
Works for regular items and notes, not attachments (and doesn't clone child items when duplicating parent)

New method Item.clone()


Unrelated changes:

- Fix note/attachment dragging, broken by notifier changes (r1131) a while back
- Item.save() now triggers Notifier even if a transaction is in progress, which I hopefully no longer had a reason not to be doing
2007-02-19 11:05:51 +00:00
Dan Stillman
264778f72c 2007-02-19 01:35:30 +00:00
Dan Stillman
bdcad86da5 Addresses #85, Button(s) to expand/collapse all notes in a view
Better idea: Add expand/collapse keypress listener in treeview setTree() so that it works automatically in all trees

More of the functionality in the overlay could probably be moved into the treeviews like this
2007-02-18 11:59:31 +00:00
Dan Stillman
5d638df73a Addresses #85, Button(s) to expand/collapse all notes in a view
Enable expand/collapse in advanced search window
2007-02-18 11:23:23 +00:00
Dan Stillman
4740d85d49 Closes #85, Button(s) to expand/collapse all notes in a view
Hit + to expand all tree rows, - to collapse. Works in both collections tree and items tree.

Probably could've thought of that 8 months ago when we created the ticket...
2007-02-18 11:16:41 +00:00
Dan Stillman
38416da753 Closes #367, Display dialog to locate missing attachment files
New "Locate..." button in file not found dialog.

Split file not found message into two parts and updated localizations accordingly
2007-02-18 10:15:44 +00:00
Dan Stillman
7199b6cc21 Fix crash on RedHat when exporting with Export Files checked (as reported here: http://forums.zotero.org/discussion/351/) 2007-02-18 08:36:33 +00:00
Dan Stillman
f7671f2a93 Add autocomplete on some more fields in the metadata pane, including all the type and medium fields (but not across each other, since they're distinct fields)
Add asNames option to Z.ItemFields.getTypeFieldsFromBase() to return field names instead of ids
2007-02-18 07:57:02 +00:00
Dan Stillman
42f2b56bb4 Closes #142, Dragging a URL over an item in the Zotero pane should create an attachment
Can drag links, images, or the favicon of the current page

Also allows dragging over collections and item pane whitespace to create standalone attachments, but if we want to allow that at all, it would probably be better to create new webpage items with snapshot items (like Create New Item from Current Page) instead.
2007-02-18 06:49:13 +00:00
Dan Stillman
a1485213e4 Remove Z.Items.search(), which is no longer used
Removed unnecessary debug output when a collection has no children
2007-02-18 04:46:22 +00:00
Dan Stillman
ca2ce1fc9d Addresses #493, Checkbox to display contents of subcollections when viewing collection
I don't know that this merits an option in the prefs, but here's a hidden pref for displaying collection items recursively
2007-02-18 04:45:03 +00:00
Dan Stillman
a908e087ac Note to self: actually test changes before committing
Restored "New Saved Search..." label and ZoteroPane.newSearch(), since they're used in the context menu on "My Library"
2007-02-18 01:45:45 +00:00
Dan Stillman
ca98f7e7c3 Missed file from r1181 2007-02-18 01:42:34 +00:00
Dan Stillman
0e62e3734a Removing New Saved Search button, which is redundant now that there's an advanced search window with a Save Search button 2007-02-18 01:41:41 +00:00
Dan Stillman
41433841e4 Get shortcut keys from preferences automatically without needing to maintain array in Zotero.Keys 2007-02-18 01:31:24 +00:00
Dan Stillman
7c8b185b27 Fix accessDate for attachments showing up as "false" (caused by r1162) 2007-02-17 23:48:53 +00:00
Dan Stillman
a076095400 Closes #405, Pressing copy keystroke with item selected should copy citation to clipboard
Shortcut key defaults to "C"

Abstracted clipboard logic in Zotero_File_Interface._doBibliographyOptions() to separate function, Z_F_I.copyItemsToClipboard(items, style), which ZoteroPane.copySelectedItemsToClipboard() calls

Currently limited to citation styles, but there's no reason it couldn't support export formats, etc.
2007-02-17 23:13:48 +00:00
Dan Stillman
97d1e0b844 Closes #346, mapping for new item types
Closes #227, Indent nested collections in search drop-down
Addresses #528, Make search condition drop-down menu less unwieldy

- Created new distinct fields for differently labeled fields
- Mapped lots of fields to base fields
- Made base field search conditions search type-specific fields as well
- Removed type-specific fields that are based on base fields not show up in search conditions drop-down
- Added a tooltip when hovering over a condition in the search conditions drop-down that shows the fields it searches (when there's more than one)
- Moved search dialog CSS to separate file
2007-02-17 09:39:51 +00:00
Dan Stillman
1be37c6aa7 Don't know if it will stay exposed, but I added a search condition for child notes (e.g. find the parent containing a child matching the specified text) 2007-02-16 08:50:47 +00:00
Dan Stillman
a93c801d0e Remove enableMacClipboard pref and just display a warning message ("Some formatting may be lost.") on OS X. 2007-02-16 08:44:09 +00:00
Dan Stillman
45360c7198 Addresses #141, Fix cosmetic issues on Windows and Linux
- Use default background for Zotero pane and get along with custom styles a bit more
- Reduce padding in tag selector
- Reduce margins around trees, reducing space between panes a bit
- Hide splitter below collections pane when tag selector is hidden
2007-02-16 08:25:32 +00:00