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

Update search and import translators #1316

Merged
merged 7 commits into from Jun 4, 2017

Conversation

Projects
None yet
3 participants
@zuphilip
Collaborator

zuphilip commented Jun 3, 2017

No description provided.

Show outdated Hide outdated DataCite.js
"date": "1734",
"itemID": "https://doi.org/10.12763/ona1045",
"abstractNote": "[object Object],[object Object],[object Object]",

This comment has been minimized.

@zuphilip

zuphilip Jun 3, 2017

Collaborator

The abstract looks strange because the CSL JSON from DataCite looks like this:

  "abstract": [
    {
      "type": "Other",
      "text": "Le code est accompagné de commentaires de F. A. Vogel, qui signe l'épitre dédicatoire"
    },
    {
      "type": "Other",
      "text": "Reliure 18è siècle"
    },
    {
      "type": "Other",
      "text": "Ex-libris manuscrit \"Ex libris Dufour\""
    }
  ],
@zuphilip

zuphilip Jun 3, 2017

Collaborator

The abstract looks strange because the CSL JSON from DataCite looks like this:

  "abstract": [
    {
      "type": "Other",
      "text": "Le code est accompagné de commentaires de F. A. Vogel, qui signe l'épitre dédicatoire"
    },
    {
      "type": "Other",
      "text": "Reliure 18è siècle"
    },
    {
      "type": "Other",
      "text": "Ex-libris manuscrit \"Ex libris Dufour\""
    }
  ],

This comment has been minimized.

@adam3smith

adam3smith Jun 3, 2017

Collaborator

@mfenner are we going to see this a lot? What exactly are the specs for this? We might want to check & concat.

@adam3smith

adam3smith Jun 3, 2017

Collaborator

@mfenner are we going to see this a lot? What exactly are the specs for this? We might want to check & concat.

This comment has been minimized.

@mfenner

mfenner Jun 3, 2017

Contributor

This is a bug. I opened an issue at datacite/bolognese#11, you should expect a string.

@mfenner

mfenner Jun 3, 2017

Contributor

This is a bug. I opened an issue at datacite/bolognese#11, you should expect a string.

This comment has been minimized.

@mfenner

mfenner Jun 3, 2017

Contributor

The bug has been fixed, you should now get

"abstract": "Le code est accompagné de commentaires de F. A. Vogel, qui signe l'épitre dédicatoire",
@mfenner

mfenner Jun 3, 2017

Contributor

The bug has been fixed, you should now get

"abstract": "Le code est accompagné de commentaires de F. A. Vogel, qui signe l'épitre dédicatoire",

This comment has been minimized.

@zuphilip

zuphilip Jun 4, 2017

Collaborator

Yes, I can confirm that the output is now a string. Thank you very much for this very fast bug fixing!

@zuphilip

zuphilip Jun 4, 2017

Collaborator

Yes, I can confirm that the output is now a string. Thank you very much for this very fast bug fixing!

@adam3smith

One question, one request. Thanks!

@@ -105,9 +105,11 @@ var testCases = [
"seeAlso": [],
"attachments": [],
"title": "Code criminel de l'empereur Charles V vulgairement appellé la Caroline contenant les loix qui sont suivies dans les jurisdictions criminelles de l'Empire et à l'usage des conseils de guerre des troupes suisses.",
"url": "http://dx.doi.org/10.12763/ONA1045",
"DOI": "10.12763/ONA1045",

This comment has been minimized.

@adam3smith

adam3smith Jun 3, 2017

Collaborator

we should add DOIs to extra for everything but journals&conference papers the way we do for CrossRef

@adam3smith

adam3smith Jun 3, 2017

Collaborator

we should add DOIs to extra for everything but journals&conference papers the way we do for CrossRef

This comment has been minimized.

@zuphilip

zuphilip Jun 3, 2017

Collaborator

The deletion of the DOI for a report is here triggered by ZU.itemFromCSLJSON (I guess this line).

However, we can also add the DOI in extra again in the DataCite translator. I will do this later...

@zuphilip

zuphilip Jun 3, 2017

Collaborator

The deletion of the DOI for a report is here triggered by ZU.itemFromCSLJSON (I guess this line).

However, we can also add the DOI in extra again in the DataCite translator. I will do this later...

Show outdated Hide outdated Library of Congress ISBN.js
@@ -8,7 +8,7 @@
"priority": 98,
"inRepository": true,
"translatorType": 8,
"browserSupport": "gcsb",
"browserSupport": "gcsibv",

This comment has been minimized.

@adam3smith

adam3smith Jun 3, 2017

Collaborator

Why don't we need to bump the timestamp here? E.g. when using the bookmarklet to save to Standalone this would matter, no?

@adam3smith

adam3smith Jun 3, 2017

Collaborator

Why don't we need to bump the timestamp here? E.g. when using the bookmarklet to save to Standalone this would matter, no?

This comment has been minimized.

@zuphilip

zuphilip Jun 3, 2017

Collaborator

True. I will bump the timestamps for the translators with extended browserSupport.

@zuphilip

zuphilip Jun 3, 2017

Collaborator

True. I will bump the timestamps for the translators with extended browserSupport.

@zuphilip

This comment has been minimized.

Show comment
Hide comment
@zuphilip

zuphilip Jun 3, 2017

Collaborator

Please have a look at the new version.

Collaborator

zuphilip commented Jun 3, 2017

Please have a look at the new version.

@adam3smith adam3smith merged commit f5be7ba into zotero:master Jun 4, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@adam3smith

This comment has been minimized.

Show comment
Hide comment
@adam3smith

adam3smith Jun 4, 2017

Collaborator

Great, thanks!

Collaborator

adam3smith commented Jun 4, 2017

Great, thanks!

@zuphilip zuphilip deleted the zuphilip:update-search-translators branch Jun 4, 2017

zuphilip added a commit to zuphilip/translators that referenced this pull request Mar 28, 2018

Update search and import translators (#1316)
* Update tests in Airiti.js
* Update test in DataCite.js, activate all browserSupport
* Update tests, browserSupport in other search translators
* Import translators: add test cases, more browser support
* Bump timestamps
* [DataCite.js] Add doi in extra field if no DOI field

zuphilip added a commit to zuphilip/translators that referenced this pull request Mar 28, 2018

Update search and import translators (#1316)
* Update tests in Airiti.js
* Update test in DataCite.js, activate all browserSupport
* Update tests, browserSupport in other search translators
* Import translators: add test cases, more browser support
* Bump timestamps
* [DataCite.js] Add doi in extra field if no DOI field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment