From 44d4c5dee8a753f94c5b37491f0582f5bffdd32a Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 17 May 2006 14:54:29 +0000 Subject: [PATCH] --- .../chromeFiles/content/scholar/editDialog.js | 69 +++++++++++++++++++ .../content/scholar/editDialog.xul | 27 ++++++++ chrome/chromeFiles/content/scholar/sidebar.js | 8 ++- .../chromeFiles/content/scholar/sidebar.xul | 10 ++- 4 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 chrome/chromeFiles/content/scholar/editDialog.js create mode 100644 chrome/chromeFiles/content/scholar/editDialog.xul diff --git a/chrome/chromeFiles/content/scholar/editDialog.js b/chrome/chromeFiles/content/scholar/editDialog.js new file mode 100644 index 0000000000..dcfbe1a49c --- /dev/null +++ b/chrome/chromeFiles/content/scholar/editDialog.js @@ -0,0 +1,69 @@ +var ScholarLocalizedStrings; +var thisRow; +var dynamicBox; + +function init() +{ + thisRow = window.arguments[0]; + dynamicBox = document.getElementById('dynamic-fields'); + ScholarLocalizedStrings = document.getElementById('scholar-strings'); + + //universal fields + var fieldNames = new Array("title","dateAdded","dateModified","source","rights"); + + //add specific fields for this object type + var fields = Scholar.ObjectFields.getObjectTypeFields(thisRow.getField("objectTypeID")); + for(var i = 0; i + + + + + + + +