Simpler version
This commit is contained in:
parent
d967605816
commit
5d8d372244
@ -350,7 +350,6 @@
|
||||
"as-property": "As Property",
|
||||
"contact-service": "Contacting reconciliation service",
|
||||
"error-contact": "Error contacting recon service",
|
||||
"wd-recon": "Wikidata Reconciliation",
|
||||
"wd-recon-lang": "en",
|
||||
"recon-col": "Reconcile column",
|
||||
"pick-service": "Pick a Service or Extension on Left",
|
||||
|
@ -350,7 +350,6 @@
|
||||
"as-property": "As Property",
|
||||
"contact-service": "Contacting reconciliation service",
|
||||
"error-contact": "Error contacting recon service",
|
||||
"wd-recon": "Wikidata Reconciliation",
|
||||
"wd-recon-lang": "en",
|
||||
"recon-col": "Reconcile column",
|
||||
"pick-service": "Pick a Service or Extension on Left",
|
||||
|
@ -350,7 +350,6 @@
|
||||
"as-property": "Como propiedad",
|
||||
"contact-service": "Contactando al servicio",
|
||||
"error-contact": "Error contactando al servicio",
|
||||
"wd-recon": "Wikidata",
|
||||
"wd-recon-lang": "es",
|
||||
"recon-col": "Cotejar columna",
|
||||
"pick-service": "Seleccione un servicio o extensión a la izquierda",
|
||||
|
@ -350,7 +350,6 @@
|
||||
"as-property": "Comme propriété",
|
||||
"contact-service": "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",
|
||||
"recon-col": "Réconcilier la colonne",
|
||||
"pick-service": "Choisir un service ou une extension à gauche",
|
||||
|
@ -350,7 +350,6 @@
|
||||
"as-property": "Come Proprietà",
|
||||
"contact-service": "Contattando il servizio di riconciliazione",
|
||||
"error-contact": "Errore durante il contatto del servizio di riconciliazione",
|
||||
"wd-recon": "Riconciliazione Wikidata",
|
||||
"wd-recon-lang": "it",
|
||||
"recon-col": "Riconcilia la colonna",
|
||||
"pick-service": "Seleziona un Servizio o Estensione sulla Sinistra",
|
||||
|
@ -350,7 +350,6 @@
|
||||
"as-property": "プロパティ",
|
||||
"contact-service": "名寄せサービスにコンタクト中",
|
||||
"error-contact": "名寄せサービスのコンタクトにエラー",
|
||||
"wd-recon": "Wikidata Reconciliation",
|
||||
"wd-recon-lang": "jp",
|
||||
"recon-col": "カラムを名寄せ",
|
||||
"pick-service": "左からサービスかエクステンションを選択",
|
||||
|
@ -350,7 +350,6 @@
|
||||
"as-property": "作为属性",
|
||||
"contact-service": "正在访问搭配服务",
|
||||
"error-contact": "在访问搭配服务时出现异常",
|
||||
"wd-recon": "基于query的Wikidata搭配",
|
||||
"wd-recon-lang": "zh",
|
||||
"recon-col": "搭配列",
|
||||
"pick-service": "在左侧选择一个服务或扩展",
|
||||
|
@ -141,27 +141,6 @@ ReconciliationManager.save = function(f) {
|
||||
|
||||
(function() {
|
||||
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({
|
||||
async: false,
|
||||
@ -169,15 +148,13 @@ ReconciliationManager.save = function(f) {
|
||||
name: "reconciliation.standardServices"
|
||||
}),
|
||||
success: function(data) {
|
||||
if (data.value && data.value != "null") {
|
||||
if (data.value && data.value != "null" && data.value != "[]") {
|
||||
ReconciliationManager.standardServices = JSON.parse(data.value);
|
||||
ReconciliationManager._rebuildMap();
|
||||
} else {
|
||||
// FIXME: Standard recon service needs to be replaced
|
||||
// ReconciliationManager.registerStandardService(
|
||||
// "http://reconcile.freebaseapps.com/reconcile"
|
||||
// "http://standard-reconcile.freebaseapps.com/reconcile"
|
||||
// );
|
||||
ReconciliationManager.registerStandardService(
|
||||
"https://tools.wmflabs.org/openrefine-wikidata/"+lang+"/api"
|
||||
);
|
||||
}
|
||||
},
|
||||
dataType: "json"
|
||||
|
Loading…
Reference in New Issue
Block a user