Commit graph

1254 commits

Author SHA1 Message Date
Dan Stillman
00c2b14d6c Adds rudimentary Zeroconf support to Zotero (a.k.a. "Z(ot)eroconf")
- Inspired by Dan Chudnov's Python/MODS-based Zeroconf demo at THATcamp
- Enabled by extensions.zotero.zeroconf.enabled (off by default)
- Currently supports only OS X (tested on Leopard, not sure about earlier versions)
- Uses Apple's dns-sd and mDNS command-client clients, but should be able to be extended to other clients, though a native library would be far superior
- Discovery is on-demand for now via Actions menu ("Search for Shared Libraries")
- Includes rudimentary web server (code copied from integration.js) that serves items as sync XML -- no authentication yet!
- Only supports top-level items
- Remote libraries show up in left pane (under remote computer name, for now)
- Items can be dragged into collections (but not the library yet, for some reason)
- On first run, might cause a long pause and the "This file was downloaded from the Internet" message on Leopard -- can't manage to get around the quarantine for the script file that we need to access stdout from Firefox
- Needs a lot of work, and without a real JS (or otherwise Mozilla-native) Zeroconf library we can't do proper discovery without intermittent polling
- But it works, at least for me

Also includes some data/sync-layer changes that I needed along the way (and that we'll need for shared collections of any type)
2008-06-03 05:26:30 +00:00
Dan Stillman
4d03dd8d43 Moving default XML namespace declaration inside CSL objects -- this breaks CSL generation, as far as I can tell, but having the default namespace in the global scope makes dealing with E4X elsewhere very annoying
Creating a follow-up ticket to fix CSL generation
2008-06-02 21:30:01 +00:00
Dan Stillman
392c968315 Point trunk build to sync.zotero.org 2008-06-02 18:01:33 +00:00
Julian Onions
c62c4c13be Open university harvard format numeric style (for S320 at least) 2008-06-02 13:27:44 +00:00
Dan Stillman
77133f465c - Saved search syncing, with automatic latest-wins conflict resolution
- Last sync time displayed in sync button tooltip
- Various and sundry bug fixes

DB must be re-upgraded from 1.0
2008-06-02 09:15:43 +00:00
mmoole
cd93bf3927 * "last accessed" added for urls
* books title not italic in bibliography
2008-06-01 10:54:09 +00:00
mmoole
50c4d6bfc3 * quotation marks for german
* date format ''
* <url>
2008-05-31 22:00:59 +00:00
Simon Kornblith
6d9427981e closes #973, citation editor broken in FF3
(fixes a message asking the user if s/he wants to regenerate a citation when the editor has never been shown and a parameter is changed)
2008-05-31 02:51:08 +00:00
mmoole
9facfd5c24 minor fixes 2008-05-30 22:40:43 +00:00
mmoole
74bfc94734 * no extra capitalization in german 2008-05-30 22:31:53 +00:00
mmoole
e012d68f4a first version, hoping it works 2008-05-30 22:23:18 +00:00
mmoole
7c698eba4d hoping on validity 2008-05-30 20:59:11 +00:00
mmoole
4db6230ce1 first version, hoping it works 2008-05-30 20:46:13 +00:00
Bruce D'Arcus
554040d75e added short title to supra condition 2008-05-26 02:14:34 +00:00
Bruce D'Arcus
cc0eb28d82 added changes from nas 2008-05-24 15:25:34 +00:00
David Kaplan
b83dd8aa99 Making several minor changes to agu.csl to remove extra spaces that
were being added to references.  I think these should work with most
references, but I haven't checked with all possible reference types
(for example books).

Also added a sort key for the bibliography based on the publication
year, but it is really hard to know if this is correct as sorting of
bibliographies in OpenOffice with the plugin seems to have bugs.

Also, added a sort by authors then year to the citation format.  I
believe this is correctly done and testing with the openoffice plugin
suggests that it is having some effect, though it isn't working quite
right (sometimes doesn't sort authors correctly - it seems to have
problems with et al. citations).
2008-05-23 09:58:33 +00:00
David Kaplan
5049726019 Turning off all name-based disambiguation in citations as these do not appear
to be working correctly.  This may be incorrect in a strict sense, but in the
current implementation of the openoffice plugin, they are not doing what they
are supposed to.  However, turning these off does not appear to affect things
- i.e., name initials continue to appear in citations even after setting
these options to false.
2008-05-21 12:45:20 +00:00
David Kaplan
586bd47e10 More updates to agu style to conform to
http://www.agu.org/pubs/AuthorRefSheet.pdf .  Changes consist of:

1) Changed use of "&" in citations to "and".
2) Citation prefix and suffix are now [ and ].
2) Added italic to author names in citations and to volume in
bibliographic references.
2008-05-21 11:49:17 +00:00
David Kaplan
cc8bcbee12 Modifying agu.csl to conform to better conform to my understanding of
AGU style based on their style guide and experience with AGU
references.  Changes consist of:

1) Make it so that all references use initials for author's first
names.  I am not sure if this is officially in the style document, but
I have never seen an AGU publication that didn't use initials for
author names.  

2) Make it so that et al. is only used in bibliographic references
when you have more than 10 authors and that only the first author name
is used in this case, in accordance with
http://www.agu.org/pubs/AuthorRefSheet.pdf.

3) Set the disambiguate-add-givenname option to false for citations.
This MAY BE INCORRECT (not clear from above mentioned style guide - no
mention of what to do in ambiguous cases), but setting it to true
caused it to add the disambiguation in OpenOffice citations in wierd
places.  I think this might be a BUG in Zotero.  I am guessing that
upon citation Zotero was using disambiguate with respect to all
references in my database, not just those in the document, AND that
it considered names like John L. Doe and J. L. Doe different (or
something like that), causing it to add initials when it really wasn't
necessary.  Turning this off will produce the correct result in the
vaste majority of cases, but will fail in just those cases where
disambiguate is supposed to be used.
2008-05-21 08:36:05 +00:00
Dan Stillman
6408762b12 Merged revisions 2640-2647,2651,2653-2654,2656-2658,2660-2667,2670-2672,2674-2677,2680,2683-2684,2687-2704,2707 to trunk via svnmerge from 1.0 branch 2008-05-16 09:14:11 +00:00
Dan Stillman
dd9374b41d Blocked revisions 2652,2681 on trunk via svnmerge 2008-05-16 09:00:15 +00:00
Elena Razlogova
4b6109f588 Ass DOI to access macro in Chicago styles 2008-05-13 12:41:36 +00:00
Dan Stillman
b67a636c95 Made MLA w/italics the default MLA; moved old version to MLA (underline) 2008-05-13 01:24:54 +00:00
Dan Stillman
cee5e9aae6 Fix JADA URI 2008-05-12 16:33:03 +00:00
Julian Onions
8d25ca1c54 Journal of the American Chemical Society.
from Patrick Holder
2008-05-09 19:20:41 +00:00
Julian Onions
a59660b663 Bug fix for multiple citations (thanks to Patrick Holder). 2008-05-09 07:46:13 +00:00
Dan Stillman
3d889d31e1 Zotero.ID fixes -- don't give same id twice in a session (which could happen if the set of available ids was used up before a database commit)
This might fix some sync issues.
2008-05-07 21:48:33 +00:00
Elena Razlogova
18c463b28d Sets entry-spacing to 0. Left line-spacing undefined since it's more properly set up in word processor styles. This should be pushed to public styles right awayI think. 2008-05-07 12:07:33 +00:00
Elena Razlogova
51ab3b61cb Should take care of various errors in APA reported on forums 2008-05-06 03:37:15 +00:00
Dan Stillman
72ba9e1b39 Fix id URI and filename typo 2008-05-05 23:02:57 +00:00
malay
a2c269dad3 Brefings in bioinformatics style 2008-05-05 22:48:22 +00:00
Dan Stillman
416f023384 Merged revisions 2190-2192,2194,2196-2199,2202-2205,2209,2212,2214-2215,2227-2228,2230,2232-2243,2245,2247-2256,2263-2272,2276,2278-2279,2281,2284-2286,2292,2296-2297,2299-2302,2304-2305,2309-2310,2314,2317-2323,2325-2329,2331-2337,2339,2341-2342,2344,2347-2366,2370-2371,2373-2377,2379-2391,2393-2402,2405-2410,2413,2415-2416,2418,2420-2421,2423,2427-2429,2431-2433,2437,2440-2441,2443-2450,2453,2455-2459,2461-2467,2471,2475-2480,2482-2490,2493,2495-2499,2501-2506,2511,2513-2519,2521,2525-2536,2540,2543-2553,2555-2559,2561-2576,2578,2580-2603,2606-2609,2611-2616,2618-2620,2624-2630,2632-2633 to trunk via svnmerge from 1.0 branch 2008-05-05 07:19:34 +00:00
Dan Stillman
7f0d7364ef Recorded merge of already-integrated revisions 2316,2451,2474,2491 via svnmerge from 1.0 branch 2008-05-04 21:03:39 +00:00
Dan Stillman
d6c3aa695e Blocked revisions 2216,2520 via svnmerge 2008-05-04 21:01:29 +00:00
Dan Stillman
11a27a8029 Recorded merge of already-integrated revisions 2378,2403-2404,2439,2442,2492,2541-2542,2554 via svnmerge from https://www.zotero.org/svn/extension/branches/1.0 2008-05-04 20:42:48 +00:00
Dan Stillman
2cc94e07c9 Fixes #997, Zotero pane cropped (I suspect)
Missing file in my last commit, which I think is also why I wasn't seeing this problem before

