Skip to content
Permalink
Browse files

Clean export translators (#1463)

* Delete browserSupport for export translators only

The option browserSupport has not use for export translators only,
i.e. translators with translatorType 2. This option is already
missing for
* BibLaTeX.js
* TEI.js
* Zotero RDF.js

* Fix spacing in some translators headers

Found with
   grep 'translatorType":2' *.js
   grep 'translatorType":4' *.js

* Adjust target to our standards in two translators
  • Loading branch information...
zuphilip authored and adam3smith committed Nov 7, 2017
1 parent 4aa8049 commit 67eadc5d564a495b78730a1cfcf9cfaec785b0df
@@ -1,14 +1,14 @@
{
"translatorID":"0a84a653-79ea-4c6a-8a68-da933e3b504a",
"translatorType":4,
"label":"Alexander Street Press",
"creator":"John West and Michael Berkowitz",
"target":"http://(www\\.)alexanderstreet",
"minVersion":"1.0.0b4.r5",
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2009-01-08 08:19:07"
"translatorID": "0a84a653-79ea-4c6a-8a68-da933e3b504a",
"translatorType": 4,
"label": "Alexander Street Press",
"creator": "John West and Michael Berkowitz",
"target": "^https?://(www\\.)alexanderstreet",
"minVersion": "1.0.0b4.r5",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"lastUpdated": "2009-01-08 08:19:07"
}

function detectWeb(doc, url) {
@@ -1,14 +1,14 @@
{
"translatorID":"1eb5eb03-26ab-4015-bd0d-65487734744a",
"translatorType":4,
"label":"Bibliotheque et Archives Nationale du Quebec (Pistard)",
"creator":"Adam Crymble",
"target":"http://pistard.banq.qc.ca",
"minVersion":"1.0.0b4.r5",
"maxVersion":"",
"priority":100,
"inRepository":true,
"lastUpdated":"2008-08-06 17:00:00"
"translatorID": "1eb5eb03-26ab-4015-bd0d-65487734744a",
"translatorType": 4,
"label": "Bibliotheque et Archives Nationale du Quebec (Pistard)",
"creator": "Adam Crymble",
"target": "^https?://pistard\\.banq\\.qc\\.ca",
"minVersion": "1.0.0b4.r5",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"lastUpdated": "2008-08-06 17:00:00"
}

function detectWeb (doc, url) {
@@ -1,15 +1,15 @@
{
"translatorID":"59cce211-9d77-4cdd-876d-6229ea20367f",
"translatorType":4,
"label":"Bibliothèque et Archives Nationales du Québec",
"creator":"Adam Crymble",
"target":"^https?://catalogue\\.banq\\.qc\\.ca/",
"minVersion":"3.0",
"maxVersion":"",
"priority":100,
"translatorID": "59cce211-9d77-4cdd-876d-6229ea20367f",
"translatorType": 4,
"label": "Bibliothèque et Archives Nationales du Québec",
"creator": "Adam Crymble",
"target": "^https?://catalogue\\.banq\\.qc\\.ca/",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"browserSupport": "gcsibv",
"inRepository":true,
"lastUpdated":"2015-06-29 17:02:02"
"inRepository": true,
"lastUpdated": "2015-06-29 17:02:02"
}

function detectWeb(doc, url) {
1 CSV.js
@@ -12,7 +12,6 @@
},
"inRepository": true,
"translatorType": 2,
"browserSupport": "g",
"lastUpdated": "2016-06-21 08:45:20"
}

@@ -11,7 +11,6 @@
},
"inRepository": false,
"translatorType": 2,
"browserSupport": "g",
"lastUpdated":"2015-07-20 06:39:12"
}

@@ -1,16 +1,17 @@
{
"translatorID":"6e372642-ed9d-4934-b5d1-c11ac758ebb7",
"translatorType":2,
"label":"Unqualified Dublin Core RDF",
"creator":"Simon Kornblith",
"target":"rdf",
"minVersion":"1.0.0b3.r1",
"maxVersion":"",
"priority":100,
"browserSupport":"gcsn",
"configOptions":{"dataMode":"rdf/xml"},
"inRepository":true,
"lastUpdated":"2011-07-08 04:51:41"
"translatorID": "6e372642-ed9d-4934-b5d1-c11ac758ebb7",
"translatorType": 2,
"label": "Unqualified Dublin Core RDF",
"creator": "Simon Kornblith",
"target": "rdf",
"minVersion": "1.0.0b3.r1",
"maxVersion": "",
"priority": 100,
"configOptions": {
"dataMode": "rdf/xml"
},
"inRepository": true,
"lastUpdated": "2011-07-08 04:51:41"
}

function doExport() {
@@ -1,16 +1,17 @@
{
"translatorID":"3f50aaac-7acc-4350-acd0-59cb77faf620",
"translatorType":2,
"label":"Wikipedia Citation Templates",
"creator":"Simon Kornblith",
"target":"txt",
"minVersion":"1.0.0b4.r1",
"maxVersion":"",
"priority":100,
"displayOptions":{"exportCharset":"UTF-8"},
"browserSupport":"gcs",
"inRepository":true,
"lastUpdated":"2017-03-13 11:45:52"
"translatorID": "3f50aaac-7acc-4350-acd0-59cb77faf620",
"translatorType": 2,
"label": "Wikipedia Citation Templates",
"creator": "Simon Kornblith",
"target": "txt",
"minVersion": "1.0.0b4.r1",
"maxVersion": "",
"priority": 100,
"displayOptions": {
"exportCharset": "UTF-8"
},
"inRepository": true,
"lastUpdated": "2017-03-13 11:45:52"
}

var fieldMap = {
@@ -1,16 +1,22 @@
{
"translatorID":"14763d24-8ba0-45df-8f52-b8d1108e7ac9",
"translatorType":2,
"label":"Zotero RDF",
"creator":"Simon Kornblith",
"target":"rdf",
"minVersion":"1.0.0b4.r1",
"maxVersion":"",
"priority":25,
"configOptions":{"getCollections":"true", "dataMode":"rdf/xml"},
"displayOptions":{"exportNotes":true, "exportFileData":false},
"inRepository":true,
"lastUpdated":"2016-06-21 08:45:20"
"translatorID": "14763d24-8ba0-45df-8f52-b8d1108e7ac9",
"translatorType": 2,
"label": "Zotero RDF",
"creator": "Simon Kornblith",
"target": "rdf",
"minVersion": "1.0.0b4.r1",
"maxVersion": "",
"priority": 25,
"configOptions": {
"getCollections": "true",
"dataMode": "rdf/xml"
},
"displayOptions": {
"exportNotes": true,
"exportFileData": false
},
"inRepository": true,
"lastUpdated": "2016-06-21 08:45:20"
}

var item;

0 comments on commit 67eadc5

Please sign in to comment.
You can’t perform that action at this time.