Merge pull request #1373 from ostephens/tidy-reconcile-menu

Tidy reconcile menu
This commit is contained in:
Antonin Delpeuch 2017-12-05 11:18:31 +00:00 committed by GitHub
commit da51358949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 37 additions and 73 deletions

View File

@ -84,8 +84,7 @@ public class Recon implements HasFields, Jsonizable {
static final public int Feature_nameMatch = 1;
static final public int Feature_nameLevenshtein = 2;
static final public int Feature_nameWordDistance = 3;
static final public int Feature_qaResult = 4;
static final public int Feature_max = 5;
static final public int Feature_max = 4;
static final protected Map<String, Integer> s_featureMap = new HashMap<String, Integer>();
static {
@ -93,7 +92,6 @@ public class Recon implements HasFields, Jsonizable {
s_featureMap.put("nameMatch", Feature_nameMatch);
s_featureMap.put("nameLevenshtein", Feature_nameLevenshtein);
s_featureMap.put("nameWordDistance", Feature_nameWordDistance);
s_featureMap.put("qaResult", Feature_qaResult);
}
final public long id;

View File

@ -478,12 +478,10 @@
"best-cand-word-sim": "best candidate's name word similarity",
"best-type": "Best candidate's types",
"qa-facets": "QA facets",
"qa-results": "QA results",
"qa-results2": "QA Results",
"judg-actions": "Judgment actions",
"judg-actions2": "Judgment Actions",
"judg-hist": "Judgment history entries",
"hist-entries": "History Entries",
"judg-actions": "Judgment action type",
"judg-actions2": "Judgment Action type",
"judg-hist": "Judgment action timestamp",
"hist-entries": "Judgment action timestamp",
"actions": "Actions",
"best-cand": "Match each cell to its best candidate",
"best-cand2": "Match each cell to its best candidate in this column for all current filtered rows",

View File

@ -454,8 +454,6 @@
"best-cand-word-sim": "Por semejanza del nombre del mejor candidato",
"best-type": "Por elemento de consulta",
"qa-facets": "Verificar Facetas",
"qa-results": "Verificar resultados",
"qa-results2": "Verificar Resultados",
"judg-actions": "Acciones del parámetro",
"judg-actions2": "acciones del parámetro",
"judg-hist": "Entradas del parámetro",

View File

@ -436,7 +436,6 @@
"create-topic-cell": "Créer un nouveau sujet pour cette cellule",
"move-to-left": "Déplacer la colonne à gauche",
"keep-or": "conserver loriginal",
"qa-facets": "Facettes AQ",
"discard-judg2": "Rejeter les avis de réconciliation dans cette colonne pout toutes les lignes actuellement filtrées",
"list-int": "Liste les longueurs en les séparant par des virgules, par exemple 5, 7, 15",
"flag-rows": "Marquer les lignes",
@ -567,7 +566,6 @@
"flagged-rows": "Lignes marquées",
"no-settings": "Aucun paramètre n'est disponible pour cette propriété.",
"transp-cell-row": "Transposer les cellules de plusieurs colonnes en lignes",
"qa-results2": "Résultats AQ",
"not-valid-number": "Nombre invalide.",
"reconcile": "Réconcilier",
"starred-rows": "Lignes étoilées",

View File

@ -464,8 +464,6 @@
"best-cand-word-sim": "דמיון מילולי בשם המועמד הטוב ביותר",
"best-type": "סוגי המועמד הטוב ביותר",
"qa-facets": "שות היבטים/פנים",
"qa-results": "שו''ת תוצאות",
"qa-results2": "שו''ת תוצאות",
"judg-actions": "פעולות שיקולים",
"judg-actions2": "פעולות שיקולים",
"judg-hist": "היסטוריית ערכי שיקולים",

View File

@ -454,8 +454,6 @@
"best-cand-word-sim": "最良の候補name word similarity",
"best-type": "最良の候補タイプ",
"qa-facets": "QAファセット",
"qa-results": "QA結果",
"qa-results2": "QA結果",
"judg-actions": "判断 actions",
"judg-actions2": "判断 Actions",
"judg-hist": "判断履歴エントリー",

View File

@ -501,8 +501,6 @@
"best-cand-word-sim": "сходство названия лучшего кандидата",
"best-type": "Типы лучшего кандидата",
"qa-facets": "QA фасеты",
"qa-results": "QA результаты",
"qa-results2": "QA Результаты",
"judg-actions": "Действия над решениями сверки",
"judg-actions2": "Действия над решениями сверки",
"judg-hist": "Записи истории решений сверки",

View File

@ -454,12 +454,10 @@
"best-cand-word-sim": "best candidate's name word similarity",
"best-type": "Best candidate's types",
"qa-facets": "QA facets",
"qa-results": "QA results",
"qa-results2": "QA Results",
"judg-actions": "Judgment actions",
"judg-actions2": "Judgment Actions",
"judg-hist": "Judgment history entries",
"hist-entries": "History Entries",
"judg-actions": "Judgment action type",
"judg-actions2": "Judgment Action type",
"judg-hist": "Judgment action timestamp",
"hist-entries": "Judgment action timestamps",
"actions": "Actions",
"best-cand": "Match each cell to its best candidate",
"best-cand2": "Match each cell to its best candidate in this column for all current filtered rows",

View File

@ -214,6 +214,34 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
}
);
}
},
{
id: "core/by-judgment-actions",
label: $.i18n._('core-views')["judg-actions"],
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : column.name + " "+$.i18n._('core-views')["judg-actions2"],
"columnName" : column.name,
"expression" : "cell.recon.judgmentAction"
}
);
}
},
{
id: "core/by-judgment-history-entries",
label: $.i18n._('core-views')["judg-hist"],
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : column.name + " "+$.i18n._('core-views')["hist-entries"],
"columnName" : column.name,
"expression" : "cell.recon.judgmentHistoryEntry"
}
);
}
},
{},
{
@ -319,54 +347,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
}
]
},
{
id: "core/qa-facets",
label: $.i18n._('core-views')["qa-facets"],
submenu: [
{
id: "core/by-qa-results",
label: $.i18n._('core-views')["qa-results"],
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : column.name + " "+$.i18n._('core-views')["qa-results2"],
"columnName" : column.name,
"expression" : "cell.recon.features.qaResult"
}
);
}
},
{
id: "core/by-judgment-actions",
label: $.i18n._('core-views')["judg-actions"],
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : column.name + " "+$.i18n._('core-views')["judg-actions2"],
"columnName" : column.name,
"expression" : "cell.recon.judgmentAction"
}
);
}
},
{
id: "core/by-judgment-history-entries",
label: $.i18n._('core-views')["judg-hist"],
click: function() {
ui.browsingEngine.addFacet(
"list",
{
"name" : column.name + " "+$.i18n._('core-views')["hist-entries"],
"columnName" : column.name,
"expression" : "cell.recon.judgmentHistoryEntry"
}
);
}
}
]
},
{
id: "core/actions",
label: $.i18n._('core-views')["actions"],