Commit Graph

1056 Commits

Author SHA1 Message Date
Tim Sherratt
dca7b25e9e Adding style for Australian Historical Studies 2008-06-04 07:15:54 +00:00
Dan Stillman
15b8be8105 Recorded r2786 as already merged to trunk 2008-06-03 19:45:17 +00:00
Dan Stillman
1e6ec36d39 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
dc72e4a978 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
1bae8d93bf Point trunk build to sync.zotero.org 2008-06-02 18:01:33 +00:00
Julian Onions
47ea7b7d07 Open university harvard format numeric style (for S320 at least) 2008-06-02 13:27:44 +00:00
Dan Stillman
889c0a3e06 - 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
89927fcbc4 * "last accessed" added for urls
* books title not italic in bibliography
2008-06-01 10:54:09 +00:00
c1220b9d7f * quotation marks for german
* date format ''
* <url>
2008-05-31 22:00:59 +00:00
Simon Kornblith
a4b7d398f0 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
929f4fd979 minor fixes 2008-05-30 22:40:43 +00:00
cf77682538 * no extra capitalization in german 2008-05-30 22:31:53 +00:00
25b3216480 first version, hoping it works 2008-05-30 22:23:18 +00:00
3cd2295e0d hoping on validity 2008-05-30 20:59:11 +00:00
2d3e0de6f7 first version, hoping it works 2008-05-30 20:46:13 +00:00
Bruce D'Arcus
b32eb26e2f added short title to supra condition 2008-05-26 02:14:34 +00:00
Bruce D'Arcus
67f27e018a added changes from nas 2008-05-24 15:25:34 +00:00
David Kaplan
f90b615fbf 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
10379dbdc1 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
efd76914eb 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
153e8ec81b 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
a87fc91dc7 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
9243a9fa7c Blocked revisions 2652,2681 on trunk via svnmerge 2008-05-16 09:00:15 +00:00
Elena Razlogova
4a340a5b01 Ass DOI to access macro in Chicago styles 2008-05-13 12:41:36 +00:00
Dan Stillman
9d4b038336 Made MLA w/italics the default MLA; moved old version to MLA (underline) 2008-05-13 01:24:54 +00:00
Dan Stillman
1d493a1141 Fix JADA URI 2008-05-12 16:33:03 +00:00
Julian Onions
59f480a492 Journal of the American Chemical Society.
from Patrick Holder
2008-05-09 19:20:41 +00:00
Julian Onions
258fcf4715 Bug fix for multiple citations (thanks to Patrick Holder). 2008-05-09 07:46:13 +00:00
Dan Stillman
f0b78ebf6e 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
70dafd9961 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
eecfbd56e6 Should take care of various errors in APA reported on forums 2008-05-06 03:37:15 +00:00
Dan Stillman
464bcefd17 Fix id URI and filename typo 2008-05-05 23:02:57 +00:00
2f723eeb85 Brefings in bioinformatics style 2008-05-05 22:48:22 +00:00
Dan Stillman
e5ba0e8ed3 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
0ff814c89a 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
d2cbff974d Blocked revisions 2216,2520 via svnmerge 2008-05-04 21:01:29 +00:00
Dan Stillman
32a792b90f 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
3dd57d4369 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
f0141945c9 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
62dc0445f0 Adds series number to Chicago styles 2008-05-01 16:44:05 +00:00
Bruce D'Arcus
0138555df8 tweaked et al more 2008-04-30 13:28:16 +00:00
Julian Onions
f7a35c9a55 Some small adjustments. 2008-04-30 07:29:24 +00:00
Elena Razlogova
671d47ad33 Fixes extra space in some Chicago styles 2008-04-29 23:01:08 +00:00
Bruce D'Arcus
54b6a2e6d5 changed et al rule on citations 2008-04-27 15:15:34 +00:00
Simon Kornblith
af6389e132 italicize volume and fix pages in APA style 2008-04-15 00:49:18 +00:00
Elena Razlogova
e40d3840e8 Fixes formatting for book sections with no editor in APA 2008-04-09 17:13:48 +00:00
Elena Razlogova
7e4273de1d Deletes extra title from Oxford Art style 2008-04-09 17:03:45 +00:00
Elena Razlogova
ffe2520fe7 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
13df551ac4 Adds back deleted macro in Chicago. 2008-04-07 13:47:57 +00:00
Elena Razlogova
236ea4d367 Forgot to edit macro name in Chicago no ibid style 2008-04-07 13:44:28 +00:00