Commit Graph

1245 Commits

Author SHA1 Message Date
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
Sean Takats
2e1fa819ab Closes #516 for PubMed direct hits and refines Max Planck VL Library support 2007-02-15 22:42:36 +00:00
Dan Stillman
58235c6bf6 Display "(...) " before "Abstract:" when abstract field is cropped
I can't find any way to detect if the value is actually cropped with an ellipsis, so the best we can do is not display the ellipsis if the value is blank--if the value is shorter than the crop width but not empty, the ellipsis will still display.
2007-02-15 22:16:52 +00:00
Dan Stillman
3e7ddd04d8 Removed abstract-as-note functionality in favor of a regular 'abstract' field
Abstract displays in metadata pane as a cropped one-line field by default; clicking the 'Abstract' label toggles between the cropped field and an expanded view

Some problems with import/export: https://www.zotero.org/trac/ticket/537

Refs #537
2007-02-15 20:33:14 +00:00
Simon Kornblith
f756d16db0 addreses #526, highlight/unhighlight bugs (Sean, let me know if you're still having problems; a site and a list of procedures to follow to reproduce is probably the most useful thing, although some bugs can be very difficult to troubleshoot)
closes #531, error when closing tabs
2007-02-13 20:15:58 +00:00
Dan Stillman
00ff46d068 Closes #382, Make font sizes configurable/changeable
Add font size support in external windows

Windows can use the font size pref by including a line like the following in their init script:

Zotero.setFontSize(rootElement);

rootElement should be a XUL element that surrounds all content (but not a <window> or <dialog> or anything that doesn't have a 'style' property)

Windows with treeviews also need to include zotero.css:

<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>


Utilities should also do this for any GUIs they create.
2007-02-12 09:21:08 +00:00
Dan Stillman
d9b4b121b8 Don't allow Zotero.Notes.add() to set sourceItemID to an attachment 2007-02-12 07:08:47 +00:00
Dan Stillman
0a3913d792 Add 'isAbstract' property to notes arrays in toArray() output; changed translate.js to use it (not that it matters). We might want to add abstractID and abstract to the parent too--should the abstract be included if the user doesn't check "Export Notes"?
Don't include empty 'firstCreator' in notes and attachments in toArray()
2007-02-12 07:06:06 +00:00
Dan Stillman
f1c98f4450 Addresses #329, Method for going to URL separate from View button
URL label is now clickable -- has cursor feedback on hover but still needs a visual indicator of some sort

Other changes:

- Can now load snapshots and pages in new tab/window by using the standard Firefox modifier keys while clicking the View button or the URL field
- View button in metadata pane now displays "View" or "View Snapshot" as appropriate
- Better detection of invalid snapshots when deciding whether to use "View" or "View Snapshot"
- Non-HTML snapshots viewed via the View button are loaded using the standard attachment logic rather than just window.loadURI()
- Added green Go arrows to standalone attachment view/show buttons

Method changes:

- ZoteroPane.loadURI(uri, event, data) - (new) Load URI with standard Firefox mod key support; passing an object with 'attachmentID' property triggers annotation mode
- ZoteroPane.viewAttachment(attachmentID, event) - (new)
- ZoteroPane.viewSelectedAttachment(event) - Now takes event param
- Zotero_Browser.annotateThisPage(id) changed to annotatePage(id, [browser]) to handle background tab loading
2007-02-11 12:07:22 +00:00
Dan Stillman
fb40565b8c Fix for keyboard shortcuts not working after Z pane display (sometime since Beta 3 -- maybe switch from collapsed to hidden?) 2007-02-08 00:52:43 +00:00
Dan Stillman
8aa060b755 Fix collection delete error introduced by r1146 2007-02-07 14:34:10 +00:00
Sean Takats
febd827a90 New translator: Max Planck Virtual Laboratory Library 2007-02-07 02:05:38 +00:00
Dan Stillman
cc1517da90 Closes #220, Add a more friendly way to enter dates in search window and accessDate field
Addresss #352, Make sure data layer doesn't allow bad data via the API

Access date field is now human-friendly. Also enforcing SQL date form for the field in the DB and discarding bad data passed via setField().
2007-02-06 11:03:22 +00:00
Dan Stillman
f994352ab9 Addresses #532, Highlight collections containing item(s) when pressing alt/option
- Don't trigger other keyboard shortcuts twice
- Fix SQL error if item appears in no collections
2007-02-06 09:44:20 +00:00
Dan Stillman
51e2d36dd1 Closes #532, Highlight collections containing item(s) when pressing alt/option
Also:

- New method, Collections.getCollectionsContainingItems(itemIDs, asIDs)
- Convenience property Zotero.isWin
- ZoteroPane.onKeyUp()
2007-02-06 09:08:06 +00:00
Dan Stillman
b4bdede0d1 Closes #298, Add condition for searching by file type
"Attachment File Type"
2007-02-04 20:04:26 +00:00
Dan Stillman
d261dfdba5 Move nsIFilePicker.appendFilters() below init() in addAttachmentFromDialog(), though it doesn't seem to matter 2007-02-04 14:55:19 +00:00
Dan Stillman
4bbf774387 Fix crash on RHEL when attaching file 2007-02-04 14:51:11 +00:00
Dan Stillman
2df4fe20d0 Fixes #474, No way to rename attachments with blank titles 2007-02-04 14:03:26 +00:00
Dan Stillman
3858dfd88b Stop right-click on tag in tag selector on Windows and Linux from selecting tag 2007-02-04 13:25:01 +00:00
Dan Stillman
4caa096a46 Addresses #346, mapping for new item types
Closes #453, Check if any fields will actually be discarded on item type change before giving warning
Refs #530, Add base field conversion to translation level

Added mechanism for linking item type fields via base fields, e.g. publisher => label in audioRecording

New methods:

Item.getFieldsNotInType(itemTypeID, allowBaseConversion)
ItemFields.getLocalizedString(itemTypeID, field)
ItemFields.isBaseField(fieldID)
ItemFields.getFieldIDFromTypeAndBase(itemType, baseField)
ItemFields.getBaseIDFromTypeAndField(itemType, typeField)
ItemFields.getTypeFieldsFromBase(baseField)

Currently only the publisher fields are mapped -- I need more feedback on #346 before I implement the others (specifically on whether or not all these sorts of fields should be done as distinct fields or whether some should just be localized strings (in which case they'll autocomplete but not show up separately as search conditions))

Also added 'university' as distinct publisher field for thesis

Values of equivalent fields are now preserved when switching between item types (e.g. the 'studio' value becomes the 'label' value when switching between videoRecording and audioRecording), and the pop-up is much smarter--it will only prompt you if fields will in fact be lost, and it will list the fields that would be deleted.

Not finished:

- Searching for base fields doesn't yet search the type-specific fields, as Elena requested
- import/export/bib should be updated to use the ItemFields base conversion methods where appropriate -- data coming from the 'publisher' field from translators, for example, should be put into the appropriate type-specific field.
2007-02-03 17:08:03 +00:00
Dan Stillman
12107a01dd Fix DB migration problems when upgrading from early betas of Zotero 2007-02-03 07:52:45 +00:00
Dan Stillman
098f5a8321 Closes #508, Automatic update from repository on version upgrade 2007-02-02 11:53:26 +00:00
Dan Stillman
6de5307332 Missing pref from previous commit (r1150)
Place cursor in annotation on creation
2007-02-02 11:13:01 +00:00
Dan Stillman
a0d996d14d Warn on non-empty annotation close 2007-02-02 10:52:47 +00:00
Dan Stillman
63a9995227 Never display horizontal scrollbar in tag selector -- take that, automatic tags 2007-02-02 09:32:01 +00:00
Dan Stillman
73226f190d More scope fallout from r1144 2007-02-02 09:21:04 +00:00
Dan Stillman
dc872b2109 Fix treebox error in itemTreeView while using quicksearch 2007-02-02 09:16:58 +00:00
Dan Stillman
8364988810 Closes #497, Clicking parent title at the top of child note window should jump to parent item
Also:

- More scope fallout from r1144 
- ZoteroPane.clearQuicksearch()
- JS strict warning when opening attachment
2007-02-02 08:15:25 +00:00
Dan Stillman
97af49efc4 Removed extraneous ZoteroPane.getCollectionsView() and getItemsView() in favor of public properties
Switched all private calls of privileged methods to use 'this.' instead

No substantive changes

- This line, and those below, will be ignored--

M    overlay.xul
M    overlay.js
2007-02-02 06:27:43 +00:00
Dan Stillman
8e86f4b607 Fix scope error from DB architecture change 2007-02-02 06:15:21 +00:00
Dan Stillman
49b0f28f26 Abstracted the DB layer for use by Zotero utilities
All the former Zotero.DB methods are now part of an instantiable Zotero.DBConnection object, and Zotero.DB is just one instance of it. Utilities can create and access a new SQLite database within the Zotero data folder by instantiating the DBConnection object:

this.DB = new Zotero.DBConnection('myutility');

Utilities have access to everything the DB layer provides, including automatic backup and restore of databases. Utility writers are on their own for schema management, at least for now.

Also:

- Cleared non-English DB restore localized strings after change.
- Disabled shutdown observer in Zotero object after moving DB backup code to DB layer
2007-02-02 05:43:44 +00:00
Dan Stillman
f35f9f4827 Addresses #401, Add keyboard shortcuts
Default extensions.zotero.keys.overrideGlobal to off
2007-02-01 19:50:35 +00:00
Dan Stillman
8738662dc6 Addresses #382, Make font sizes configurable/changeable
Localize strings
2007-02-01 09:20:18 +00:00