Commit Graph

976 Commits

Author SHA1 Message Date
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
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
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
Dan Stillman
006509b5d2 Closes #382, Make font sizes configurable/changeable
Configurable in preferences or via hidden pref for more extreme options

Also straightened up diplay of UI options in pref pane
2007-02-01 09:15:37 +00:00
Dan Stillman
2ddfebfa26 Fix in-the-last textbox, broken by r1134 2007-02-01 03:00:13 +00:00
Dan Stillman
cec78ed348 Allow double-click on a saved search to edit 2007-02-01 02:19:31 +00:00
Dan Stillman
c33da4ff73 Closes #514, Search checkbox for noChildren condition ("Only show top-level items") 2007-01-31 09:02:46 +00:00
Dan Stillman
2b1fbf5e9a Fixes #507, Twisty on collection is not removed after deleting last subcollection
Same thing happened on New Subcollection -- data layer wasn't updating hasChildCollections
2007-01-30 23:37:49 +00:00
Dan Stillman
97de1a41e2 Move custom search textbox (for regex, etc.) and in-the-last condition field into zoterosearch.xml 2007-01-30 21:41:37 +00:00
Dan Stillman
5313aff1a2 Closes #518, Support drag and drop in advanced search window
Also fix occasional throw error when first dragging to a collection
2007-01-30 21:35:58 +00:00
Dan Stillman
fb22bd04ba Closes #438, Add language field to every item type
Closes #450, encyclopedia article and dictionary entry types

Language might want some special properties (Dublin Core recommends "en" or "en-us"-style values as a best practice)

Also reordered some fields
2007-01-30 20:38:51 +00:00
Dan Stillman
5a25fa3e0c Updated Notifier trigger architecture and data layer to send a pre-modification copy from toArray() of items/collections/tags as part of 'modify'/'delete' notifications
Sent as a fourth parameter to notify() -- parameter is an array of objects (in the same order as the ids) that currently contain a single property, 'old', which holds the toArray() object