Reopen if still happening in next build
2008-05-04 08:52:43 +00:00
Dan Stillman
3de1789f26 Initial Zotero 1.5 Megacommit
Apologies for the massive (and, due to data_access.js splitting, difficult-to-follow) commit. Please note that external code that accesses the data layer may need to be tweaked for compatibility. Here's a comprehensive-as-possible changelog:

- Added server sync functionality (incomplete)
- Overhaul of data layer
  - Split data_access.js into separate files (item.js, items.js, creator.js, etc.)
  - Made creators and collections first-class objects, similar to items
  - Constructors now take id as first parameter, e.g. new Zotero.Item(1234, 'book'), to allow explicit id setting and id changing
  - Made various data layer operations (including attachment fields) require a save() rather than making direct DB changes
  - Better handling of unsaved objects
    - Item.setCreator() now takes creator objects instead of creator ids, and Item.save() will auto-save unsaved creators
    - clone() now works on unsaved objects
  - Newly created object instances are now disabled after save() to force refetch of globally accessible instance using Zotero.(Items|Creators|etc.).get()
  - Added secondary lookup key to data objects
  - Deprecated getID() and getItemType() methods in favor of .id and .itemTypeID properties
  - toArray() deprecated in favor of serialize(), which has a somewhat modified format
  - Added support for multiple creators with identical data -- currently unimplemented in interface and most of data layer
  - Added Item.diff() for comparing item metadata
- Database changes
  - Added SQLite triggers to enforce foreign key constraints
  - Added Zotero.DB.transactionVacuum flag to run a VACUUM after a transaction
  - Added Zotero.DB.transactionDate, .transactionDateTime, and transactionTimestamp to retrieve consistent timestamps for entire transaction
  - Properly store 64-bit integers
  - Set PRAGMA locking_mode=EXCLUSIVE on database
  - Set SQLite page size to 4096 on new databases
  - Set SQLite page cache to 8MB
  - Do some database cleanup and integrity checking on migration from 1.0 branch
  - Removed IF NOT EXISTS from userdata.sql CREATE statements -- userdata.sql is now processed only on DB initialization
  - Removed itemNoteTitles table and moved titles into itemNotes
- Abstracted metadata edit box and note box into flexible XBL bindings with various modes, including read-only states
- Massive speed-up of item tree view
- Several fixes from 1.0 branch for Fx3 compatibility
- Added Notifier observer to log delete events for syncing
- Zotero.Utilities changes
  - New methods getSQLDataType() and md5()
  - Removed onError from Zotero.Utilities.HTTP.doGet()
  - Don't display more than 1024 characters in doPost() debug output
  - Don't display passwords in doPost() debug output
- Added Zotero.Notifier.untrigger() -- currently unused
- Added Zotero.reloadDataObjects() to reset all in-memory objects
- Added |chars| parameter to Zotero.randomString(len, chars)
- Added Zotero.Date.getUnixTimestamp() and Date.toUnixTimestamp(JSDate)
- Adjusted zotero-service.js to simplify file inclusion

Various things (such as tags) are temporarily broken.
2008-05-04 08:32:48 +00:00
Elena Razlogova
ca91b534f2 Adds series number to Chicago styles 2008-05-01 16:44:05 +00:00
Bruce D'Arcus
e1f6989995 tweaked et al more 2008-04-30 13:28:16 +00:00
Julian Onions
30164a40ec Some small adjustments. 2008-04-30 07:29:24 +00:00
Elena Razlogova
1358118ac3 Fixes extra space in some Chicago styles 2008-04-29 23:01:08 +00:00
Bruce D'Arcus
1c342acdbb changed et al rule on citations 2008-04-27 15:15:34 +00:00
Simon Kornblith
0035904e0e italicize volume and fix pages in APA style 2008-04-15 00:49:18 +00:00
Elena Razlogova
6b7165c4ff Fixes formatting for book sections with no editor in APA 2008-04-09 17:13:48 +00:00
Elena Razlogova
75049c3c5b Deletes extra title from Oxford Art style 2008-04-09 17:03:45 +00:00
Elena Razlogova
3b7733eee7 Adds Society of Biblical Literature note style; adds codec's formatting for edition to Chicago note styles 2008-04-09 16:58:06 +00:00
Elena Razlogova
9b44e37e27 Adds back deleted macro in Chicago. 2008-04-07 13:47:57 +00:00
Elena Razlogova
71839445d4 Forgot to edit macro name in Chicago no ibid style 2008-04-07 13:44:28 +00:00
Elena Razlogova
55369e7920 Closes #985: Generated Biblographies Should Not Include Two Breaks After Each Reference
Simplifies macros
2008-04-07 10:29:35 +00:00
Dan Stillman
bead92010e Regenerate Water Research style (ignore) 2008-04-02 17:19:21 +00:00