[interface] Number of notes column in items tree

This commit is contained in:
David Norton 2006-06-16 15:27:22 +00:00
parent 08a570a38a
commit 942c6d5da2
3 changed files with 15 additions and 1 deletions

View file

@ -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.
{

View file

@ -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;"

View file

@ -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">