Copies are not sent with 'modify' when it's only meant to refresh the UI and there's another trigger that covers the data change (e.g. removing a tag from an item sends both an item modify and an item-tag add, but the modify doesn't get a pre-change copy of the item since any consumers that care should just monitor item-tag)

 Also:

 - Removed Notifier.enable()/disable()
 - Notifier no longer sends modify() if item already deleted
 - New methods: Collection.toArray(), Zotero.Tags.toArray(tagID)
 - Removed a few extraneous triggers
2007-01-30 10:21:01 +00:00
Dan Stillman
56a0863a9d Fixes #520, deleting items from smart collections/search fails under certain circumstances
Simon, reopen if this doesn't fix the problem you were referring to.

(Also removes Notifier.enable()/disable() from its use in Item.erase() while we're at it.)
2007-01-30 06:16:03 +00:00
Simon Kornblith
b3588e6b75 references #457, unAPI translator
- adds missing unhighlight icons
- reorganizes code to allow asynchronous detectCode, which will be necessary for unAPI support
2007-01-30 05:09:13 +00:00
Simon Kornblith
8ee2b529ae closes #503, add pref to automatically grab tags 2007-01-30 03:15:34 +00:00
Simon Kornblith
90623de366 closes #477, un-highlight feature. please test this; it's quite likely there are bugs, since the code is nontrivial and Mozilla's DOM range code support is far from perfect. 2007-01-30 03:01:48 +00:00
Dan Stillman
9197a8b4de Fixes #515, Zotero pane min-height remains in effect when pane is closed
Also:

- Changed default Zotero pane min-height to 32px, which lets you shrink it to just the controls -- it would be better if we had a notification popup for the various non-translator save functions, since this way there's no feedback when you click the buttons, but at least it's possible. A dedicated mode with a keyboard shortcut would probably be better.
- Fixed bug (I think) whereby resizing the Z pane downward after resizing the tag selector up and then down sometimes caused the Z pane to stay at a fixed size and get pushed below the bottom
2007-01-29 23:16:43 +00:00
Simon Kornblith
7b808ac368 closes #509, Citation appears before parentheses 2007-01-27 10:35:39 +00:00
Simon Kornblith
fe9e699e5e closes #488, Proquest translator broken
references #502, Special handling for automatic tags (support is now enabled, but not tag type is not maintained during RDF export)
references #517, ScienceDirect translator fails (I fixed the issue I had translating this page, but I think the reported error may be different)
2007-01-27 06:24:31 +00:00
Simon Kornblith
3e93f94a90 closes #484, RTF Citation Export Loses Characters on Windows 2007-01-27 05:12:45 +00:00
Simon Kornblith
7a4b87257c closes #505, Bibliography alpha sorting by case
closes #376, Bibliography export order jumbled
closes #482, Tag selector does not refresh on import/delete
closes #499, zotero RDF import of attachments has a flaw
closes #500, Improve COinS handling of other item types

- fixes an issue with importing directory hierarchy
- fixes an issue where the SpringerLink translator could fail to recognize a scrapable resource
- fixes an issue where the Nature translator could fail to retrieve an associated PDF

feel free to push the updates to the SpringerLink and Nature translators to the repository; theoretically, the RDF translator should be backwards-compatible too, but I'd like to test it with b3 before potentially breaking functionality.
2007-01-27 05:00:13 +00:00
Dan Stillman
7f0c9844ea Addresses #47, Advanced search window
Missed file
2007-01-26 10:52:27 +00:00
Dan Stillman
7fbe630c85 Closes #47, Advanced search window
And they said it would never happen.

Doesn't yet support dragging items to other windows, etc., but you can double-click to focus the item in the most recent Zotero pane. You can also save the search as...a saved search, which means that theoretically we could get rid of the now-redundant "New Saved Search" icon.


== Other/related changes ==

Search dialog:

- Better keyboard handling (focus condition menu by default, Enter to trigger command (e.g. search in the Advanced Search window), Shift-Enter to add new row)

Zotero.Search:

- Zotero.Search.clone() -- return copy of search
- Zotero.Search.getSearchConditions() now returns copy of conditions

itemTreeView:

- Always sort by the first column if no sort column set; removed isSorted() logic, since isSorted() now always returns true
- Made itemsTreeView.refresh() call rowCountChanged, since there were cases in which the tree could end up looking for nonexistent rows after they'd been removed
- selectItem() now takes a second parameter, expand, to open the selected item if it's a container
- selectItem() now tries to get the selected item at least slightly away from the bottom (since ensureRowIsVisible does only the bare minimum) and also tries to get the parent item in view when scrolling upwards to make a child item visible
- Moved getSelectedItems() logic into the treeview instead of overlay.js
2007-01-26 10:51:43 +00:00
Dan Stillman
a124ae3f64 Fix report generation from collecion context menu, which apparently was broken in Beta 3 (except before a column is first selected for sorting) 2007-01-25 07:12:48 +00:00
Dan Stillman
0c6b3e91fd Year column (truncated date field) 2007-01-24 19:29:35 +00:00
Dan Stillman
e40b99cb02 Closes #511, Popup note window should remember its size and position
This will actually persist the size and position on a per-note basis, which wasn't actually intentional, but, hey...
2007-01-24 04:26:45 +00:00
Dan Stillman
34af1dd400 Fixes #343, + column does not sort
Closes ##399, provide ability to view columns in middle pane for any field that shows up in all item types

Added Publisher and Date column options

Note that new columns will be out of order until Restore Natural Order is selected

Also:

- Switched around column XUL ids to make things easier
2007-01-24 02:31:25 +00:00
Dan Stillman
49be275ad3 Fixes #510, Notes marked as abstracts do not appear with blue icon in Notes tab 2007-01-23 23:22:38 +00:00
Dan Stillman
6671af4918 Addresses #502, Special handling for automatic tags
- Localize "Show automatic" in tag selector
- Remove debug line
2007-01-22 22:44:29 +00:00
Dan Stillman
8fd25fc6a8 Addresses #502, Special handling for automatic tags
Fix broken report generation after automatic tag changes (automatic tags not currently displayed differently in reports)
2007-01-22 22:35:46 +00:00
Dan Stillman
4095b82180 Addresses #502, Special handling for automatic tags
Missed file
2007-01-22 22:34:32 +00:00
Dan Stillman
a3126da160 Addresses #502, Special handling for automatic tags
- Automatic tags now appear in orange; tooltip says either "User-added tag" or "Automatically added tag"
- New menu in tag selector to toggle automatic tags
- User and automatic tags are combined in tag selector, so renaming/deleting a tag will affect both user and automatic, regardless of view mode
- Editing a tag makes it a user tag, as does adding an identical user tag to an item (rather than creating a second one)
- ingester/export will need to be adjusted to add automatic tags

Changed:

Item.addTag(tag) => addTag(tag, type)
Item.getTags() - now returns 'id', 'tag', 'type'
Item.toArray() - tags now include 'type' property (from Item.getTags())
Tags.getID(tag) => getID(tag, type)
Tags.getAll() => getAll([types]) - types is an optional array of tagTypes to fetch; now returns objects with 'tag' and 'type' properties
Tags.getAllWithinSearch(search) => Tags.getAllWithinSearch(search, [types]) - now returns object with 'tag'/'type'

Added:

Tags.get(tagID) - returns object with 'tag' and 'type' properties
Tags.getIDs(tag) - returns all tagIDs for this tag (of all types)
Tags.getType(tag) - returns array of tag types matching given tag

For type property, 0 == user, 1 == automatic
2007-01-22 22:32:52 +00:00
Dan Stillman
2f94234a36 Fix error adding items from library to collection (introduced since b3) 2007-01-22 21:37:16 +00:00
Dan Stillman
ef53fb9b67 Don't show "Remove selected item" for child items in collections
Only show basic options in (disabled) no-selection item drop-drown
2007-01-22 02:05:41 +00:00
Dan Stillman
b8fba0335d - Make "Save Link As Zotero Snapshot" save attachment to selected collection
- Fix hourglass cursor on importFromURL (happened with "Save Link As Z Snapshot")
2007-01-21 22:56:46 +00:00
Dan Stillman
f7df89ad07 Update credits pane 2007-01-18 07:50:09 +00:00
Dan Stillman
0203bae163 Fixes #506, Right-click to create new collection not functioning 2007-01-17 21:54:10 +00:00
Dan Stillman
ebe4ec7446 Fixes #475, Quicksearch doesn't find child items in collections or saved searches
It ain't pretty, but (I think) it works.

Also:

- Fulltext content search should handle ANY/ALL modes better, but that needs some more testing.
- Tag selector now properly takes fulltext content search conditions into account when filtering to scope.
- Added Zotero.Search.hasPostSearchFilter(), since getSQL() isn't sufficient with post-search filters.
2007-01-17 11:51:11 +00:00
Dan Stillman
6e646b0455 Toggling the tag selector with the keyboard shortcut throws an error 2007-01-13 00:31:34 +00:00
Dan Stillman
2c1c8636e2 Fix two problems that occur when the tag selector is closed:
- Items removed from collections remain in the center pane
- Adding an item while a collection is selected causes the Library to become selected
2007-01-13 00:21:51 +00:00
Dan Stillman
7a0a6f75a2 Fixes #496, Snapshot doesn't complete on some web pages
I'm not entirely sure this won't break attachment saving in other cases, so people should keep an eye out for failed snapshots.
2007-01-12 08:40:09 +00:00
Dan Stillman
28a6b5f7cb Closes #494, Remember "Rename associated file" setting
Also:

- Clicking OK on rename dialog with "Rename associated file" checked but without changing the filename would delete the original file.
- Add "Show File" button for snapshots
2007-01-12 07:18:53 +00:00
Dan Stillman
9c666cef3a Typo in searchInProgress string 2007-01-12 02:56:52 +00:00
Simon Kornblith
6f6cec3300 closes #495, RIS export failing (feel free to push this out to the repository)
removes unnecessary debug code from browser.js
2007-01-12 00:19:22 +00:00
Dan Stillman
417397c59f Fix for error when dragging an attachment that's the last item in a folder into another item 2007-01-11 20:41:35 +00:00
Dan Stillman
3bc1a28ce4 Fixes #489, Missing separator between child notes in reports 2007-01-10 23:55:50 +00:00
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
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