[interface] Number of notes column in items tree
This commit is contained in:
parent
08a570a38a
commit
942c6d5da2
3 changed files with 15 additions and 1 deletions
|
@ -153,8 +153,16 @@ Scholar.ItemTreeView.prototype.getCellText = function(row, column)
|
|||
var obj = this._getItemAtRow(row);
|
||||
var val;
|
||||
|
||||
if(column.id != "typeIcon")
|
||||
if(column.id == "numNotes")
|
||||
{
|
||||
var c = obj.numNotes();
|
||||
if(c) //don't display '0'
|
||||
val = c;
|
||||
}
|
||||
else if(column.id != "typeIcon")
|
||||
{
|
||||
val = obj.getField(column.id);
|
||||
}
|
||||
|
||||
if(column.id == 'dateAdded' || column.id == 'dateModified') //this is not so much that we will use this format for date, but a simple template for later revisions.
|
||||
{
|
||||
|
|
|
@ -78,6 +78,11 @@
|
|||
label="&items.creator_column;"
|
||||
flex="1" persist="width ordinal hidden sortActive sortDirection"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol
|
||||
id="numNotes"
|
||||
label="&items.numNotes_column;"
|
||||
persist="width ordinal hidden sortActive sortDirection"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol
|
||||
id="source" hidden="true"
|
||||
label="&items.source_column;"
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<!ENTITY items.creator_column "Creator">
|
||||
<!ENTITY items.source_column "Source">
|
||||
<!ENTITY items.rights_column "Rights">
|
||||
<!ENTITY items.numNotes_column "Notes">
|
||||
<!ENTITY items.dateAdded_column "Date Added">
|
||||
<!ENTITY items.dateModified_column "Date Modified">
|
||||
|
||||
|
|
Loading…
Reference in a new issue