Simpler version

This commit is contained in:
Antonin Delpeuch 2017-02-07 23:59:12 +00:00
parent d967605816
commit 5d8d372244
8 changed files with 4 additions and 34 deletions

View File

@ -350,7 +350,6 @@
"as-property": "As Property", "as-property": "As Property",
"contact-service": "Contacting reconciliation service", "contact-service": "Contacting reconciliation service",
"error-contact": "Error contacting recon service", "error-contact": "Error contacting recon service",
"wd-recon": "Wikidata Reconciliation",
"wd-recon-lang": "en", "wd-recon-lang": "en",
"recon-col": "Reconcile column", "recon-col": "Reconcile column",
"pick-service": "Pick a Service or Extension on Left", "pick-service": "Pick a Service or Extension on Left",

View File

@ -350,7 +350,6 @@
"as-property": "As Property", "as-property": "As Property",
"contact-service": "Contacting reconciliation service", "contact-service": "Contacting reconciliation service",
"error-contact": "Error contacting recon service", "error-contact": "Error contacting recon service",
"wd-recon": "Wikidata Reconciliation",
"wd-recon-lang": "en", "wd-recon-lang": "en",
"recon-col": "Reconcile column", "recon-col": "Reconcile column",
"pick-service": "Pick a Service or Extension on Left", "pick-service": "Pick a Service or Extension on Left",

View File

@ -350,7 +350,6 @@
"as-property": "Como propiedad", "as-property": "Como propiedad",
"contact-service": "Contactando al servicio", "contact-service": "Contactando al servicio",
"error-contact": "Error contactando al servicio", "error-contact": "Error contactando al servicio",
"wd-recon": "Wikidata",
"wd-recon-lang": "es", "wd-recon-lang": "es",
"recon-col": "Cotejar columna", "recon-col": "Cotejar columna",
"pick-service": "Seleccione un servicio o extensión a la izquierda", "pick-service": "Seleccione un servicio o extensión a la izquierda",

View File

@ -350,7 +350,6 @@
"as-property": "Comme propriété", "as-property": "Comme propriété",
"contact-service": "Connexion au service de réconciliation", "contact-service": "Connexion au service de réconciliation",
"error-contact": "Erreur lors de la connexion au service de réconciliation", "error-contact": "Erreur lors de la connexion au service de réconciliation",
"wd-recon": "Réconciliation Wikidata",
"wd-recon-lang": "fr", "wd-recon-lang": "fr",
"recon-col": "Réconcilier la colonne", "recon-col": "Réconcilier la colonne",
"pick-service": "Choisir un service ou une extension à gauche", "pick-service": "Choisir un service ou une extension à gauche",

View File

@ -350,7 +350,6 @@
"as-property": "Come Proprietà", "as-property": "Come Proprietà",
"contact-service": "Contattando il servizio di riconciliazione", "contact-service": "Contattando il servizio di riconciliazione",
"error-contact": "Errore durante il contatto del servizio di riconciliazione", "error-contact": "Errore durante il contatto del servizio di riconciliazione",
"wd-recon": "Riconciliazione Wikidata",
"wd-recon-lang": "it", "wd-recon-lang": "it",
"recon-col": "Riconcilia la colonna", "recon-col": "Riconcilia la colonna",
"pick-service": "Seleziona un Servizio o Estensione sulla Sinistra", "pick-service": "Seleziona un Servizio o Estensione sulla Sinistra",

View File

@ -350,7 +350,6 @@
"as-property": "プロパティ", "as-property": "プロパティ",
"contact-service": "名寄せサービスにコンタクト中", "contact-service": "名寄せサービスにコンタクト中",
"error-contact": "名寄せサービスのコンタクトにエラー", "error-contact": "名寄せサービスのコンタクトにエラー",
"wd-recon": "Wikidata Reconciliation",
"wd-recon-lang": "jp", "wd-recon-lang": "jp",
"recon-col": "カラムを名寄せ", "recon-col": "カラムを名寄せ",
"pick-service": "左からサービスかエクステンションを選択", "pick-service": "左からサービスかエクステンションを選択",

View File

@ -350,7 +350,6 @@
"as-property": "作为属性", "as-property": "作为属性",
"contact-service": "正在访问搭配服务", "contact-service": "正在访问搭配服务",
"error-contact": "在访问搭配服务时出现异常", "error-contact": "在访问搭配服务时出现异常",
"wd-recon": "基于query的Wikidata搭配",
"wd-recon-lang": "zh", "wd-recon-lang": "zh",
"recon-col": "搭配列", "recon-col": "搭配列",
"pick-service": "在左侧选择一个服务或扩展", "pick-service": "在左侧选择一个服务或扩展",

View File

@ -141,27 +141,6 @@ ReconciliationManager.save = function(f) {
(function() { (function() {
var lang = $.i18n._('core-recon')["wd-recon-lang"]; var lang = $.i18n._('core-recon')["wd-recon-lang"];
ReconciliationManager.customServices.push(
{"suggest":
{"property":
{"service_url": "https://tools.wmflabs.org/openrefine-wikidata",
"service_path": "/"+lang+"/suggest/property"},
"type":
{"service_url": "https://tools.wmflabs.org/openrefine-wikidata",
"service_path": "/"+lang+"/suggest/type"},
"entity": {"service_url": "https://tools.wmflabs.org/openrefine-wikidata",
"service_path": "/"+lang+"/suggest/entity"}},
"view":
{"url": "https://www.wikidata.org/wiki/{{id}}"},
"preview":
{"height": 90,
"url": "https://tools.wmflabs.org/openrefine-wikidata/"+lang+"/preview?id={{id}}",
"width": 320},
"name": $.i18n._('core-recon')["wd-recon"],
"url" : "https://tools.wmflabs.org/openrefine-wikidata/"+lang+"/api",
"ui" : { "handler": "ReconStandardServicePanel" },
});
var cs = ReconciliationManager.customServices;
$.ajax({ $.ajax({
async: false, async: false,
@ -169,15 +148,13 @@ ReconciliationManager.save = function(f) {
name: "reconciliation.standardServices" name: "reconciliation.standardServices"
}), }),
success: function(data) { success: function(data) {
if (data.value && data.value != "null") { if (data.value && data.value != "null" && data.value != "[]") {
ReconciliationManager.standardServices = JSON.parse(data.value); ReconciliationManager.standardServices = JSON.parse(data.value);
ReconciliationManager._rebuildMap(); ReconciliationManager._rebuildMap();
} else { } else {
// FIXME: Standard recon service needs to be replaced ReconciliationManager.registerStandardService(
// ReconciliationManager.registerStandardService( "https://tools.wmflabs.org/openrefine-wikidata/"+lang+"/api"
// "http://reconcile.freebaseapps.com/reconcile" );
// "http://standard-reconcile.freebaseapps.com/reconcile"
// );
} }
}, },
dataType: "json" dataType: "json"