diff --git a/chrome/chromeFiles/content/scholar/itemTreeView.js b/chrome/chromeFiles/content/scholar/itemTreeView.js index 3a925b4d22..fc92ed2085 100644 --- a/chrome/chromeFiles/content/scholar/itemTreeView.js +++ b/chrome/chromeFiles/content/scholar/itemTreeView.js @@ -30,7 +30,6 @@ Scholar.ItemTreeView.prototype.refresh = function() this._refreshHashMap(); } -//CALLED BY DATA LAYER ON CHANGE: Scholar.ItemTreeView.prototype.notify = function(action, type, ids) { var madeChanges = false; @@ -246,10 +245,11 @@ Scholar.ItemTreeView.prototype._getItemAtRow = function(row) return this._dataItems[row]; } +/* + * Create hash map of item ids to row indexes + */ Scholar.ItemTreeView.prototype._refreshHashMap = function() -{ - // Create hash map of item ids to row indexes - +{ this._itemRowMap = new Array(); for(var i=0; i < this.rowCount; i++) this._itemRowMap[this._getItemAtRow(i).getID()] = i; @@ -303,7 +303,7 @@ Scholar.ItemTreeView.prototype.getSupportedFlavours = function () Scholar.ItemTreeView.prototype.onDragOver = function (evt,dropdata,session) { } Scholar.ItemTreeView.prototype.onDrop = function (evt,dropdata,session) { } -//More functions we have to include for TreeView +/* MORE TREEVIEW FUNCTIONS THAT HAVE TO BE HERE */ Scholar.ItemTreeView.prototype.isSeparator = function(row) { return false; } Scholar.ItemTreeView.prototype.isContainer = function(row) { return false; } diff --git a/chrome/chromeFiles/content/scholar/metadataPane.js b/chrome/chromeFiles/content/scholar/metadataPane.js index 6da0fa5601..0d32ee2d87 100644 --- a/chrome/chromeFiles/content/scholar/metadataPane.js +++ b/chrome/chromeFiles/content/scholar/metadataPane.js @@ -1,8 +1,9 @@ -MetadataPane = new function() +ScholarItemPane = new function() { var _dynamicFields; var _creatorTypeMenu; var _beforeRow; + var _notesPane; var _creatorCount; @@ -11,15 +12,17 @@ MetadataPane = new function() this.onLoad = onLoad; this.viewItem = viewItem; this.addCreatorRow = addCreatorRow; - this.modifyCreator = modifyCreator; this.removeCreator = removeCreator; this.showEditor = showEditor; this.hideEditor = hideEditor; + this.modifyField = modifyField; + this.modifyCreator = modifyCreator; function onLoad() { _dynamicFields = document.getElementById('editpane-dynamic-fields'); _creatorTypeMenu = document.getElementById('creatorTypeMenu'); + _notesPane = document.getElementById('scholar-notes'); var creatorTypes = Scholar.CreatorTypes.getTypes(); for(var i = 0; i < creatorTypes.length; i++) @@ -57,12 +60,21 @@ MetadataPane = new function() for(var i = 0; i