diff --git a/chrome/chromeFiles/content/scholar/itemTreeView.js b/chrome/chromeFiles/content/scholar/itemTreeView.js index 4de13e3b07..e49cd19ae3 100644 --- a/chrome/chromeFiles/content/scholar/itemTreeView.js +++ b/chrome/chromeFiles/content/scholar/itemTreeView.js @@ -41,11 +41,7 @@ Scholar.ItemTreeView.prototype.getCellText = function(row, column) 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. { - var myDate = new Date(); - - myDate.setTime(Date.parse(val.replace("-","/").replace("-","/"))); - - val = Scholar.Date.formatDate(myDate,'M/d/y h:mma'); + val = new Date(Date.parse(val.replace(/-/g,"/"))).toLocaleString(); } return val; diff --git a/chrome/chromeFiles/content/scholar/metadataPane.js b/chrome/chromeFiles/content/scholar/metadataPane.js index ab4bd84ddc..30af17dae6 100644 --- a/chrome/chromeFiles/content/scholar/metadataPane.js +++ b/chrome/chromeFiles/content/scholar/metadataPane.js @@ -1,21 +1,17 @@ MetadataPane = new function() { var _dynamicFields; - var _dynamicCreators; - var _editButton; - var _cancelButton; - var _saveButton; - var _creatorsToolbar; var _itemBeingEdited; var _creatorTypes = Scholar.CreatorTypes.getTypes(); this.onLoad = onLoad; this.viewItem = viewItem; - this.toggleEdit = toggleEdit; - this.saveItem = saveItem; +/* this.saveItem = saveItem; this.addCreator = addCreator; - this.removeCreator = removeCreator; + this.removeCreator = removeCreator; */ + this.showEditor = showEditor; + this.hideEditor = hideEditor; function onLoad() { @@ -34,33 +30,27 @@ MetadataPane = new function() * Loads an item */ function viewItem(thisItem) - { - if(_editButton.hidden) - toggleEdit(confirm(Scholar.getString('metadata.savechanges').replace('%1',_itemBeingEdited.getField('title')))); - + { _itemBeingEdited = thisItem; reloadFields(); - } function reloadFields() { removeDynamicRows(_dynamicFields); - removeDynamicRows(_dynamicCreators); thisItem = _itemBeingEdited; var fieldNames = getFullFieldList(thisItem); - var editingMode = _editButton.hidden; for(var i = 0; i 0) @@ -68,39 +58,15 @@ MetadataPane = new function() for(var i = 0, len=thisItem.numCreators(); i