Commit 4172f4db authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update harvest view to remove flex parameter for hidden columns in grid.

parent 5f242f2c
......@@ -151,32 +151,6 @@
}}
<script type="text/javascript">
var cfgStatStore = {{=XML(cfg_statStore)}},
cfgLogsStore = {{=XML(cfg_logsStore)}},
divstat = '{{=divstat}}',
divlogs = '{{=divlogs}}',
gridStat,
gridLog,
menu,
trAction = '{{=T("Action")}}',
trAdded = '{{=T("Added")}}',
trCollection = '{{=T("Collection")}}',
trEditAndInsert = '{{=T("Edit and insert")}}',
trError = '{{=T("Error")}}',
trExisting = '{{=T("Existing")}}',
trFailure = '{{=T("Loading failed")}}',
trFound = '{{=T("Found")}}',
trHost = '{{=T("Host")}}',
trLoading = '{{=T("Loading...")}}',
trLost = '{{=T("Lost")}}',
trModified = '{{=T("Modified")}}',
trRejected = '{{=T("Rejected")}}',
trSynonym = '{{=T("Synonym")}}',
trTitle = '{{=T("Title")}}',
trTxt ='{{=T("Message")}}',
trStatistics = '{{=T("Statistics")}}',
trYear = '{{=T("Year")}}';
/**
* Launch the Edit and Insert wizard
*/
......@@ -279,6 +253,28 @@
return 'Total';
}
var cfgStatStore = {{=XML(cfg_statStore)}},
cfgLogsStore = {{=XML(cfg_logsStore)}},
trAction = '{{=T("Action")}}',
trAdded = '{{=T("Added")}}',
trCollection = '{{=T("Collection")}}',
trEditAndInsert = '{{=T("Edit and insert")}}',
trError = '{{=T("Error")}}',
trExisting = '{{=T("Existing")}}',
trFailure = '{{=T("Loading failed")}}',
trFound = '{{=T("Found")}}',
trHost = '{{=T("Host")}}',
trLoading = '{{=T("Loading...")}}',
trLost = '{{=T("Lost")}}',
trModified = '{{=T("Modified")}}',
trRejected = '{{=T("Rejected")}}',
trSynonym = '{{=T("Synonym")}}',
trTitle = '{{=T("Title")}}',
trTxt ='{{=T("Message")}}',
trStatistics = '{{=T("Statistics")}}',
trYear = '{{=T("Year")}}',
gridStat, gridLog, menu;
//
// instantiate the grid for the STAT
//
......@@ -294,19 +290,54 @@
renderer: rTitle,
summaryRenderer: rTotal
},
{align: 'right', text: trFound, dataIndex: 'found', flex: 1, summaryType: 'sum'},
{align: 'right', text: trExisting, dataIndex: 'idle', flex: 1, summaryType: 'sum'},
{align: 'right', text: trAdded, dataIndex: 'add', flex: 1, summaryType: 'sum'},
{align: 'right', text: trModified, dataIndex: 'modify', flex: 1, summaryType: 'sum'},
{align: 'right', text: trRejected, dataIndex: 'reject', flex: 1, summaryType: 'sum'},
{align: 'right', text: trLost, dataIndex: 'lost', flex: 1, hidden: true, summaryType: 'sum'},
{align: 'right', text: trError, dataIndex: 'error', flex: 1, hidden: true}
{
align: 'right',
flex: 1,
text: trFound,
dataIndex: 'found',
summaryType: 'sum'
}, {
align: 'right',
flex: 1,
text: trExisting,
dataIndex: 'idle',
summaryType: 'sum'
}, {
align: 'right',
flex: 1,
text: trAdded,
dataIndex: 'add',
summaryType: 'sum'
}, {
align: 'right',
flex: 1,
text: trModified,
dataIndex: 'modify',
summaryType: 'sum'
}, {
align: 'right',
flex: 1,
text: trRejected,
dataIndex: 'reject',
summaryType: 'sum'
}, {
align: 'right',
text: trLost,
dataIndex: 'lost',
hidden: true,
summaryType: 'sum'
}, {
align: 'right',
text: trError,
dataIndex: 'error',
hidden: true
}
],
collapsible: true,
features: [{ftype:'summary'}],
forceFit: true,
padding: "0 40 20 30",
renderTo: divstat
renderTo: '{{=divstat}}'
});
//
......@@ -322,19 +353,19 @@
{text: trTitle, dataIndex: 'title', flex: 3, renderer: rTitle},
{text: trSynonym, dataIndex: 'synonym', flex: 1},
{text: trHost, dataIndex: 'host', flex: 1},
{text: trAction, dataIndex: 'action', flex: 1, hidden: true},
{text: trTxt, dataIndex: 'txt', flex: 1, hidden: true},
{text: trCollection, dataIndex: 'collection', flex: 1, hidden: true},
{text: trYear, dataIndex: 'year', flex: 1, hidden: true},
{text: 'harvester', dataIndex: 'harvester', flex: 1, hidden: true},
{text: 'record_id', dataIndex: 'record_id', flex: 1, hidden: true}
{text: trAction, dataIndex: 'action', hidden: true},
{text: trTxt, dataIndex: 'txt', hidden: true},
{text: trCollection, dataIndex: 'collection', hidden: true},
{text: trYear, dataIndex: 'year', hidden: true},
{text: 'harvester', dataIndex: 'harvester', hidden: true},
{text: 'record_id', dataIndex: 'record_id', hidden: true}
],
features: [
{ftype:'grouping', groupHeaderTpl: '{name}', startCollapsed: true}
],
forceFit: true,
padding: "10 40 20 30",
renderTo: divlogs
renderTo: '{{=divlogs}}'
});
//
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment