Commit graph

2987 commits

Author SHA1 Message Date
Simon Kornblith
c6f3e0b844 - Update to citeproc-js 1.0.81
- Fix "myxml.localName() is null" when using dates on non-base locales

Thanks to Frank for dealing with my pestering regarding locale behavior.

From citeproc-js 1.0.78:

Enable the proper parsing and rendering of seasons in ranged dates, in
the internal dates parser.

From citeproc-js 1.0.79:

Correct fault in locale fallback behavior.  Had been ignoring optional
default argument set in the processor.

From citeproc-js 1.0.80:

More fixes to locale selection behavior.

Provide a toggle to override the locale of a style with the locale set
on the processor at runtime.

From citeproc-js 1.0.81:

Yet more fixes to locale selection logic. Now uses en-US as ultimate
fallback, for any missing terms or missing locales.
2010-11-22 19:33:22 +00:00
Avram Lyon
93ffca6833 Trans: Fix for the new blog URLs layout of CHE 2010-11-22 19:24:48 +00:00
Dan Stillman
b2bcff1dac Disable debug output 2010-11-22 19:19:22 +00:00
Dan Stillman
fbee8ece40 Include inline CSS when generating HTML bibliographies
Rules based on primitive.css from citeproc-js demo, with some modifications

second-field-align is not yet supported
2010-11-22 19:18:54 +00:00
Simon Kornblith
62d2af7d4c fix calling search translators from web translators with different sandboxes 2010-11-21 02:52:50 +00:00
Simon Kornblith
87363fbe2e - update citeproc-js to 1.0.76
- fix issues with RTF export of brackets

From 1.0.71:
Variables (including names) should be (and have been) suppressed when
rendered via the cs:substitute node of cs:names.  Prior to this patch,
however, citeproc-js was unconditionally suppressing name variables
after their first use within a given cite, and this behavior differed
from the Zotero CSL 0.8.1 processor.  This patch restores the original
behavior, allowing names rendered outside of cs:substitute to be used
repeatedly within a cite.  (The only exception to this behavior is a
name rendered with et-al-min=1 and et-al-use-first=1, which will be
clipped from subsequent output within the same cite.)

The processor was using the localized close-inner-quote character for
apostrophes.  This caused problems in styles that use alternative
quotation marks.  The processor now uses a hard-coded apostrophe
character for apostrophes.

A bug in the normalization of names, for disambiguation purposes, that
contain punctuation or extraneous spaces has been fixed.

From 1.0.72:
Allow simple range, comma, and ampersand joins in the input to
cs:number, to permit "1st-2nd",  "xi-xv", etc.  When multiple numbers
are given, the following operations are performed: (1) ranges are
expanded and the numbers are converted to a list; (2) the resulting
list is sorted; (3) duplicates are eliminated; (4) ranges are
truncated; (5) numeric formatting is performed; and (6) appropriate
punctuation is applied to the result. (As of this writing, the use of
multiple numbers with cs:number is not covered by the CSL 1.0
specification, so this is an anticipatory change.  It is consistent
with the CSL 1.0 schema, however, and does not have any effect on
single input numbers. Production use of multiple number, issue,
volume, and edition variables should await the formal approval of a
CSL 1.0 schema change to allow the use of these variables with
cs:label, for contextual pluralization of any associated label.)

Eliminate space following a trailing apostrophe on a dropping-
particle, when immediately followed by the family name part in
rendered output.

Recognize multiple parameters to a position attribute on cs:if and
cs:else-if, per the CSL 1.0 schema.  For the fix, we eliminate cutted-
and-pasteded code from node_if.js and node_elseif.js, and consolidate
all position node-level position logic in attributes.js.

From 1.0.73:
Limit the recognition of multiple numbers to cases in which they are
separated by at least one space, to prevent the accidental
reformatting of things like "Document no. 1-3752,42".

From 1.0.74:
Recognize new Khmer locale for CSL provided by Hem Sras.

When parsing number ranges in the input to cs:number, abort parsing
when spread of range is over an arbitrary limit of 1000.

Support names-use-last attribute on cs:key. (Anticipatory change to
support upcoming change to CSL schema and specification.)

