Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISBN search returns extra note object causing CSL export to fail #67

Closed
dhimmel opened this issue Dec 19, 2018 · 3 comments
Closed

ISBN search returns extra note object causing CSL export to fail #67

dhimmel opened this issue Dec 19, 2018 · 3 comments

Comments

@dhimmel
Copy link
Contributor

dhimmel commented Dec 19, 2018

The following search query is for an ISBN:

curl \
  --header "Content-Type: text/plain" \
  --data 'isbn:9780262517638' \
  'https://translate.manubot.org/search'

The output is:

[
    {
        "key": "ZGT6YNIL",
        "version": 0,
        "itemType": "book",
        "creators": [
            {
                "firstName": "Peter",
                "lastName": "Suber",
                "creatorType": "author"
            }
        ],
        "tags": [
            {
                "tag": "Open access publishing",
                "type": 1
            }
        ],
        "ISBN": "9780262517638",
        "title": "Open access",
        "place": "Cambridge, Mass",
        "publisher": "MIT Press",
        "date": "2012",
        "numPages": "242",
        "series": "MIT Press essential knowledge series",
        "callNumber": "Z286.O63 S83 2012",
        "extra": "OCLC: ocn754518563",
        "libraryCatalog": "Library of Congress ISBN"
    },
    {
        "itemType": "note",
        "note": "What is open access? -- Motivation -- Varieties -- Policies -- Scope -- Copyright -- Economics -- Casualties -- Future -- Self-help"
    }
]

Notice that the output array contains two objects. The second one is bizarre:

    {
        "itemType": "note",
        "note": "What is open access? -- Motivation -- Varieties -- Policies -- Scope -- Copyright -- Economics -- Casualties -- Future -- Self-help"
    }

If we pass the full JSON output to /format with the following command:

curl \
 --header "Content-Type: application/json" \
 --data @zotero-data.json \
 'https://translate.manubot.org/export?format=csljson'

We get notified that "An error occurred during translation." The translation-server stdout log contains:

(4)(+0000000): Translate: Parsing code for CSL JSON (bc03b4fe-436d-4a1f-ba59-de4d2d7a63f7, 2017-07-05 19:32:38)

(3)(+0000001): Translate: Beginning translation with CSL JSON

(3)(+0000000): TypeError: Cannot read property 'noteToTitle' of undefined

    TypeError: Cannot read property 'noteToTitle' of undefined
        at Zotero.Utilities.Translate.itemToCSLJSON (/home/translate/translation-server/modules/zotero/chrome/content/zotero/xpcom/utilities.js:1706:33)
        at Function.itemToCSLJSON (/home/translate/translation-server/src/translation/sandboxManager.js:94:17)
        at doExport (eval at <anonymous> (/home/translate/translation-server/src/translation/sandboxManager.js:68:4), <anonymous>:111:43)
        at Zotero.Translate.Export.rest (/home/translate/translation-server/modules/zotero/chrome/content/zotero/xpcom/translation/translate.js:1406:49)
        at loadPromise.then (/home/translate/translation-server/modules/zotero/chrome/content/zotero/xpcom/translation/translate.js:1396:39)
        at <anonymous>
        at process._tickDomainCallback (internal/process/next_tick.js:228:7)

What's the best solution? Should the ISBN search omit the second note object? Should the CSL exporter ignore this note?

Are there other cases where the /search endpoint returns multiple results? Should we always take the first one on our end, before passing to /export?

