Commit Graph

910 Commits

Author SHA1 Message Date
Dan Stillman
23160c5c6e Changed all entities in zotero.dtd to have a "zotero." prefix -- the odds of collisions with other extensions are quite low, but we should be a responsible neighbor regardless
(Note that these aren't all used in the global overlay and wouldn't need the zotero prefix if they were in separate DTD files (for export, etc.), but I'm not going to take the time to do that.)

Element ids up next...
2006-10-19 21:53:02 +00:00
Dan Stillman
00d8fbd117 Add optional second parameters params to Zotero.getString() to use the stringbundle's formatStringFromName method -- got rid of the silly replace() calls elsewhere in the code
Also localized the "tags" string in the tags tab -- addresses #155, Localize strings
2006-10-19 21:05:21 +00:00
Dan Stillman
79efa85482 - Default to double-field mode in setCreator() if not specified
- Allow creator type to be specified as name rather than id in setCreator()

 - Use object rather than array in getCreator()
2006-10-19 20:35:28 +00:00
Dan Stillman
41722def8a Closes #302, Tooltip for cog (gear) icon
Tooltip => "Actions"

Also, Zotero keystroke is now command-option-Z (ctrl-alt-Z on Windows/Linux), because command-shift-Z is actually already taken by Redo on Mac/Unix and doesn't work in Minefield -- and ctrl-alt-Z is probably easier for Windows users anyway
2006-10-19 20:30:44 +00:00
Dan Stillman
b7a261d3da Allow item types to be passed by name in Item constructor -- don't know why I never did this before, since they're cached
Feel free to remove redundant calls to ItemTypes.getID()

(I actually see a whole bunch of calls to the constructor using type names in scrapers, but presumably those are converted to itemTypeIDs in translate.js, since they seem to have been working just fine...)
2006-10-12 06:44:07 +00:00
Dan Stillman
7271ec6e43 Always pass array of ids to notify() from Notifier.trigger() 2006-10-12 00:30:24 +00:00
Dan Stillman
c0eb1746db Turn on auto-vacuuming, which keeps file size down after deletes and prevents DB fragmentation
This can't be enabled on databases with existing tables, so for existing users we can either a) add a FAQ with instructions to recreate and let the advanced users do it and let everyone else have larger tables or b) add a migration step to dump to a new file and then replace the old with the new, which may be a risky and not all that easy proposition (given the lack of .dump) but might work...

The steps, by the way, with Firefox closed:

$ sqlite3 zotero.sqlite
sqlite> .out dump.sql
sqlite> .quit
$ sqlite3 db.sqlite
sqlite> PRAGMA auto_vacuum = 1;
sqlite> .read dump.sql
sqlite> .quit
$ mv db.sqlite zotero.sqlite
2006-10-11 09:44:20 +00:00
Dan Stillman
081b544688 Change collection notifier event to 'delete' instead of 'remove' to be consistent with item deletions (as opposed to merely removing items from collections, which uses 'remove') 2006-10-11 04:20:05 +00:00
Simon Kornblith
6b65bf06a4 closes #349, import/export failing on null sandbox URI
i have no idea why some people are getting this error when it seems like no one encountered it during beta testing (very specific platform issues?), but i'm fairly certain that this should fix it.
2006-10-11 03:52:31 +00:00
Dan Stillman
c83a4e3762 And use the correct new component name ourselves... 2006-10-10 23:14:30 +00:00
Dan Stillman
39df990d98 Renaming 1.0b2 branch to 1.0 -- all development intended for 1.0 should be on this branch, while stuff for >1.0 (remote operation, etc.) should go on trunk
Automated -dev builds will build from this branch until further notice
2006-10-10 19:07:40 +00:00
Dan Stillman
9dc5280576 More appropriate names for the component files 2006-10-10 17:02:18 +00:00
Dan Stillman
b6cb874610 Renamed the contract ID for the Zotero from "@chnm.gmu.edu/Zotero;1" to "@zotero.org/Zotero;1" -- this is a little dumb, since it means that utilities will have to be changed for Beta 3, but since this line will end up being copied all over the place in perpetuity, it's probably better for it to be zotero.org. (And actually, it may not come up much--anyone working within the main overlay will already have the Zotero object and in other windows people can just include chrome://zotero/content/include.js in their XUL file and not worry about it...)
Removed ECL from chnmIZoteroService.js, since most of it is boilerplate from Mozilla anyway
2006-10-10 16:53:47 +00:00
Dan Stillman
8eb5b6cf03 Change Quick Start Guide to pretty URL in new installs 2006-10-06 17:47:52 +00:00
Dan Stillman
fab65f743c Eek--bump the scraper version after clearing the tables for upgraders 2006-10-06 15:26:04 +00:00
Dan Stillman
c2859dc277 Don't create a broken update.rdf 2006-10-06 03:59:10 +00:00
Dan Stillman
214cbe499b Ack! Drop translators and CSL for people upgrading! 2006-10-06 03:49:46 +00:00
Dan Stillman
ac2caac913 Delete key/back fix for real. I think 2006-10-06 02:40:46 +00:00
Dan Stillman
6caf21e023 Fix for delete=>back issue, I think 2006-10-06 02:35:45 +00:00
Dan Stillman
ef7de7c533 Fix for delete not refreshing in saved search 2006-10-06 01:59:11 +00:00
Dan Stillman
205c3b0467 Updated about panel 2006-10-06 01:17:18 +00:00
Dan Stillman
b41b81a909 Remove Word templates and Item Type Manager from branch 2006-10-06 01:15:53 +00:00
Dan Stillman
bdb528f39f Quick fix for tag overflow problem -- now problem with hitting enter on the bottom tag right above the fold prevents you from seeing the next field until you start typing, but it's there 2006-10-06 01:02:55 +00:00
Dan Stillman
13117795ef Clarify some of the "type"s and "medium"s in the search window
Still need a 30" Cinema Display to view the drop-down--clearly we'll need to do something about that
2006-10-06 00:49:23 +00:00
Dan Stillman
b33b01bf51 Fix for broken search -- oy
Thanks again to Roy
2006-10-06 00:39:10 +00:00
Dan Stillman
615c430cd6 install.rdf/update.rdf preparations 2006-10-06 00:31:32 +00:00
Dan Stillman
3c38eabca4 Some more icons for item types 2006-10-06 00:27:27 +00:00
Dan Stillman
ba5b978afb Quick fix for note saving problem from Roy 2006-10-06 00:12:47 +00:00
Dan Stillman
7712a24434 Moved translators and CSL CREATE TABLE statements to userdata.sql, since those are the two tables that we actually _want_ users to modify (without them being wiped on every update) 2006-10-05 23:50:29 +00:00
Dan Stillman
64d7c64ee2 When changing item type, reset any creator types that don't exist in the target item type to 'contributor', which exists in all 2006-10-05 23:36:05 +00:00
Dan Stillman
d59a9d6b3f Closes #332, Change install.rdf to exclude Firefox 3.0 2006-10-05 23:05:36 +00:00
Dan Stillman
315d0d4644 Branching to 1.0b2 2006-10-05 22:57:59 +00:00
Dan Stillman
4fb199457d Updated link to Quick Start Guide in fresh installs with new URL and intro note 2006-10-05 22:55:50 +00:00
Dan Stillman
c59dcdc0a6 New item types, fields, creator types, and the glue to make them work
If anyone's out there, now would be the time to test this.

Missing icons for the new types -- I could try to get some of those now, or we could just launch. Maybe we'll just launch. But really, might want to test this. Just sayin'.
2006-10-05 22:27:29 +00:00
Dan Stillman
589f1a6f20 2006-10-05 18:28:50 +00:00
Dan Stillman
73149b86c7 Add ECL license block to scrapers.sql 2006-10-05 17:29:03 +00:00
Dan Stillman
10efae5822 Don't set (currently unused) downloadAssociatedFiles pref 2006-10-05 17:22:47 +00:00
Dan Stillman
9a96c54118 Addresses #327, Scrapers should either take snapshots or use URL field
Use automaticSnapshots pref (which defaults to on and is changeable in the prefs window) rather than downloadAssociatedFiles (which defaults to off and is only settable through about:config at the moment) for now in translate.js

downloadAssociatedFiles should eventually be used for PDFs and other large files, whereas automaticSnapshots will be for HTML and the like -- in the meantime, I think it's OK for scrapers to just follow the visible pref for both, since otherwise they'd be totally confused when the NIFP button took a snapshot and the scrapers didn't

Simon, if there's any problem I'm not aware of with switching this for now (other than people getting some large PDFs on JStor), let me know.
2006-10-05 09:44:41 +00:00
Dan Stillman
76b7adaa05 Closes #328, View button in metadata pane should show snapshot first before using URL 2006-10-05 08:54:15 +00:00
Simon Kornblith
cbe7c086e1 closes #336, Some metadata fields are not exported with notes and attachments
closes #165, verify import/export can carry all data for all fields and item types
closes #168, make sure MODS import works with files from external sources
2006-10-05 08:45:44 +00:00
Dan Stillman
7a717614e5 Fixes #344, "Extra" field text aligned slightly differently from text in other fields 2006-10-05 06:33:39 +00:00
Dan Stillman
c6ae132bd3 Return itemID from linkFromURL() when it doesn't have to do a HEAD request; true otherwise 2006-10-05 06:23:44 +00:00
Dan Stillman
3919594834 New options in context menu of regular items in the item list:
Attach Snapshot of Current Page
Attach Link to Current Page

I also removed "New Item" from the context menu, as it was the only option in the menu that wasn't specific to the selected item, it made the whole menu a lot more confusing, and it doesn't take all that much longer to click the (+) button and choose Book (assuming that's even the item you want).
2006-10-05 05:56:56 +00:00
Dan Stillman
83da98f208 Added zotero.org link to About panel
Added "About Zotero..." to cog menu
2006-10-05 04:02:21 +00:00
Dan Stillman
eff310c5c9 Closes #294, Checkbox in search dialog to search subfolders recursively
Addresses #155, Localize strings

- Added "Search subfolders"

- Localized strings in search dialog

Known issue:

#342, "Search subfolders" checkbox should be greyed out until applicable
2006-10-05 02:33:39 +00:00
Dan Stillman
e2e5d59f61 Renamed Notifier.[un]register(Item|Column)Tree() to [un]register(Item|Collection)Observer(), which is more accurate 2006-10-05 01:25:36 +00:00
Dan Stillman
cd26267afe Closes #340, Change isInstitution to fieldMode everywhere
Including in the DB, which it turns out isn't really all that bad (thanks, among other things, to SQLite's ability to DROP tables within transactions without autocommitting (which MySQL can't do))
2006-10-05 00:59:26 +00:00
Dan Stillman
74dbdec49b Renamed user.js to userdata.js 2006-10-04 23:37:15 +00:00
Dan Stillman
088027d640 Added automaticSnapshots pref, and changed Create New Item From Current Page button to obey pref
At least some scrapers (NYT and WashPo, for sure) should be updated to follow this pref

Addresses #327, Scrapers should either take snapshots or use URL field
2006-10-04 22:59:07 +00:00
Dan Stillman
026b37169a Closes #63, Add ECL license info to source code
Added on all non-trivial files -- be sure to copy over XML or JS version as appropriate for new files
2006-10-04 17:16:56 +00:00