Use unicode ellipsis character rather than (nonexistent) locale term
when splicing author listings trucated with et-al-use-last.

From 1.0.75:
Do not apply decorative formatting to name suffixes.

Fix breakage in ordinal suffix formatting for days in a date.

For an all-lowercase name suffix (such as an explicit "et al."),
exclude the suffix from the name for disambiguation purposes, and
include it in the strict short form of the name in the short form of a
citation.

Add and recognize delimiter-precedes-et-al attribute, in line with
draft CSL proposal.

Implement grammatical gender sensitivity for ordinal suffixes, in line
with draft CSL proposal.

From 1.0.76:
Fix bug in locale processing, arising from the previous release, that
could trigger a processor crash.
2010-11-20 22:37:38 +00:00
Simon Kornblith
3a9adcc25e closes #1747, Improvements to OpenURL ContextObject support
patch thanks to Avram
2010-11-20 22:16:21 +00:00
Dan Stillman
7fb994feb0 Pushed Amazon and Google Scholar (thanks to ajlyon for fixes) 2010-11-18 06:12:54 +00:00
Avram Lyon
4fe5d40f00 Trans: Fixes to Google Scholar and Amazon 2010-11-18 03:53:17 +00:00
Avram Lyon
0a3c6c25ea Trans: Add support for name suffixes to PubMed translator. Requires Zotero 2.1 for best usage,
since the suffixes will be misinterpreted by the old csl.js citation processor.
2010-11-16 21:13:36 +00:00
Avram Lyon
9d6c7740c5 Trans: Nearly brand-new ACM translator submitted by John McCaffery 2010-11-16 19:17:59 +00:00
Avram Lyon
f4f7ab93e9 Trans: Fix for ToC parsing in Highwire 2.0, reported http://forums.zotero.org/discussion/15140 2010-11-15 21:39:20 +00:00
Dan Stillman
d4550807d8 Fix incorrect WebDAV error calls 2010-11-15 19:48:29 +00:00
Dan Stillman
a1865f5e18 Clear previousData after item save 2010-11-15 06:49:40 +00:00
Dan Stillman
e95a919c12 Display more helpful error message for nsIFile.remove() error 2010-11-14 00:38:05 +00:00
Simon Kornblith
3b1bc27c4c unzip XPI in Fx 4 2010-11-13 20:19:34 +00:00
Avram Lyon
cdae806a05 Trans: Fix for PLoS breakage when URL has GET variables (http://forums.zotero.org/discussion/10515) 2010-11-11 17:59:36 +00:00
Dan Stillman
faac550d73 Pushed Highwire 2.0 2010-11-10 10:17:41 +00:00
Dan Stillman
50df80a391 Push WilsonWeb, PubMed, Euclid, Project MUSE (and fix whitespace of JSON block, which Scaffold 2.0 saves as spaces instead of tabs) 2010-11-10 10:15:33 +00:00
Dan Stillman
0852de8234 Pushed EBSCO 2010-11-10 10:09:06 +00:00
Simon Kornblith
57eb90196c closes #1734, Map CSL number-of-pages to Zotero numPages
Thanks Frank, and sorry for overlooking this
2010-11-10 01:56:47 +00:00
Dan Stillman
edb5051fcc Update versions 2010-11-09 22:16:42 +00:00
Dan Stillman
593d90c29d Re-enable object element (without wildcard attributes) in notes on trunk and 2.1b2 tag 2010-11-09 21:06:57 +00:00
Dan Stillman
4e677668aa Fix empty single autocomplete row (fixed originally in r5179, accidentally reverted in r5596) 2010-11-09 19:34:18 +00:00
Dan Stillman
2d19dd6885 Update repotime 2010-11-09 18:29:12 +00:00
Avram Lyon
0fe1244806 Trans: Euclid fix. Doesn't do search results yet, but better than nothing 2010-11-09 13:00:28 +00:00
Avram Lyon
8a4a8bafbe Trans: Fix for misinterpretation of EBSCO's M3 field as DOI 2010-11-08 11:53:54 +00:00
Dan Stillman
b76d788133 Fix an issue that could cause a sync error (and maybe other tag-related problems) in very old databases 2010-11-08 09:29:35 +00:00
Simon Kornblith
734472fbe4 fix search translation fallback issues 2010-11-08 08:00:13 +00:00
Simon Kornblith
c6663988dc fix OpenURL issue 2010-11-08 07:51:03 +00:00
Avram Lyon
012e127a7e Trans: In EBSCO, fix all items showing up as journal articles, also DOI parsing http://forums.zotero.org/discussion/15024 2010-11-07 20:16:11 +00:00
Simon Kornblith
dd5942c538 fix handling of files without extensions 2010-11-07 07:38:50 +00:00
Simon Kornblith
a7a911683c update to citeproc-js 1.0.70
From Frank's release notes for 1.0.69:

Suppress a leading prefix character that is nested at an arbitrary
depth on the subsequent sibling hierarchy of the current output blob
object, where it would result in duplicate punctuation in the
flattened output.

Fix over-aggressive suppression, on subsequent items, of variables
that are called through cs:substitute (and are therefore suppressed
within the current item).

Define print statement conditionally, following suggestions from
Carles Pina and Fergus Gallagher.

Limit suppression of a year that is identical to the volume number
only for cites in which volume and container-title are both rendered,
and volume precedes container-title.  Suppression allows legal cites
such as The King v. Lockwood, 99 Eng. Rep. 379 (K.B. 1782) and
Hastings v. Perkins, 1930 P. 217 (Eng. C.A.) to be handled with a
single item type and without resorting to presentation toggles in the
input data.  Limiting suppression to cites in which a rendered volume
precedes a rendered container-title prevents this behavior from
corrupting other citation forms.

From Frank's release notes for 1.0.70:

Adopt conventions from Chicago 16th ed. for commas that follow
terminal punctuation in user content fields such as title.
2010-11-07 05:08:15 +00:00
Simon Kornblith
41eff177db Fx 4 compatiblity 2010-11-07 04:40:03 +00:00
Simon Kornblith
a1f52aede4 slightly less ugly hack for opening cite preferences 2010-11-07 04:36:39 +00:00
Simon Kornblith
a1f327a97a tweaks to prefs window opening 2010-11-07 04:18:58 +00:00
Simon Kornblith
0e46cdec10 don't try to wrap null 2010-11-07 03:38:42 +00:00
Simon Kornblith
f0ff19fd05 fix error report submission 2010-11-07 03:38:29 +00:00
Simon Kornblith
b5dd5b5e9f update lastUpdated on modified translators so that they won't be overwritten by repo 2010-11-07 03:16:09 +00:00
Simon Kornblith
352158b48c - add ZU.deepCopy()
- fix attachment export/import
- make Translator return a copy of displayOptions or configOptions objects
- adjust file export functions for above change
2010-11-07 03:13:58 +00:00
Simon Kornblith
983673e354 - don't export duplicate items
- don't export top-level collection name
- use file name for name of collection when importing
2010-11-06 22:20:53 +00:00
Avram Lyon
d763b642b3 Trans: New dLibra translator by Pawel. 2010-11-06 21:36:16 +00:00
Simon Kornblith
4df28f93cb don't use getters, since they probably don't save much memory and they don't seem to work with Fx3.6 wrappers 2010-11-06 21:35:06 +00:00
Simon Kornblith
e531493ba0 fix collection import/export 2010-11-06 20:52:15 +00:00
Simon Kornblith
8027e6c4f2 fix accidental global variable 2010-11-06 19:51:31 +00:00
Simon Kornblith
32d97b9ef9 correct automatic handlers 2010-11-06 19:48:31 +00:00
Simon Kornblith
379888eec4 fix search translation and get rid of unnecessary instanceof calls 2010-11-06 19:42:28 +00:00
Simon Kornblith
219cc49988 - fix RDF file left open after completion
- fix failure to serialize RDF to string
- fix failure to report translation errors
- fix error when translating without specifying displayOptions
2010-11-06 17:10:08 +00:00
Simon Kornblith
8005ed59e4 fix parse error 2010-11-06 07:48:58 +00:00
Simon Kornblith
b8d89b9d60 fix incorrect creatorType 2010-11-06 05:16:48 +00:00