dhimmel added a commit to dhimmel/manubot that referenced this issue Dec 19, 2018
dstillman added a commit that referenced this issue Dec 21, 2018
dstillman added a commit that referenced this issue Dec 21, 2018
(But don't export notes as CSL-JSON)

Reported in #67
@dstillman
Copy link
Member

Should we always take the first one on our end, before passing to /export?

If you don't need child notes, yes. The first one is the parent item.

I've also fixed child notes to include the parent item key, which was missing, and fixed translation-server's CSL-JSON note export, but there's really no reason to export notes as CSL-JSON.

@dhimmel
Copy link
Contributor Author

dhimmel commented Dec 29, 2018

If you don't need child notes, yes. The first one is the parent item.

Got it. Are there other things besides notes that can be added as additional objects in the top-level array? Let's assume we're specifying ?single=1 such that only singular translators will be used.

dhimmel added a commit to dhimmel/manubot that referenced this issue Dec 29, 2018
Keep only first item of a Zotero data list (JSON array).
Refs zotero/translation-server#67
@dstillman
Copy link
Member

Got it. Are there other things besides notes that can be added as additional objects in the top-level array?

No, currently only notes.

dhimmel added a commit to manubot/manubot that referenced this issue Dec 31, 2018
Merges #90

translation-server web query: specify single=1 to use only translators
that return a single result. Currently, this disables the DOI web translator.
Refs zotero/translation-server#65

Remove child notes in Zotero data. Keep only first item of a Zotero
data list (JSON array). See _passthrough_zotero_data.
Refs zotero/translation-server#67

Improve export_as_csl error handling. When an error status code is returned,
provide a more specific exception rather than JSON parsing failed.

translation-server test coverage improvements:
* test that web_query returns single result
* test ISBN which previously failed due to containing child notes 
* test_zotero: test all ID types for /search
* get_url_citeproc_zotero: test manubot & GitHub URLs
mvolz added a commit to mvolz/translation-server that referenced this issue Sep 24, 2020
Update zotero from upstream, hopefully
fixes memory exhaustion issues by
limiting response size and ignoring
unsupported content types (which can
be large, i.e. pdf, video)

Requires minor updates to citoid tests:
Ib2c1ae2da

Squashed commit of the following:

commit 3d11fc9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jan 14 15:32:29 2019 -0500

    More fixes for exporting minimal data without .creators or .tags

    Addresses zotero#75

commit 9339404
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Mon Jan 14 17:18:36 2019 +0200

    Fix a json legacy export bug (regression e02ee7a). Closes zotero#75

commit 106c721
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Jan 10 21:38:10 2019 -0500

    Add test for Bibliontology RDF export

    Follow up to zotero#73

commit e02ee7a
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Thu Jan 10 14:40:57 2019 +0200

    Fix pre 4.0.27 translator exports. Closes zotero#73

commit 158ebc6
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Wed Jan 9 22:11:35 2019 -0500

    Restore DOI from URL extraction (zotero#72)

commit 5848d9e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jan 7 03:19:36 2019 -0500

    Allow "pmid:" prefix in PMIDs

    Closes zotero#71

commit f8158ec
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jan 7 02:57:40 2019 -0500

    Update translators submodule

commit 33e971d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Jan 3 23:05:47 2019 -0500

    Update config file pattern in .gitignore

commit 8dc70dc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Jan 3 23:04:26 2019 -0500

    Fix CORS via API Gateway

commit ef64844
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Dec 29 19:43:55 2018 -0500

    Add Travis config

commit 5cf698e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 23 02:37:48 2018 -0500

    Return 400 for missing or unsupported upstream content type

    Follow-up to zotero#69

commit 9f2c366
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Sun Dec 23 01:02:07 2018 -0600

    Limit response size (zotero#69)

commit 757e21c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 21 06:06:35 2018 -0500

    Make translators directory customizable via environment variable

    Set TRANSLATORS_DIR to override the location in the config. (This is
    useful for provo, where translation-server is a submodule, so a
    local.json would be sort of awkward, and we want to share a translators
    directory at the provo root.)

commit e1457a9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 21 02:41:55 2018 -0500

    Fix error when exporting notes as CSL-JSON

    (But don't export notes as CSL-JSON)

    Reported in zotero#67

commit 3207162
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 21 02:24:17 2018 -0500

    Fix missing parentItem in child notes

    As shown in zotero#67

commit ff54ad6
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Mon Dec 17 09:37:05 2018 +0000

    Use JSDOM from NPM (zotero#64)

commit 9f70ccc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 16 22:20:15 2018 -0500

    Update translators

commit 2b2647d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 16 21:33:46 2018 -0500

    Fix COinS export and add Zotero RDF test

commit 0458529
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 16 21:01:41 2018 -0500

    Update translators submodule

commit 57908ef
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 14 22:59:06 2018 -0500

    Update package-lock.json (HTTP -> HTTPS)

commit cd8b177
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Fri Dec 14 22:38:26 2018 +0000

    Install precompiled JSDOM module to speed up installation from commit (zotero#62)

commit 3c80836
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Dec 13 16:14:47 2018 -0500

    Update package-lock.json

commit 88228e5
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Thu Dec 13 19:04:43 2018 +0000

    Remove the temporary JSDOM slowdown workaround and use the fixed JSDOM (zotero#61)

commit 8b8355a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Dec 13 02:18:45 2018 -0500

    Add local.json to .gitignore

commit 517e264
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Dec 13 02:16:15 2018 -0500

    Fix CSL JSON export when there's an Extra value

    Fixes zotero/zotero#1604

commit 6160d86
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed Dec 12 23:38:25 2018 -0500

    Fix text search test

    Fixes zotero#60

commit 802d3d8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Dec 4 02:59:17 2018 -0700

    Update translators submodule

commit e763651
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Dec 4 02:55:32 2018 -0700

    Forward client Accept-Language header during web translation

    Addresses zotero#16

commit 6464497
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Nov 17 02:39:08 2018 -0500

    Fix CSL JSON export

    Not sure if this didn't work after d1bc532 or something changed since,
    but this seems to work now.

    Fixes zotero#56

commit e03e4f1
Author: Daniel Himmelstein <daniel.himmelstein@gmail.com>
Date:   Fri Nov 16 17:35:50 2018 -0500

    README installation: touch-up commands (zotero#55)

    Use long arguments so new users know what they are doing.

    git clone: default behavior is to clone into `translation-server` directory.

commit 653a767
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Nov 16 17:16:02 2018 -0500

    Document proxy support

    Closes zotero#54

commit aed6c83
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Fri Nov 16 17:56:12 2018 +0800

    Use version from install.rdf (zotero#53)

commit f3436f2
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Fri Nov 16 17:21:12 2018 +0800

    Fix gzip problem and missing package.json (zotero#52)

commit 286f65c
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Nov 13 05:43:14 2018 +0800

    Translate doi.org URL instead of extracting DOI (zotero#50)

commit a185c5c
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Fri Oct 26 16:33:16 2018 +0300

    Fix meta redirect bugs when meta tag is malformed

commit 9c15114
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Fri Oct 19 13:50:41 2018 +0300

    Add translator tester

commit edfe9e5
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Sat Nov 3 01:53:24 2018 +0800

    A workaround for JSDOM slowdown for some websites (zotero#47)

commit 637ce02
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 29 06:01:07 2018 -0400

    Disable text search with ?text=0

commit 29b515a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Oct 27 02:53:53 2018 -0400

    Automatically prepend 'http://' for URL-ish strings for /web requests

commit 1d15419
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Oct 27 01:42:00 2018 -0400

    Return CORS headers on errors

    Koa normally strips headers on errors

commit f952cc4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Oct 25 00:59:55 2018 -0400

    Remove debug lines

commit 21332ad
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 23 02:50:11 2018 -0400

    Fix webpage fallback

commit 01aa1e4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 23 02:48:20 2018 -0400

    Update submodules

commit 1b5d429
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Oct 23 06:59:17 2018 +0800

    Re-translate multi item URL if cached session is not found (zotero#46)

commit bc7a18e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 22 03:59:24 2018 -0400

    Support ?single=1 to force single-page saving

    Closes zotero#45

commit f170ad3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Oct 21 03:19:44 2018 -0400

    Fix WebSession object name

commit cffd535
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 8 01:09:37 2018 -0400

    Update package-lock.json

commit 15a2961
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 8 01:09:00 2018 -0400

    Support allowedOrigins config option for CORS

commit ad454e0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 2 15:30:47 2018 -0400

    Add AWS SDK

    This is available by default on Lambda but without it Node installs
    break (even though they don't use it).

commit 19bd71a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 2 15:18:43 2018 -0400

    Add missing config variable

commit 73b99ff
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 2 15:17:33 2018 -0400

    Fix "TLDS is not defined" error

commit 632ea8d
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Oct 2 17:07:36 2018 +0800

    Invoke identifier-search Lambda function (zotero#42)

Bug: T121992
Bug: T211411
Change-Id: Ic420614133409cb43ec91c0a3024dc9ae0092893
mvolz added a commit to mvolz/translation-server that referenced this issue Sep 24, 2020
Contains revert of 971b815 which messed with jenkin's docker build.

Update to cf8fb42

Squashed commit of the following:

commit cf8fb42
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed Jul 10 05:09:58 2019 -0400

    Update version

commit 0c0bc8e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jul 8 22:34:48 2019 -0400

    Make the fix in 6f3afe0 even simpler (zotero#105, zotero#106)

    We already converted the object to a string, so we don't need to do it
    again.

commit 6f3afe0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jul 8 22:28:17 2019 -0400

    Fix multiple translation for translators that use preselection

    Some translators, such as PubMed, return objects with 'title' and
    'checked' (based on checkboxes on the page) instead of strings for
    multiple selection. We only want the titles for item comparison.

    Fixes zotero#105, closes zotero#106

commit ae47eb0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed Jun 26 02:52:50 2019 -0400

    Update submodules

commit a95cf74
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Jun 25 03:49:12 2019 -0400

    Update README

    Including instructions for running from a Docker Hub image

commit f1c0b6a
Author: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Date:   Mon Jun 10 15:37:52 2019 -0400

    Bump js-yaml from 3.13.0 to 3.13.1 (zotero#104)

commit 971b815
Author: Stéphane Gully <stephane.gully@gmail.com>
Date:   Mon Jun 10 21:32:41 2019 +0200

    Docker (zotero#24)

commit 8a39f2b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jun 10 15:30:42 2019 -0400

    Update translators

commit 4e2df9b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri May 24 00:19:02 2019 -0400

    Fix invalid "TZ" in BibTeX urldate when accessDate includes a timestamp

    BibTeX is still a legacy-mode translator that expects SQL dates instead
    of ISO 8601 dates.

commit 1295985
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Apr 4 22:57:59 2019 -0400

    Correct link to valid export formats in README

commit 7fa75d4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Apr 4 18:04:01 2019 -0400

    HTTP → HTTPS in package-lock.json entry

commit 2dfd9dc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Apr 4 12:53:06 2019 -0400

    Translate import formats via /web

    If the remote URL is text/plain or one of the known content types for
    the formats we support (e.g., application/x-bibtex), try to handle it
    via import translation. This allows, for example, a remote BibTeX file
    to be translated.

    This adapts some of the code from zotero#59 in a more general way, with a
    responseTypeMap property that can be passed to HTTP.request().

commit c5dd0ed
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Apr 4 12:50:16 2019 -0400

    Inherit ESLint config and fix some lint errors

commit 7c6a2df
Author: Antonin Delpeuch <antonin@delpeuch.eu>
Date:   Mon Apr 1 20:43:53 2019 +0100

    Make the listening host configurable (zotero#98)

commit 083f239
Author: Emiliano Heyns <retorquere@users.noreply.github.com>
Date:   Mon Apr 1 21:41:57 2019 +0200

    Import tests: normalize some fields, compare order (zotero#100)

commit 6045c70
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Mar 12 17:20:12 2019 -0400

    Set a timeout for text search after which results so far are returned

commit d268bc7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Mar 12 17:19:21 2019 -0400

    Fix sending of Link header for text search results

commit acff4e3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Mar 11 06:00:17 2019 -0400

    Use --data-binary in correct README example

commit a03f317
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Mar 11 05:59:10 2019 -0400

    Use --data-binary in /import example in README

commit eea4a6b
Author: Emiliano Heyns <retorquere@users.noreply.github.com>
Date:   Mon Mar 11 10:02:20 2019 +0100

    Verify translator used for import test (zotero#90)

commit d7e575b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Mar 10 19:20:17 2019 -0400

    Fix response format from /import

    The result should be API JSON, not translator JSON.

    If we want to use translator tests, we'll need to convert the test JSON
    to API JSON for the comparison.

    Follow-up to zotero#89

commit 72d2312
Author: Philipp Zumstein <zuphilip@users.noreply.github.com>
Date:   Sun Mar 10 23:41:02 2019 +0100

    Add description about import endpoint to README.md (zotero#91)

commit 807a821
Author: Emiliano Heyns <retorquere@users.noreply.github.com>
Date:   Sun Mar 10 22:38:12 2019 +0100

    Remove 'translatorID' parameter from /import (zotero#94)

    Fixes zotero#93

commit a10f068
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Mar 8 16:51:37 2019 -0500

    Temporarily disable import tests

    Existing tests need to be updated for these to pass.

commit 8ca1803
Author: Emiliano Heyns <retorquere@users.noreply.github.com>
Date:   Fri Mar 8 22:43:50 2019 +0100

    add import support (zotero#89)

commit 3f0386d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Mar 1 03:18:02 2019 -0500

    Update translators submodule

commit 1b49afe
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Mar 1 03:17:18 2019 -0500

    Update Zotero submodule

    Fixes zotero#88

commit b5dc510
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Feb 26 00:24:53 2019 +0100

    Update packages (zotero#86)

commit 7bce4a3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Feb 25 06:57:41 2019 -0500

    Add (currently failing) test for TEI export

commit 4522b3e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Feb 25 06:53:41 2019 -0500

    Set item key to 'uri' property for export

    Zotero.Utilities.Internal.itemToExportFormat() adds a URI to the export
    data passed to translators so that they can generate a consistent
    identifier if necessary. Most translators don't need this but at least
    some (e.g., TEI) do. Unfortunately we can't build a proper item URI
    because we don't have user/group info, so we just use the item key
    instead.

commit 2e47a42
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Thu Feb 7 18:45:26 2019 +0100

    Update wicked-good-xpath to fix incorrect attribute node order (zotero#84)

commit 9b018f3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed Feb 6 23:00:19 2019 -0500

    Replace lambda_deploy with lambda_package

commit e0e31ec
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed Feb 6 22:57:30 2019 -0500

    Update translators

commit fd4d94c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Feb 2 13:05:05 2019 -0500

    Test runner improvements

    - Grep on id in addition to label
    - Make -o (output file) optional
    - Return non-0 exit code if any tests failed

    Addresses zotero/translators#1310

commit 8b83a47
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Wed Jan 30 08:26:20 2019 +0100

    A temporary workaround for JSDOM content decoding issues (zotero#81)

commit 3d11fc9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jan 14 15:32:29 2019 -0500

    More fixes for exporting minimal data without .creators or .tags

    Addresses zotero#75

commit 9339404
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Mon Jan 14 17:18:36 2019 +0200

    Fix a json legacy export bug (regression e02ee7a). Closes zotero#75

commit 106c721
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Jan 10 21:38:10 2019 -0500

    Add test for Bibliontology RDF export

    Follow up to zotero#73

commit e02ee7a
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Thu Jan 10 14:40:57 2019 +0200

    Fix pre 4.0.27 translator exports. Closes zotero#73

commit 158ebc6
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Wed Jan 9 22:11:35 2019 -0500

    Restore DOI from URL extraction (zotero#72)

commit 5848d9e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jan 7 03:19:36 2019 -0500

    Allow "pmid:" prefix in PMIDs

    Closes zotero#71

commit f8158ec
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Jan 7 02:57:40 2019 -0500

    Update translators submodule

commit 33e971d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Jan 3 23:05:47 2019 -0500

    Update config file pattern in .gitignore

commit 8dc70dc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Jan 3 23:04:26 2019 -0500

    Fix CORS via API Gateway

commit ef64844
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Dec 29 19:43:55 2018 -0500

    Add Travis config

commit 5cf698e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 23 02:37:48 2018 -0500

    Return 400 for missing or unsupported upstream content type

    Follow-up to zotero#69

commit 9f2c366
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Sun Dec 23 01:02:07 2018 -0600

    Limit response size (zotero#69)

commit 757e21c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 21 06:06:35 2018 -0500

    Make translators directory customizable via environment variable

    Set TRANSLATORS_DIR to override the location in the config. (This is
    useful for provo, where translation-server is a submodule, so a
    local.json would be sort of awkward, and we want to share a translators
    directory at the provo root.)

commit e1457a9
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 21 02:41:55 2018 -0500

    Fix error when exporting notes as CSL-JSON

    (But don't export notes as CSL-JSON)

    Reported in zotero#67

commit 3207162
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 21 02:24:17 2018 -0500

    Fix missing parentItem in child notes

    As shown in zotero#67

commit ff54ad6
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Mon Dec 17 09:37:05 2018 +0000

    Use JSDOM from NPM (zotero#64)

commit 9f70ccc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 16 22:20:15 2018 -0500

    Update translators

commit 2b2647d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 16 21:33:46 2018 -0500

    Fix COinS export and add Zotero RDF test

commit 0458529
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Dec 16 21:01:41 2018 -0500

    Update translators submodule

commit 57908ef
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Dec 14 22:59:06 2018 -0500

    Update package-lock.json (HTTP -> HTTPS)

commit cd8b177
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Fri Dec 14 22:38:26 2018 +0000

    Install precompiled JSDOM module to speed up installation from commit (zotero#62)

commit 3c80836
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Dec 13 16:14:47 2018 -0500

    Update package-lock.json

commit 88228e5
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Thu Dec 13 19:04:43 2018 +0000

    Remove the temporary JSDOM slowdown workaround and use the fixed JSDOM (zotero#61)

commit 8b8355a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Dec 13 02:18:45 2018 -0500

    Add local.json to .gitignore

commit 517e264
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Dec 13 02:16:15 2018 -0500

    Fix CSL JSON export when there's an Extra value

    Fixes zotero/zotero#1604

commit 6160d86
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed Dec 12 23:38:25 2018 -0500

    Fix text search test

    Fixes zotero#60

commit 802d3d8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Dec 4 02:59:17 2018 -0700

    Update translators submodule

commit e763651
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Dec 4 02:55:32 2018 -0700

    Forward client Accept-Language header during web translation

    Addresses zotero#16

commit 6464497
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Nov 17 02:39:08 2018 -0500

    Fix CSL JSON export

    Not sure if this didn't work after d1bc532 or something changed since,
    but this seems to work now.

    Fixes zotero#56

commit e03e4f1
Author: Daniel Himmelstein <daniel.himmelstein@gmail.com>
Date:   Fri Nov 16 17:35:50 2018 -0500

    README installation: touch-up commands (zotero#55)

    Use long arguments so new users know what they are doing.

    git clone: default behavior is to clone into `translation-server` directory.

commit 653a767
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri Nov 16 17:16:02 2018 -0500

    Document proxy support

    Closes zotero#54

commit aed6c83
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Fri Nov 16 17:56:12 2018 +0800

    Use version from install.rdf (zotero#53)

commit f3436f2
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Fri Nov 16 17:21:12 2018 +0800

    Fix gzip problem and missing package.json (zotero#52)

commit 286f65c
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Nov 13 05:43:14 2018 +0800

    Translate doi.org URL instead of extracting DOI (zotero#50)

commit a185c5c
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Fri Oct 26 16:33:16 2018 +0300

    Fix meta redirect bugs when meta tag is malformed

commit 9c15114
Author: Adomas Venčkauskas <adomas.ven@gmail.com>
Date:   Fri Oct 19 13:50:41 2018 +0300

    Add translator tester

commit edfe9e5
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Sat Nov 3 01:53:24 2018 +0800

    A workaround for JSDOM slowdown for some websites (zotero#47)

commit 637ce02
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 29 06:01:07 2018 -0400

    Disable text search with ?text=0

commit 29b515a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Oct 27 02:53:53 2018 -0400

    Automatically prepend 'http://' for URL-ish strings for /web requests

commit 1d15419
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat Oct 27 01:42:00 2018 -0400

    Return CORS headers on errors

    Koa normally strips headers on errors

commit f952cc4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu Oct 25 00:59:55 2018 -0400

    Remove debug lines

commit 21332ad
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 23 02:50:11 2018 -0400

    Fix webpage fallback

commit 01aa1e4
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 23 02:48:20 2018 -0400

    Update submodules

commit 1b5d429
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Oct 23 06:59:17 2018 +0800

    Re-translate multi item URL if cached session is not found (zotero#46)

commit bc7a18e
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 22 03:59:24 2018 -0400

    Support ?single=1 to force single-page saving

    Closes zotero#45

commit f170ad3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun Oct 21 03:19:44 2018 -0400

    Fix WebSession object name

commit cffd535
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 8 01:09:37 2018 -0400

    Update package-lock.json

commit 15a2961
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon Oct 8 01:09:00 2018 -0400

    Support allowedOrigins config option for CORS

commit ad454e0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 2 15:30:47 2018 -0400

    Add AWS SDK

    This is available by default on Lambda but without it Node installs
    break (even though they don't use it).

commit 19bd71a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 2 15:18:43 2018 -0400

    Add missing config variable

commit 73b99ff
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue Oct 2 15:17:33 2018 -0400

    Fix "TLDS is not defined" error

commit 632ea8d
Author: Martynas Bagdonas <martbgd@gmail.com>
Date:   Tue Oct 2 17:07:36 2018 +0800

    Invoke identifier-search Lambda function (zotero#42)

Bug: T223115
Change-Id: I5ec66601c84b085f2a82e76a85223a45f52ed9b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants