removing legacy staff client after having tested modern client for lingering dependen...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Jun 2007 20:52:55 +0000 (20:52 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Jun 2007 20:52:55 +0000 (20:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7418 dcc99617-32d9-48b4-a31d-7c20da2025e4

189 files changed:
Evergreen/staff_client/LICENSE [deleted file]
Evergreen/staff_client/Makefile [deleted file]
Evergreen/staff_client/README [deleted file]
Evergreen/staff_client/application.ini [deleted file]
Evergreen/staff_client/chrome/chrome.manifest [deleted file]
Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS_scripts_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/OpenSRF/OpenSRF_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/auth/auth.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/auth/auth.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/auth/auth_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/browse_list_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/cat.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/cat.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/cat_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy_add_wizard.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy_display.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/copy_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/details.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc_fixed.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc_keys.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc_rules.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/marc_validate.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/record_list.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/record_list.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/record_list_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/spine_label_wizard.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/volume.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/volume_copy_add_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/volume_copy_add_wizard.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/volume_edit_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/cat/volume_edit_wizard.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/checkin.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/checkin.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/checkin_items.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/checkin_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/circ_utils.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture_items.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/hold_capture_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/circ/receipt_template_editor.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/contents.rdf [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/about.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/app_shell.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/app_shell.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/app_shell_menus_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/app_shell_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell_vertical.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/clam_shell_vertical_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/grid_list.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/grid_list_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/list_box.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/paged_tree.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/main/paged_tree_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/opac/opac.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/opac/opac.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_barcode_entry.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_bill_details.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_bill_wizard.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_bills.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_checkout_items.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_contact_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_display_status_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_edit.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_edit_legacy.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_edit_legacy.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_edit_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_holds.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_items.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_new_legacy.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_search.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_search.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_form.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_form_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_search_results.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/patron/patron_utils.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/stat_cat/copy_stat_cat_editor.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/stat_cat/patron_stat_cat_editor.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/stat_cat/stat_cat.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/stat_cat/stat_cat_bundle.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/stat_cat/stat_cat_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/survey/survey.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/survey/survey_bundle.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/survey/survey_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/survey/survey_wizard.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/browser_overlay.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/browser_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/datetime.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/error.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/explode.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/file.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/filter_console.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/fm_utils.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/fm_view.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/functional.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/make_wiki_table.pl [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/populate.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/print.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/ses.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/shell.html [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/sound.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/spawn_win.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/util.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/util_overlay.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/validate.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/widgets.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/win.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/xpcom.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/xuledit.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/util/xuledit.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/z39_50/z39_50.js [deleted file]
Evergreen/staff_client/chrome/content/evergreen/z39_50/z39_50.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/z39_50/z39_50_bundle.xul [deleted file]
Evergreen/staff_client/chrome/content/evergreen/z39_50/z39_50_overlay.xul [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/OpenILS.properties [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/app_shell.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/app_shell.properties [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/auth.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/auth.properties [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/cat.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/checkin.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/circ_tree.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/clam_shell.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/clam_shell.properties [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/contents.rdf [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/hold_capture.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/paged_tree.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/patron.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/patron.properties [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/patron_display.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/patron_search.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/patron_search_form.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/stat_cat.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/survey.dtd [deleted file]
Evergreen/staff_client/chrome/locale/en-US/evergreen/z39_50.dtd [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/app_shell.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/auth.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/browse_list.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/cat.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/checkin.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/circ_tree.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/clam_shell.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/contents.rdf [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/evergreen.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/hold_capture.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/marc.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/images/cooltext001.png [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/images/main_logo.jpg [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/sounds/clicked.wav [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/sounds/cow.wav [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/sounds/die.wav [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/sounds/gong.wav [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/sounds/redalert.wav [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/media/sounds/turn.wav [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/opac.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/paged_tree.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron_display.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron_display_contact.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron_display_status.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron_search.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron_search_form.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/patron_search_results.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/stat_cat.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/survey.css [deleted file]
Evergreen/staff_client/chrome/skin/evergreen/z39_50.css [deleted file]
Evergreen/staff_client/defaults/preferences/evergreen.js [deleted file]
Evergreen/staff_client/install.js [deleted file]
Evergreen/staff_client/install.rdf [deleted file]

diff --git a/Evergreen/staff_client/LICENSE b/Evergreen/staff_client/LICENSE
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/Evergreen/staff_client/Makefile b/Evergreen/staff_client/Makefile
deleted file mode 100644 (file)
index dbd6209..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-VERSION=0.1.0
-PACKAGE=Evergreen
-DESCRIPTION=Evergreen Staff Client 
-BUILD=2005072719
-
-RETRIEVE_FIELDMAPPER=wget -N http://dev.gapines.org/opac/common/js/util/fieldmapper.js
-RETRIEVE_FM_ALL=wget -N http://dev.gapines.org/opac/common/js/fmall.js
-RETRIEVE_ORG_TREE=wget -N http://dev.gapines.org/opac/common/js/OrgTree.js
-RETRIEVE_CLIENT_CONFIG=cp ../../../../../../OpenSRF/examples/math_xul_client/math/content/conf/client_config.xml .
-
-all: build package
-       @echo
-       @echo How do makefiles work again?
-       @echo BUILD = ${BUILD}
-       touch application.ini
-
-build: generated open-ils patron circ
-       @echo
-       @echo Everything before packaging
-
-package: evergreen.xpi
-       @echo
-       @echo Packaging
-
-stamp: 
-       sed -i s/^Version=.\*/Version=${VERSION}/ application.ini 
-       sed -i s/^BuildID=.\*/BuildID=${BUILD}/ application.ini
-       sed -i s/^Name=.\*/Name=${PACKAGE}/ application.ini 
-       sed -i 's/<em:version>.*<\/em:version>/<em:version>${VERSION}<\/em:version>/' install.rdf 
-       sed -i 's/<em:name>.*<\/em:name>/<em:name>${PACKAGE}<\/em:name>/' install.rdf 
-       sed -i 's/<em:description>.*<\/em:description>/<em:description>${DESCRIPTION}<\/em:description>/' install.rdf 
-       sed -i "s/extVersion: '.\*'/extVersion: '${VERSION}'/" install.js 
-       sed -i "s/extFullName: '.\*'/extFullName: '${DESCRIPTION}'/" install.js 
-       sed -i 's/auth\.title ".*"/auth\.title "${DESCRIPTION}"/' chrome/locale/en-US/evergreen/auth.dtd 
-       sed -i 's/auth\.version ".*"/auth\.version "${PACKAGE} ${VERSION} ${BUILD}"/' chrome/locale/en-US/evergreen/auth.dtd 
-
-generated:
-       @echo
-       @echo These things are installation specific.  The staff client is the last thing you should try to build.
-       #(cd chrome/content/evergreen/util ; ${RETRIEVE_FIELDMAPPER} );
-       (cd chrome/content/evergreen/Open-ILS/util/ ; ${RETRIEVE_ORG_TREE} );
-       (cd chrome/content/evergreen/conf ; ${RETRIEVE_CLIENT_CONFIG} );
-       (cd chrome/content/evergreen/Open-ILS/util/ ; ${RETRIEVE_FM_ALL} );
-
-open-ils:
-       cp ../../OpenSRF/src/javascript/*.js chrome/content/evergreen/OpenSRF/
-       cp ../../Open-ILS/web/opac/common/js/*.js chrome/content/evergreen/Open-ILS/util/
-       #cp ../../Open-ILS/src/javascript/widgets/*.js chrome/content/evergreen/Open-ILS/widgets/
-       #cp ../../Open-ILS/src/javascript/widgets/menu/*.js chrome/content/evergreen/Open-ILS/widgets/menu/
-
-patron:
-       (cat chrome/content/evergreen/main/paged_tree_overlay.xul | sed s/paged_tree/patron_items/g | sed s/PagedTree/PatronItems/g > chrome/content/evergreen/patron/patron_items_overlay.xul )
-       (cat chrome/content/evergreen/main/paged_tree_overlay.xul | sed s/paged_tree/patron_search_results/g | sed s/PagedTree/PatronSearchResults/g > chrome/content/evergreen/patron/patron_search_results_overlay.xul )
-       (cat chrome/content/evergreen/main/paged_tree_overlay.xul | sed s/paged_tree/patron_checkout_items/g | sed s/PagedTree/PatronCheckoutItems/g > chrome/content/evergreen/patron/patron_checkout_items_overlay.xul )
-       (cat chrome/content/evergreen/main/paged_tree_overlay.xul | sed s/paged_tree/patron_holds/g | sed s/PagedTree/PatronHolds/g > chrome/content/evergreen/patron/patron_holds_overlay.xul )
-       (cp chrome/locale/en-US/evergreen/paged_tree.dtd chrome/locale/en-US/evergreen/patron_items.dtd)
-       (cp chrome/locale/en-US/evergreen/paged_tree.dtd chrome/locale/en-US/evergreen/patron_search_results.dtd)
-       (cp chrome/locale/en-US/evergreen/paged_tree.dtd chrome/locale/en-US/evergreen/patron_checkout_items.dtd)
-       (cp chrome/locale/en-US/evergreen/paged_tree.dtd chrome/locale/en-US/evergreen/patron_holds.dtd)
-
-circ:
-       (cat chrome/content/evergreen/main/paged_tree_overlay.xul | sed s/paged_tree/checkin_items/g | sed s/PagedTree/CheckinItems/g > chrome/content/evergreen/circ/checkin_items_overlay.xul )
-       (cp chrome/locale/en-US/evergreen/paged_tree.dtd chrome/locale/en-US/evergreen/checkin_items.dtd)
-       (cat chrome/content/evergreen/main/paged_tree_overlay.xul | sed s/paged_tree/hold_capture_items/g | sed s/PagedTree/HoldCaptureItems/g > chrome/content/evergreen/circ/hold_capture_items_overlay.xul )
-       (cp chrome/locale/en-US/evergreen/paged_tree.dtd chrome/locale/en-US/evergreen/hold_capture_items.dtd)
-
-evergreen.xpi: evergreen.jar
-       @echo
-       @echo make the xpi file
-       zip -r evergreen.xpi chrome/ defaults/ install.js install.rdf application.ini Makefile LICENSE README -x \*CVS\* > /dev/null
-
-evergreen.jar: build
-       @echo
-       @echo make the jar file
-       (cd chrome; zip -r evergreen.jar content/ locale/ skin/ -x \*CVS\* > /dev/null )
-
-clean:
-       @echo
-       @echo delete derived files
-       rm -f evergreen.xpi
-       rm -f chrome/evergreen.jar
-       rm -f chrome/content/evergreen/patron/patron_items_overlay.xul chrome/locale/en-US/evergreen/patron_items.dtd
-       rm -f chrome/content/evergreen/patron/patron_search_results_overlay.xul chrome/locale/en-US/evergreen/patron_search_results.dtd
-       rm -f chrome/content/evergreen/patron/patron_checkout_items_overlay.xul chrome/locale/en-US/evergreen/patron_checkout_items.dtd
-       rm -f chrome/content/evergreen/patron/patron_holds_overlay.xul chrome/locale/en-US/evergreen/patron_holds.dtd
-       rm -f chrome/content/evergreen/circ/checkin_items_overlay.xul chrome/locale/en-US/evergreen/checkin_items.dtd
-       rm -f chrome/content/evergreen/circ/hold_capture_items_overlay.xul chrome/locale/en-US/evergreen/hold_capture_items.dtd
-       rm -f chrome/content/evergreen/conf/client_config.xml
-       rm -f chrome/content/evergreen/util/fieldmapper.js
-       rm -f chrome/content/evergreen/util/OrgTree.js
-       rm -f chrome/content/evergreen/OpenSRF/*js
-       rm -f chrome/content/evergreen/Open-ILS/util/*js
-       rm -f chrome/content/evergreen/Open-ILS/widgets/*js
-       rm -f chrome/content/evergreen/Open-ILS/widgets/menu/*js
diff --git a/Evergreen/staff_client/README b/Evergreen/staff_client/README
deleted file mode 100644 (file)
index e79cef8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-This part of the tree is deprecated.. it was a previous incarnation of the staff client now at ILS/Open-ILS/xul/staff_client/
diff --git a/Evergreen/staff_client/application.ini b/Evergreen/staff_client/application.ini
deleted file mode 100644 (file)
index 88a6227..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-[App]
-; Modified by Jason for Evergreen
-; This file is used by XUL Runner like so:  xulrunner ./application.ini
-;
-; This field specifies your organization's name.  This field is recommended,
-; but optional.
-Vendor=PINES
-;
-; This field specifies your application's name.  This field is required.
-Name=Evergreen
-;
-; This field specifies your application's version.  This field is optional.
-Version=0.1.0
-;
-; This field specifies your application's build ID (timestamp).  This field is
-; required.
-BuildID=2005072719
-;
-; This field specifies a compact copyright notice for your application.  This
-; field is optional.
-Copyright=Copyright (c) 2005 GPLS/PINES
-;
-; This ID is just an example.  Every XUL app ought to have it's own unique ID.
-; You can use the microsoft "guidgen" or "uuidgen" tools, or go on
-; irc.mozilla.org and /msg botbot uuid.  This field is optional.
-ID={c3dd711b-c9b4-4785-b8f8-6157149c8905}
-
-[Gecko]
-;
-; This field is required.  It specifies the minimum Gecko version that this
-; application requires.  Specifying 1.8 matches all releases with a version
-; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2).
-MinVersion=1.8
-;
-; This field is optional.  It specifies the maximum Gecko version that this
-; application requires.  It should be specified if your application uses
-; unfrozen interfaces.  Specifying 1.8 matches all releases with a version
-; prefixed by 1.8 (e.g., 1.8a4, 1.8b, 1.8.2).
-MaxVersion=1.9
diff --git a/Evergreen/staff_client/chrome/chrome.manifest b/Evergreen/staff_client/chrome/chrome.manifest
deleted file mode 100644 (file)
index 4179af3..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-content evergreen jar:evergreen.jar!/content/evergreen/
-locale evergreen en-US jar:evergreen.jar!/locale/en-US/evergreen/
-skin evergreen evergreen jar:evergreen.jar!/skin/evergreen/
diff --git a/Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS.js b/Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS.js
deleted file mode 100644 (file)
index 2f4a13c..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-function OpenILS_init(params) { 
-       sdump( 'D_TRACE', arg_dump( arguments, { '0':'js2JSON( map_object( arg,function(i,o){try{return [i,o.toString()];}catch(E){return [i,o];}}))' }));
-
-       try {
-
-               switch(params.app) {
-                       case 'Auth' : auth_init(params); break;
-                       case 'AppShell' : app_shell_init(params); register_AppShell(params.w); break;
-                       case 'Opac' : opac_init(params); break;
-                       case 'PatronSearch' : patron_search_init(params); break;
-                       case 'PatronDisplay' : patron_display_init(params); break;
-                       case 'Checkin' : checkin_init(params); break;
-                       case 'HoldCapture' : hold_capture_init(params); break;
-               }
-
-       } catch(E) { sdump('D_ERROR',js2JSON(E)+'\n'); }
-
-       try {
-
-               //register_document(params.w.document);
-               register_window(params.w);
-
-       } catch(E) { sdump('D_ERROR',js2JSON(E)+'\n'); }
-       sdump('D_TRACE_EXIT',arg_dump(arguments));
-}
-
-function OpenILS_exit(params) {
-       sdump( 'D_TRACE', arg_dump( arguments, { '0':'js2JSON( map_object( arg,function(i,o){try{return [i,o.toString()];}catch(E){return [i,o];}}))' }));
-
-       /*
-       try {
-       
-               switch(params.app) {
-                       case 'Auth' : auth_exit(params); break;
-                       case 'AppShell' : app_shell_exit(params); unregister_AppShell(params.w); break;
-                       case 'Opac' : opac_exit(params); break;
-                       case 'PatronSearch' : patron_search_exit(params); break;
-                       case 'PatronDisplay' : patron_display_exit(params); break;
-                       case 'Checkin' : checkin_exit(params); break;
-                       case 'HoldCapture' : hold_capture_exit(params); break;
-               }
-
-       } catch(E) { sdump('D_ERROR',js2JSON(E)+'\n'); }
-       */
-
-       try {
-
-               // buggy for now
-               //unregister_document(params.w.document);
-               unregister_window(params.w);
-
-       } catch(E) { sdump('D_ERROR',js2JSON(E)+'\n'); }
-
-       sdump('D_TRACE','Exiting OpenILS_exit\n');
-}
diff --git a/Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS_overlay.xul
deleted file mode 100644 (file)
index 7acee43..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0"?>
-<!-- Modified by Jason for Evergreen -->
-
-<overlay id="OpenILS_overlay"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/Open-ILS/OpenILS_scripts_overlay.xul"?>
-
-       <OpenILS id="OpenILS_js">
-
-               <!-- OpenSRF -->
-               <script>
-               <![CDATA[
-                       var myPackageDir = "evergreen"; var ses; dump('Loading all the js in the OpenILS overlay...\n');
-                       /*
-                       Components.classes['@mozilla.org/consoleservice;1'].getService(Components.interfaces.nsIConsoleService).registerListener(
-                               { 
-                                       observe: function( msg ) { 
-                                               if (! msg.message.match( /delta/ ) ) {
-                                                       var s = '';
-                                                       for (var i in msg) {
-                                                               s += 'msg.' + i + ' = ' + msg[i] + '\n';
-                                                       }
-                                                       alert(s); 
-                                               }
-                                       },
-                                       QueryInterface: function (iid) { 
-                                               if (!iid.equals(Components.interfaces.nsIConsoleListener) 
-                                                       && !iid.equals(Components.interfaces.nsISupports)) { 
-                                                       throw Components.results.NS_ERROR_NO_INTERFACE; 
-                                               } 
-                                               return this; 
-                                       }
-                               }
-                       );
-                       */
-               ]]>
-               </script>
-               <OpenSRF id="OpenSRF_js" />
-
-               <util id="util_js" />
-
-               <apps id="apps_js" />
-
-       </OpenILS>
-
-       <stringbundleset id="string_bundles">
-               <stringbundle id="main_strings" src="chrome://evergreen/locale/OpenILS.properties"/>
-               <!-- <stringbundle id="patron_strings" src="chrome://evergreen/locale/patron.properties"/> -->
-       </stringbundleset>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS_scripts_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/Open-ILS/OpenILS_scripts_overlay.xul
deleted file mode 100644 (file)
index 870c137..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0"?>
-<!-- Modified by Jason for Evergreen -->
-
-<overlay id="OpenILS_scripts_overlay"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <apps id="apps_js">
-               <script src="chrome://evergreen/content/Open-ILS/OpenILS.js" />
-               <script src="chrome://evergreen/content/auth/auth.js" />
-               <script src="chrome://evergreen/content/main/app_shell.js" />
-               <script src="chrome://evergreen/content/main/clam_shell.js" />
-               <script src="chrome://evergreen/content/main/paged_tree.js" />
-               <script src="chrome://evergreen/content/main/grid_list.js" />
-               <script src="chrome://evergreen/content/main/list_box.js" />
-               <script src="chrome://evergreen/content/opac/opac.js" />
-               <script src="chrome://evergreen/content/patron/patron_utils.js" />
-               <script src="chrome://evergreen/content/patron/patron_search.js" />
-               <script src="chrome://evergreen/content/patron/patron_search_form.js" />
-               <script src="chrome://evergreen/content/patron/patron_search_results.js" />
-               <script src="chrome://evergreen/content/patron/patron_display.js" />
-               <script src="chrome://evergreen/content/patron/patron_checkout_items.js" />
-               <script src="chrome://evergreen/content/patron/patron_items.js" />
-               <script src="chrome://evergreen/content/patron/patron_holds.js" />
-               <script src="chrome://evergreen/content/patron/patron_bills.js" />
-               <script src="chrome://evergreen/content/patron/patron_edit.js" />
-               <script src="chrome://evergreen/content/circ/circ_utils.js" />
-               <script src="chrome://evergreen/content/circ/checkin.js" />
-               <script src="chrome://evergreen/content/circ/checkin_items.js" />
-               <script src="chrome://evergreen/content/circ/hold_capture.js" />
-               <script src="chrome://evergreen/content/circ/hold_capture_items.js" />
-       </apps>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/OpenSRF/OpenSRF_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/OpenSRF/OpenSRF_overlay.xul
deleted file mode 100644 (file)
index cb60096..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0"?>
-<!-- Modified by Jason for Evergreen -->
-
-<overlay id="OpenSRF"
-        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<OpenSRF id="OpenSRF_js">
-       <script>dump('Loading all the js in the OpenSRF overlay...\n');</script>
-       <!--
-       <script src="JSON.js" />
-       <script src="md5.js" />
-       <script src="opensrf_utils.js" />
-       <script src="opensrf_config.js" />
-       <script src="opensrf_dom_element.js" />
-       <script src="opensrf_domain_object.js" />
-       <script src="opensrf_transport.js" />
-       <script src="opensrf_jabber_transport.js" />
-       <script src="opensrf_msg_stack.js" />
-       <script src="opensrf_app_session.js" />
-       -->
-</OpenSRF>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/auth/auth.js b/Evergreen/staff_client/chrome/content/evergreen/auth/auth.js
deleted file mode 100644 (file)
index 4083ded..0000000
+++ /dev/null
@@ -1,545 +0,0 @@
-// the master Global variable
-var G = { 
-/////////////////////////////////////////////////////////////////////////////////////
-
-       // pointer to the auth window
-       'main_window' : self,   
-
-       // list of open window references, used for debugging in shell
-       'win_list' : [],        
-
-       // list of Top Level menu interface window references
-       'appshell_list' : [],   
-
-       // list of documents for debugging.  BROKEN
-       'doc_list' : [],        
-
-       // Windows need unique names.  This number helps.
-       'window_name_increment' : 0, 
-
-       // This number gets put into the title bar for Top Level menu interface windows
-       'appshell_name_increment' : 0,
-
-       // I was using this to make sure I could shove references into new windows
-       // correctly.  However, it's JSON that tends to behave weirdly when crossing
-       // window boundaries.  [ 'a', 'b', 'c' ] could turn into { '1' : 'a', '2' : 'b',
-       'main_test_variable' : 'Hello World',
-
-/////////////////////////////////////////////////////////////////////////////////////
-
-       // Flag for whether the staff client should act as if it were offline or not
-       'offline' : false,
-
-       // Array of Session Keys.  This is an array mostly by accident, we usually
-       // only deal with one session.  But this could be useful for implementing
-       // overrides with other logins.
-       'auth_ses' : [],
-
-       // Org Unit for the login user
-       'user_ou' : '',
-
-       // The related org units for the login user
-       'my_orgs' : [], 'my_orgs_hash' : {},
-
-/////////////////////////////////////////////////////////////////////////////////////
-
-       // The Org Unit tree
-       'org_tree' : '', 'org_tree_hash' : {},
-
-/////////////////////////////////////////////////////////////////////////////////////
-
-       // Historically, was the list of actor::profile's, but now it's user groups.
-       'ap_list' : [], 'ap_hash' : {},
-
-       // config::identification_type
-       'cit_list' : [], 'cit_hash' : {},
-
-       // config::standing
-       'cst_list' : [], 'cst_hash' : {},
-
-       // assett::copy_location, and for my_orgs
-       'acpl_list' : [], 'acpl_hash' : {},
-       'acpl_my_orgs' : [], 'acpl_my_orgs_hash' : {},
-
-       // actor::org_unit_type
-       'aout_list' : [], 'aout_hash' : {},
-
-       // config::copy_status
-       'ccs_list' : [], 'ccs_hash' : {},
-
-       // asset::stat_cat.   WHERE IS THIS POPULATED AGAIN?
-       'asc_list' : [],
-
-       // actor::stat_cat
-       'actsc_list' : [], 'actsc_hash' : {},
-
-/////////////////////////////////////////////////////////////////////////////////////
-
-       'itemsout_header' : 'Welcome %PATRON_FIRSTNAME%, to %LIBRARY%!\r\nYou have the following items:<hr/><ol>',
-       'itemsout_line_item' : '<li>%TITLE: 50%\r\nBarcode: %COPY_BARCODE% Due: %DUE_D%\r\n',
-       'itemsout_footer' : '</ol><hr />%PINES_CODE% %TODAY%\r\nYou were helped by %STAFF_FIRSTNAME% %STAFF_LASTNAME%',
-
-       'checkout_header' : 'Welcome %PATRON_FIRSTNAME%, to %LIBRARY%!\r\nYou checked out the following items:<hr/><ol>',
-       'checkout_line_item' : '<li>%TITLE%\r\nBarcode: %COPY_BARCODE% Due: %DUE_D%\r\n',
-       'checkout_footer' : '</ol><hr />%PINES_CODE% %TODAY%\r\nYou were helped by %STAFF_FIRSTNAME% %STAFF_LASTNAME%'
-
-/////////////////////////////////////////////////////////////////////////////////////
-/////////////////////////////////////////////////////////////////////////////////////
-};
-
-var debug_ignore_auth_failures = false;
-
-var mw = G['main_window'];
-var auth_meter_incr = 10;
-
-/////////////////////////////////////////////////////////////////////////////////////
-
-function auth_init() {
-       sdump('D_AUTH','TESTING: auth.js: ' + mw.G['main_test_variable'] + '\n');
-       sdump('D_AUTH',arg_dump(arguments));
-
-       var np = document.getElementById('name_prompt');
-               np.addEventListener("keypress",handle_keypress,false);
-               np.focus();
-       var pp = document.getElementById('password_prompt');
-               pp.addEventListener("keypress",handle_keypress,false);
-       self.addEventListener("unload",nice_shutdown,false);
-
-       G['sound'] = xp_sound_init(); snd_logon();
-       var pref = Components.classes["@mozilla.org/preferences-service;1"]
-               .getService(Components.interfaces.nsIPrefBranch);
-       if (pref) {
-               pref.setCharPref("capability.principal.codebase.p0.granted", "UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead");
-               pref.setCharPref("capability.principal.codebase.p0.id", "http://dev.gapines.org");
-       }
-}
-
-function handle_keypress(ev) {
-       if (ev.keyCode && ev.keyCode == 13) {
-               switch(this) {
-                       case document.getElementById('name_prompt') :
-                               ev.preventDefault();
-                               var pp = document.getElementById('password_prompt');
-                               pp.focus(); pp.select();
-                       break;
-                       case document.getElementById('password_prompt') :
-                               ev.preventDefault();
-                               var sb = document.getElementById('submit_button');
-                               sb.focus();
-                               authenticate();
-                       break;
-                       default:
-                       break;
-               }
-       }
-}
-
-function disable_login_prompts() {
-       sdump('D_AUTH',arg_dump(arguments));
-       disable_widgets(document,'password_prompt','name_prompt','submit_button');
-       G.sound.beep();
-}
-
-function enable_login_prompts() {
-       sdump('D_AUTH',arg_dump(arguments));
-       enable_widgets(document,'password_prompt','name_prompt','submit_button');
-       document.getElementById('password_prompt').value = '';
-       var np = document.getElementById('name_prompt');
-               np.focus(); np.select();
-       document.getElementById('auth_meter').value = 0;
-       document.getElementById('auth_meter').setAttribute('real', '0.0');
-       G.sound.beep();
-}
-
-/////////////////////////////////////////////////////////////////////////////////////
-
-function authenticate() {
-       sdump('D_AUTH',arg_dump(arguments));
-       timer_init('cat');
-       var name = document.getElementById('name_prompt').value;
-       if (name.length == 0) { enable_login_prompts(); return; }
-       // Talk to the system and authenticate the user.
-       user_async_request(
-               'open-ils.auth',
-               'open-ils.auth.authenticate.init',
-               [ name ],
-               auth_init_callback
-       );
-}
-
-function auth_init_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var auth_init;
-       try {
-               auth_init = request.getResultObject();
-               if (!auth_init) { throw('null result'); }
-       } catch(E) {
-               G.offline = true;
-               sdump('D_ERROR','Error trying to communicate with the server.  Entering OFFLINE mode.\n' + js2JSON(E) + '\n');
-               s_alert('Error trying to communicate with the server.  Entering OFFLINE mode.\n' + js2JSON(E) + '\n');
-       }
-
-       sdump( 'D_AUTH', 'D_AUTH_INIT: ' + typeof(auth_init) + ' : ' + auth_init + '\n');
-       var name = document.getElementById('name_prompt').value;
-       var pw = document.getElementById('password_prompt').value;
-       G.name = name; G.pw = pw;
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.auth',
-               'open-ils.auth.authenticate.complete',
-               [ name, hex_md5(auth_init + hex_md5(pw)) ],
-               auth_ses_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function auth_ses_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var auth_ses;
-       try {
-               auth_ses = request.getResultObject();
-               if (!auth_ses) { if (!G.offline) { throw('null result'); } }
-               if (auth_ses == 0) { throw('0 result'); }
-               if (instanceOf(auth_ses,ex)) {
-                       throw(auth_ses.err_msg());
-               }
-       } catch(E) {
-               alert('Login failed on auth_ses: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       mw.G.auth_ses = [ auth_ses ];
-       sdump( 'D_AUTH', 'D_AUTH_SES: ' + typeof(mw.G['auth_ses'][0]) + ' : ' + mw.G['auth_ses'][0] + '\n');
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       //'open-ils.actor.user.profiles.retrieve',
-       user_async_request(
-               'open-ils.actor',
-               'open-ils.actor.groups.retrieve',
-               [],
-               ap_list_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function ap_list_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       //var ap_file = get_file('ap_list');
-       var ap_list;
-       try {
-               ap_list = request.getResultObject();
-               if (!ap_list && G.offline) { 
-                       //ap_list = get_object_in_file('ap_list');
-               }
-               if (!ap_list) { throw('null result'); }
-               if (ap_list.length == 0) { throw('zero length result'); }
-       } catch(E) {
-               handle_error('Login failed on ap_list: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('ap_list',ap_list); } catch(E) { handle_error(E); }
-       mw.G.ap_list = ap_list;
-       mw.G.ap_hash = convert_object_list_to_hash( ap_list );
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.actor',
-               'open-ils.actor.user.ident_types.retrieve',
-               [],
-               cit_list_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function cit_list_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var cit_list;
-       try {
-               cit_list = request.getResultObject();
-               //if (!cit_list && G.offline) { cit_list = get_object_in_file('cit_list'); }
-               if (!cit_list) { throw('null result'); }
-               if (cit_list.length == 0) { throw('zero length result'); }
-       } catch(E) {
-               alert('Login failed on cit_list: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('cit_list',cit_list); } catch(E) { handle_error(E); }
-       mw.G.cit_list = cit_list;
-       mw.G.cit_hash = convert_object_list_to_hash( cit_list );
-       
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.actor',
-               'open-ils.actor.standings.retrieve',
-               [],
-               cst_list_callback
-       );
-
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function cst_list_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var cst_list;
-       try {
-               cst_list = request.getResultObject();
-               //if (!cst_list && G.offline) { cst_list = get_object_in_file('cst_list'); }
-               if (!cst_list) { throw('null result'); }
-               if (cst_list.length == 0) { throw('zero length result'); }
-       } catch(E) {
-               alert('Login failed on cst_list: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('cst_list',cst_list); } catch(E) { handle_error(E); }
-       mw.G.cst_list = cst_list;
-       mw.G.cst_hash = convert_object_list_to_hash( cst_list );
-       sdump('D_AUTH', 'cst_list = ' + js2JSON(cst_list) + '\n');
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.search',
-               'open-ils.search.config.copy_location.retrieve.all',
-               [],
-               acpl_list_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-
-}
-
-function acpl_list_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var acpl_list;
-       try {
-               acpl_list = request.getResultObject();
-               //if (!acpl_list && G.offline) { acpl_list = get_object_in_file('acpl_list'); }
-               if (!acpl_list) { throw('null result'); }
-               if (acpl_list.length == 0) { throw('zero length result'); }
-       } catch(E) {
-               alert('Login failed on acpl_list: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('acpl_list',acpl_list); } catch(E) { handle_error(E); }
-       mw.G.acpl_list = acpl_list;
-       mw.G.acpl_hash = convert_object_list_to_hash( acpl_list );
-       sdump('D_AUTH', 'acpl_list = ' + js2JSON(acpl_list) + '\n');
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.search',
-               'open-ils.search.config.copy_status.retrieve.all',
-               [],
-               ccs_list_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function ccs_list_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var ccs_list;
-       try {
-               ccs_list = request.getResultObject();
-               //if (!ccs_list && G.offline) { ccs_list = get_object_in_file('ccs_list'); }
-               if (!ccs_list) { throw('null result'); }
-               if (ccs_list.length == 0) { throw('zero length result'); }
-       } catch(E) {
-               alert('Login failed on ccs_list: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('ccs_list',ccs_list); } catch(E) { handle_error(E); }
-       mw.G.ccs_list = ccs_list;
-       mw.G.ccs_hash = convert_object_list_to_hash( ccs_list );
-       sdump('D_AUTH', 'ccs_list = ' + js2JSON(ccs_list) + '\n');
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.search',
-               'open-ils.search.actor.user.session',
-               [ mw.G['auth_ses'][0] ],
-               user_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function user_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var user;
-       var user_ou;
-       try {
-               user = request.getResultObject();
-               if (!user && G.offline) { 
-                       //user = new au(); 
-                       //user.home_ou( get_object_in_file('user_ou') );
-               }
-               if (!user) { throw('null result'); }
-               if (typeof(user) != 'object') { throw('result not an object' + user); }
-       } catch(E) {
-               alert('Login failed on user: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('user_ou',user.home_ou()); } catch(E) { handle_error(E); }
-       mw.G.user = user;
-       mw.G.user_ou = user.home_ou();
-       sdump('D_AUTH', "user: " + js2JSON(mw.G['user']) + '\n');
-       sdump('D_AUTH', "user_ou: " + js2JSON(mw.G['user_ou']) + '\n');
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.actor',
-               'open-ils.actor.org_tree.retrieve',
-               [],
-               org_tree_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function org_tree_callback(request) {
-       var org_tree;
-       try {
-               org_tree = request.getResultObject();
-               //if (!org_tree && G.offline) { org_tree = get_object_in_file('org_tree'); }
-               if (!org_tree) { throw('null result'); }
-               if (typeof(org_tree) != 'object') { throw('result not an object' + org_tree); }
-       } catch(E) {
-               alert('Login failed on org_tree: ' + js2JSON(E)); enable_login_prompts(); return;
-       }
-
-       //mw.G.org_tree = globalOrgTree;
-       //try { set_object_in_file('org_tree',org_tree); } catch(E) { handle_error(E); }
-       mw.G.org_tree = org_tree;
-       mw.G.org_tree_hash = convert_object_list_to_hash( flatten_ou_branch( mw.G.org_tree ) );
-       mw.G.user_ou = find_ou( mw.G.org_tree, mw.G.user_ou );
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       /*user_async_request(
-               'open-ils.actor',
-               'open-ils.actor.org_types.retrieve',
-               [ mw.G.auth_ses[0] ],
-               org_type_callback
-       );*/
-       org_type_callback();
-}
-
-function org_type_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var aout_list = globalOrgTypes;
-       /*try {
-               aout_list = request.getResultObject();
-               if (!aout_list) { throw('null result'); }
-               if (typeof(aout_list) != 'object') { throw('result not an object' + aout_list); }
-               if (aout_list.length == 0) { throw('empty aout_list'); }
-       } catch(E) {
-               alert('Login failed on aout_list: ' + js2JSON(E)); enable_login_prompts(); return;
-       }*/
-       mw.G.aout_list = aout_list;
-       mw.G.aout_hash = convert_object_list_to_hash( aout_list );
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.actor',
-               'open-ils.actor.org_unit.full_path.retrieve',
-               [ mw.G.auth_ses[0] ],
-               my_orgs_callback
-       );
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function my_orgs_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var my_orgs;
-       try {
-               my_orgs = request.getResultObject();
-               //if (!my_orgs && G.offline) { my_orgs = get_object_in_file('my_orgs'); }
-               if (!my_orgs) { throw('null result'); }
-               if (typeof(my_orgs) != 'object') { throw('result not an object' + my_orgs); }
-               if (my_orgs.length == 0) { throw('empty my_orgs'); }
-       } catch(E) {
-               alert('Login failed on my_orgs: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-
-       //try { set_object_in_file('my_orgs',my_orgs); } catch(E) { handle_error(E); }
-       mw.G.my_orgs = my_orgs;
-       mw.G.my_orgs_hash = convert_object_list_to_hash( my_orgs );
-       sdump('D_AUTH','my_orgs = ' + js2JSON(my_orgs) + '\n');
-       mw.G.acpl_my_orgs = filter_list( 
-               mw.G.acpl_list, 
-               function (obj) {
-                       if ( typeof obj != 'object' ) return null;
-                       if ( mw.G.my_orgs_hash[ obj.owning_lib() ] ) return obj;
-               }
-       );
-       mw.G.acpl_my_orgs_hash = convert_object_list_to_hash( mw.G.acpl_my_orgs );
-       //sdump('D_AUTH', 'my_orgs.length = ' + mw.G.my_orgs.length + '   other_orgs.length = ' + mw.G.other_orgs.length + '\n');
-
-       /////////////////////////////////////////////////////////////////////////////////////////////////////
-       user_async_request(
-               'open-ils.circ',
-               'open-ils.circ.stat_cat.actor.retrieve.all',
-               [ mw.G.auth_ses[0], mw.G.user_ou.id() ],
-               my_actsc_list_callback
-       );
-
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-}
-
-function my_actsc_list_callback(request) {
-       sdump('D_AUTH',arg_dump(arguments));
-       var actsc_list;
-       try {
-               actsc_list = request.getResultObject();
-               //if (!actsc_list && G.offline) { actsc_list = get_object_in_file('actsc_list'); }
-               if (!actsc_list) { throw('null result'); }
-               //if (actsc_list.length == 0) { throw('zero length result'); }
-       } catch(E) {
-               alert('Login failed on actsc_list: ' + js2JSON(E)); 
-               if (!debug_ignore_auth_failures) {
-                       enable_login_prompts(); return;
-               }
-       }
-       //try { set_object_in_file('actsc_list',actsc_list); } catch(E) { handle_error(E); }
-       mw.G.actsc_list = actsc_list;
-       mw.G.actsc_hash = convert_object_list_to_hash( actsc_list );
-       sdump('D_AUTH', 'actsc_list = ' + js2JSON(actsc_list) + '\n');
-
-       incr_progressmeter(document,'auth_meter',auth_meter_incr);
-
-       spawn_main();
-
-       mw.minimize();
-
-}
-
-
-function logoff() {
-       sdump('D_AUTH',arg_dump(arguments));
-       mw.G['auth_ses'] = '';
-       close_all_windows();
-       enable_login_prompts();
-       incr_progressmeter(document,'auth_meter',-100);
-       snd_logoff();
-}
-
-function nice_shutdown() {
-       sdump('D_AUTH',arg_dump(arguments));
-       if (ses) { logoff(); ses.disconnect(); }
-       snd_exit;
-       close_all_windows();
-       window.close();
-}
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/auth/auth.xul b/Evergreen/staff_client/chrome/content/evergreen/auth/auth.xul
deleted file mode 100644 (file)
index 736185a..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Open-ILS Staff Client -->
-<!-- Screen: Auth/Login -->
-
-<!-- Modified by Jason for Evergreen -->
-
-<!-- Localization -->
-<!DOCTYPE window SYSTEM "chrome://evergreen/locale/auth.dtd">
-
-<window id="auth_win" title="&auth.title;" 
-       orient="vertical" style="overflow: auto"  persist="width height"
-       onload="mw.OpenILS_init({ 'w' : window, 'd' : document, 'app' : 'Auth' });"
-       onunload="mw.OpenILS_exit({ 'w' : window, 'd' : document, 'app' : 'Auth' });"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Stylesheets -->
-       <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-       <?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-       <?xml-stylesheet href="chrome://evergreen/skin/auth.css" type="text/css"?>
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/Open-ILS/OpenILS_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/auth/auth_overlay.xul"?>
-
-       <!-- More Localization -->
-       <stringbundleset id="string_bundles"/>
-
-       <!-- The logic for this app -->
-       <OpenILS id="OpenILS_js" />
-
-       <!-- The logic for this screen -->
-       <!--<Auth id="auth_js" />-->
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="auth_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="auth_keys" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <box id="auth_main" />
-
-</window>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/auth/auth_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/auth/auth_overlay.xul
deleted file mode 100644 (file)
index b949fe6..0000000
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/auth.dtd">
-<overlay id="auth_overlay" 
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<!-- Modified by Jason for Evergreen -->
-
-<!-- The javascript logic for the staff client -->
-<!--
-<Auth id="auth_js">
-       <script src="auth.js" />
-</Auth>
--->
-
-<!-- Some logic abstracted a bit.  Sort of like an API list -->
-<commandset id="auth_cmds">
-       <command id="cmd_login" oncommand="
-               disable_login_prompts();
-               authenticate();
-       "/>
-       <command id="cmd_logoff" oncommand="logoff();"/>
-       <command id="cmd_close_window" oncommand="nice_shutdown();"/>
-</commandset>
-
-<!-- The top level widget for the staff client -->
-<box id="auth_main" flex="1" orient="vertical">
-       <deck id="main_deck">
-               <groupbox id="main_groupbox" flex="1"/>
-               <iframe id="print_frame" flex="1"/>
-               <iframe id="scratch_pad" flex="1"/>
-       </deck>
-       <button label="Console" accesskey="C" oncommand="try {mw.spawn_javascript_console(mw.document,'new_window','',{}); } catch(E) { alert(E); }"/>
-       <button label="FConsole" accesskey="F" oncommand="try {mw.spawn_filter_console(mw.document,'new_window','',{}); } catch(E) { alert(E); }"/>
-</box>
-
-<groupbox id="main_groupbox" flex="1">
-       <caption id="main_caption" label="&auth.login_header;"/>
-       <label value="&auth.version;"/>
-       <label value="Development Version"/>
-       <label value=" "/>
-       <grid>
-               <columns>
-                       <column />
-                       <column />
-               </columns>
-               <rows>
-                       <row>
-                               <label value="&auth.name_prompt;" control="name_prompt" accesskey="&auth.name_prompt.key;"/>
-                               <textbox id="name_prompt" value=""/>
-                       </row>
-                       <row>
-                               <label value="&auth.password_prompt;" control="password_prompt" accesskey="&auth.password_prompt.key;"/>
-                               <textbox id="password_prompt" value="" type="password"/>
-                       </row>
-                       <row>
-                               <label/>
-                               <hbox>
-                               <button id="submit_button" label="&auth.submit_prompt;" accesskey="&auth.submit_prompt.key;" command="cmd_login"/>
-                               <button label="&auth.logoff_prompt;" accesskey="&auth.logoff_prompt.key;" command="cmd_logoff"/>
-                               </hbox>
-                       </row>
-                       <row>
-                               <label/>
-                               <label/>
-                       </row>
-                       <row>
-                               <label/>
-                               <button label="&auth.quit_prompt;" accesskey="&auth.quit_prompt.key;" command="cmd_close_window"/>
-                       </row>
-               </rows>
-       </grid>
-       <progressmeter id="auth_meter" mode="normal" value="0"/>
-</groupbox>
-
-<!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-<keyset id="auth_keys">
-       <key id="auth-login-key" modifiers="accel" key="S" command="cmd_login"/>
-       <key id="auth-logoff-key" modifiers="accel" key="L" command="cmd_logoff"/>
-       <key id="auth-close-key" modifiers="accel" key="Q" command="cmd_close_window"/>
-</keyset>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul
deleted file mode 100644 (file)
index c545e1f..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's Search Result Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE window SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<window id="brief_win" title="Record Details" 
-       orient="vertical" style="overflow: scroll" width="800" height="500"
-       onload="my_init();"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-
-       <script>
-       <![CDATA[
-               var myPackageDir = "evergreen";
-
-               function my_init() {
-
-                       var mods = user_request(
-                               'open-ils.search',
-                               'open-ils.search.biblio.record.mods_slim.retrieve',
-                               [ find_this_id ]
-                       )[0];
-
-                       if (mods.title()) document.getElementById('title').setAttribute('value',mods.title());
-                       if (mods.author()) document.getElementById('author').setAttribute('value',mods.author());
-                       if (mods.edition()) document.getElementById('edition').setAttribute('value',mods.edition());
-                       if (mods.pubdate()) document.getElementById('pubdate').setAttribute('value',mods.pubdate());
-                       if (mods.tcn()) document.getElementById('tcn').setAttribute('value',mods.tcn());
-
-                       user_request(
-                               'open-ils.cat',
-                               'open-ils.cat.biblio.record.metadata.retrieve',
-                               [ find_this_id ],
-                               function (req) {
-                                       var meta = req.getResultObject()[0];
-                                       document.getElementById('creator').setAttribute('value',meta.creator());
-                                       document.getElementById('editor').setAttribute('value',meta.editor());
-                                       document.getElementById('edit_date').setAttribute('value',formatted_date(meta.edit_date(),"%D"));
-                               }
-                       );
-               }
-
-       ]]>
-       </script>
-
-       <groupbox flex="1">
-               <caption label="Record Details"/>
-               <hbox flex="1">
-                       <label style="font-weight: bold;" value="Title:" /><label id="title" /> 
-                       <label style="font-weight: bold;" value="Author:" /><label id="author" />
-                       <label style="font-weight: bold;" value="Edition:" /> <label id="edition" />
-                       <label style="font-weight: bold;" value="Pub Date:" /> <label id="pubdate" />
-               </hbox>
-               <hbox flex="1">
-                       <label style="font-weight: bold;" value="TCN:" /> <label id="tcn" />
-                       <label style="font-weight: bold;" value="Created By:" /> <label id="creator" />
-                       <label style="font-weight: bold;" value="Last Edited By:" /> <label id="editor" />
-                       <label style="font-weight: bold;" value="Last Edited On:" /> <label id="edit_date" />
-               </hbox>
-       </groupbox>
-
-</window>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.js b/Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.js
deleted file mode 100644 (file)
index 4a49d74..0000000
+++ /dev/null
@@ -1,709 +0,0 @@
-// find_this_id = document id
-
-var org_shortname2id = {};
-var my_treerow;
-var browse_meter_per = 0;
-var orgs_with_copies = [];
-var orgs_with_copies_hash = {};
-
-function my_init() {
-       timer_init('cat');
-       mw.sdump('D_CAT','TESTING: browse_list.js: ' + mw.G['main_test_variable'] + '\n');
-       var tc = document.getElementById('browse_list_tree_children');
-       build_tree_branch(tc,mw.G['org_tree'],true);
-       my_treerow = document.getElementById( 'org_unit_' + mw.G.user_ou.id() ).firstChild;
-       document.getElementById('browse_meter').value = 0;
-       document.getElementById('browse_meter').setAttribute('real', '0.0');
-       gather_copies();
-       //populate_tree();
-}
-
-function refresh_browse_list() {
-       mw.sdump('D_CAT','=-=-=-=-=-=-=-=-=\n\n\nrefresh_browse_list()\n');
-       setTimeout(
-               function() {
-                       // Prune tree
-                       var nl = document.getElementsByTagName('treeitem');
-                       for (var i = 0; i < nl.length; i++) {
-                               var v_treeitem = nl[i];
-                               if (v_treeitem.getAttribute('object_type') == 'volume') {
-                                       var org_treechildren = v_treeitem.parentNode;
-                                       var org_treeitem = org_treechildren.parentNode;
-                                       org_treeitem.removeChild(org_treechildren);
-                                       var org_treerow = org_treeitem.firstChild;
-                                       org_treerow.childNodes[1].setAttribute('label','0');
-                                       org_treerow.childNodes[2].setAttribute('label','0');
-                               }
-                       }
-                       document.getElementById('browse_meter').value = 0;
-                       document.getElementById('browse_meter').setAttribute('real', '0.0');
-                       gather_copies();
-               }, 0
-       );
-}
-
-function button_toggle_my_libraries(ev) {
-       // label = Hide My Libraries
-       // alt_label = Show My Libraries
-       var target = document.getElementById('browse_list_button1');
-       if (!target) { mw.sdump('D_CAT','eh?\n'); return; }
-       swap_attributes('browse_list_button1','label','alt_label');
-       var toggle = cycle_attribute( target,'toggle', [ '1', '2' ] );
-       for (var i in mw.G.my_orgs) {
-               var lib = mw.G.my_orgs[i];
-               var item = document.getElementById('org_unit_'+lib.id());
-               if (item) {
-                       if (toggle == '2') {
-                               hide_branch(item);
-                       } else {
-                               unhide_branch(item);
-                       }
-               }
-       }
-}
-
-function button_toggle_libraries(ev) {
-       // label = Show Other Libraries With Copies
-       // alt_label = Show Just My Libraries
-       var target = document.getElementById('browse_list_button2');
-       if (!target) { mw.sdump('D_CAT','eh?\n'); return; }
-       swap_attributes('browse_list_button2','label','alt_label');
-       var toggle = cycle_attribute( target,'toggle',['1','2'] );
-       if (toggle == '1') {
-               mw.sdump('D_CAT','Showing just my libraries...\n');
-               /*hide_branch( document.getElementById('org_unit_PINES') );
-               for (var i = 0; i < mw.G.my_orgs.length; i++) {
-                       unhide_branch(
-                               document.getElementById( 'org_unit_' + mw.G.my_orgs[i].id() )
-                       );
-               }*/
-               var nl = document.getElementsByTagName('treeitem');
-               for (var i = 0; i < nl.length; i++) {
-                       var item = nl[i];
-                       if (item.getAttribute('id').substr(0,9) != 'org_unit_') continue;
-                       if (mw.G.my_orgs_hash[ item.getAttribute('myid') ]) {
-                               //item.setAttribute('hidden','false');
-                               unhide_branch(item);
-                       } else {
-                               //item.setAttribute('hidden','true');
-                               hide_branch(item);
-                       }
-               }
-       } else {
-               mw.sdump('D_CAT','Showing other libraries with copies...\n');
-               var nl = document.getElementsByTagName('treeitem');
-               for (var i = 0; i < nl.length; i++) {
-                       var item = nl[i];
-                       if (item.getAttribute('copies') == 'true') {
-                               //item.setAttribute('hidden','false');
-                               //mw.sdump('D_CAT','\tunhiding ' + item.getAttribute('id') + '\n');
-                               unhide_branch(item);
-                       } else {
-                               //item.setAttribute('hidden','true');
-                               //mw.sdump('D_CAT','\thiding ' + item.getAttribute('id') + '\n');
-                               //hide_branch(item);
-                       }
-               }
-
-       }
-}
-
-function unhide_branch(item,do_open,do_copies) {
-       if (item.getAttribute('id') == 'org_unit_PINES') { return; }
-       //mw.sdump('D_CAT','Unhiding ' + item.getAttribute('id') + '\n');
-       item.setAttribute('hidden','false');
-       if (do_open) {
-               item.setAttribute('open','true');
-       }
-       if (do_copies) {
-               item.setAttribute('copies','true');
-       }
-       if (item.parentNode && item.parentNode.setAttribute) {
-               var id = item.parentNode.getAttribute('id');
-               if (id.substr(0,7) != 'browse_' && id != 'org_unit_PINES') {
-                       unhide_branch(item.parentNode,do_open,do_copies);
-               }
-       }
-}
-
-function hide_branch(item,do_open,do_copies) {
-       if (item.getAttribute('id') == 'org_unit_PINES') { return; }
-       //mw.sdump('D_CAT','Hiding ' + item.getAttribute('id') + '\n');
-       item.setAttribute('hidden','true');
-       if (do_open) {
-               item.setAttribute('open','false');
-       }
-       if (do_copies) {
-               item.setAttribute('copies','true');
-       }
-       if (item.parentNode && item.parentNode.setAttribute) {
-               var id = item.parentNode.getAttribute('id');
-               if (id.substr(0,7) != 'browse_' && id != 'org_unit_PINES') {
-                       hide_branch(item.parentNode,do_open,do_copies);
-               }
-       }
-}
-
-function gather_copies() {
-       // loop the libs
-       mw.sdump('D_CAT','Hello : ' + timer_elapsed('world') + '\n');
-/*     user_async_request(
-                       'open-ils.cat',
-                       'open-ils.cat.asset.copy_tree.global.retrieve',
-                       [ mw.G['auth_ses'][0], find_this_id  ],
-                       gather_copies_callback
-               );
-*/
-       var orgs_with_copies = [];
-       try {
-               orgs_with_copies = user_request(
-                       'open-ils.cat',
-                       'open-ils.cat.actor.org_unit.retrieve_by_title',
-                       [ find_this_id ]
-               )[0];
-       } catch(E) {
-               handle_error(E);
-       }
-       for (var i = 0; i < orgs_with_copies.length; i++) {
-               orgs_with_copies_hash[ orgs_with_copies[i] ] = true;
-       }
-       var bucket = new Array();
-       for (var i = 0; i < mw.G.my_orgs.length; i++ ) {
-               //if (find_id_object_in_list( mw.G.aout_list, mw.G.my_orgs[i].ou_type() ).can_have_vols() == '0')
-               if ( mw.G.aout_list[ mw.G.my_orgs[i].ou_type() ].can_have_vols() == '0')
-                       continue;
-               if ( ! orgs_with_copies_hash[ mw.G.my_orgs[i].id() ] ) continue;
-               bucket.push( mw.G.my_orgs[i].id() );
-       }
-       document.getElementById('browse_libs').setAttribute('value','Retrieving my copies...');
-       user_async_request(
-               'open-ils.cat',
-               'open-ils.cat.asset.copy_tree.retrieve',
-               [ mw.G['auth_ses'][0], find_this_id, bucket ],
-               function (request) {
-                       gather_copies_callback(request);
-                       document.getElementById('browse_libs').setAttribute('value','Retrieving copies from other libraries...');
-                       gather_other_copies();
-               }
-       );
-       mw.sdump('D_CAT','((((((((((((((((( Count = ' + counter_incr('world') + '\n');
-}
-
-function gather_other_copies() {
-       var w_s = 10; var c_s = 0;
-       var bucket = new Array();
-
-       var nl = document.getElementsByTagName('treeitem');
-       for (var i = 0; i < nl.length; i++) {
-               var item = nl[i];
-               if (item.getAttribute('can_have_vols') == '0') continue;
-               //if ( find_id_object_in_list( mw.G.my_orgs, item.getAttribute('myid') ) ) { continue; }
-               if ( mw.G.my_orgs_hash[ item.getAttribute('myid') ] ) { continue; }
-               if ( ! orgs_with_copies_hash[ item.getAttribute('myid') ] ) continue;
-               bucket.push( item.getAttribute('myid') );
-               if (++c_s >= w_s) {
-                       user_async_request(
-                               'open-ils.cat',
-                               'open-ils.cat.asset.copy_tree.retrieve',
-                               [ mw.G['auth_ses'][0], find_this_id, bucket ],
-                               gather_copies_callback
-                       );
-                       mw.sdump('D_CAT','((((((((((((((((( Count = ' + counter_incr('world') + '\n');
-                       bucket = new Array();
-                       c_s = 0;
-               }
-       }
-       if (bucket.length > 0) {
-               user_async_request(
-                       'open-ils.cat',
-                       'open-ils.cat.asset.copy_tree.retrieve',
-                       [ mw.G['auth_ses'][0], find_this_id, bucket ],
-                       gather_copies_callback
-               );
-               mw.sdump('D_CAT','((((((((((((((((( Count = ' + counter_incr('world') + '\n');
-       }
-       browse_meter_per = 100 / counter_peek('world');
-       mw.sdump('D_CAT',timer_elapsed('world') + ' : World : ' + timer_elapsed('gather') + '\n');
-}
-
-function find_my_treerow_index() {
-       var nl = document.getElementById('browse_list_tree').getElementsByTagName('treerow');
-       var count = 0;
-       //mw.sdump('D_CAT','find_my_treerow:  count = ' + count + '  nl.length = ' + nl.length + '\n');
-       for (var i = 0; i < nl.length; i++) {
-               var row = nl[i];
-               var item = row.parentNode;
-               if (item.getAttribute('id') == 'org_unit_' + mw.G.user_ou.id() ) {
-                       return count;
-               }
-               var open_attr = item.getAttribute('open');
-               var hidden_prop = item.hidden;
-               //mw.sdump('D_CAT','id = ' + item.getAttribute('id') + '   hidden_attr = ' + hidden_attr + '   hidden_prop = ' + hidden_prop + '\n');
-               if (hidden_prop.toString() == 'false' && open_attr.toString() == 'true') {
-                       count++;
-               }
-       }
-       return 0;
-}
-
-function gather_copies_callback(request) {
-       mw.sdump('D_CAT','gather_copies_callback : ' + timer_elapsed('gather') + ' : ' + ' count = ' + counter_incr('gather') + '\n');
-       var result = request.getResultObject();
-       var n_volumes = 0; var n_copies = 0; var flag = false;
-       //mw.sdump('D_CAT','copybrowser result = ' + js2JSON(result) + '\n=-=-=\n');
-       for (var y in result) {
-               if (result[y] && (typeof(result[y])=='object')) {
-                       var volume = result[y]; n_volumes++;
-                       //mw.sdump('D_CAT','\nvolume = ' + js2JSON(volume) + '\n');
-                       mw.sdump('D_CAT',' volume id = ' + volume.id() + '\n');
-                       var lib = find_ou( mw.G.org_tree, volume.owning_lib() );
-                       mw.sdump('D_CAT','lib = ' + js2JSON(lib) + '\n');
-                       if ( lib.id() == mw.G.user_ou.id() ) { flag = true; }
-                       var callnumber = volume.label();
-                       var copies = volume.copies();
-                       //mw.sdump('D_CAT','\tcopies = ' + js2JSON(copies) + '\n');
-                       var item = document.getElementById('org_unit_'+lib.id());
-                       if (!item) { mw.sdump('D_CAT','skipping\n'); continue; }
-
-                       var item_row = item.firstChild;
-                       var volumes_treecell;
-                       if (item_row.childNodes.length == 1) {
-                               volumes_treecell = document.createElement('treecell');
-                               volumes_treecell.setAttribute('label','0');
-                               item_row.appendChild(volumes_treecell);
-                       } else {
-                               volumes_treecell = item_row.childNodes[1];
-                       }
-                       volumes_treecell.setAttribute(
-                               'label',
-                               parseInt(volumes_treecell.getAttribute('label')) + 1
-                       );
-
-                       var copies_treecell;
-                       if (item_row.childNodes.length < 3) {
-                               copies_treecell = document.createElement('treecell');
-                               copies_treecell.setAttribute('label','0');
-                               item_row.appendChild(copies_treecell);
-                       } else {
-                               copies_treecell = item_row.childNodes[2];
-                       }
-                       copies_treecell.setAttribute(
-                               'label',
-                               parseInt(copies_treecell.getAttribute('label')) + copies.length
-                       );
-
-
-                       var cn_treechildren;
-                       var nl = item.getElementsByTagName('treechildren');
-                       //unhide_branch(item,false,true);
-                       item.setAttribute('copies',true);
-                       if (nl.length == 0) {
-                               cn_treechildren = document.createElement('treechildren');
-                               item.appendChild(cn_treechildren);
-                       } else {
-                               cn_treechildren = nl[0];
-                       }
-
-                       var cn_treeitem = document.createElement('treeitem');
-                               cn_treeitem.setAttribute('container','true');
-                               cn_treeitem.setAttribute('open','true');
-                               cn_treeitem.setAttribute('object_type','volume');
-                               cn_treeitem.setAttribute('volume_id',volume.id());
-                               cn_treeitem.setAttribute('callnumber',volume.label());
-                               cn_treeitem.setAttribute('ou_id',lib.id());
-
-                       cn_treechildren.appendChild(cn_treeitem);
-
-                       var cn_treerow = document.createElement('treerow');
-                       cn_treeitem.appendChild(cn_treerow);
-
-                       var cn_treecell = document.createElement('treecell');
-                               cn_treecell.setAttribute('label',callnumber);
-                       cn_treerow.appendChild(cn_treecell);
-
-                       var treechildren = document.createElement('treechildren');
-                       cn_treeitem.appendChild(treechildren);
-                       //mw.sdump('D_CAT', 'org_unit_'+lib+' item = '+item.tagName+'\n');
-                       for (var j = 0; j < copies.length; j++) {
-                               var copy = copies[j]; n_copies++;
-                               //mw.sdump('D_CAT','barcode: ' + copy.barcode() + '\n');
-
-                               var treeitem = document.createElement('treeitem');
-                                       treeitem.setAttribute('open','true');
-                                       treeitem.setAttribute('container','true');
-                                       treeitem.setAttribute('class','barcode_row');
-                                       treeitem.setAttribute('object_type','copy');
-                                       treeitem.setAttribute('ou_shortname',lib.shortname());
-                                       treeitem.setAttribute('ou_id',lib.id());
-                                       treeitem.setAttribute('callnumber',callnumber);
-                                       treeitem.setAttribute('barcode',copy.barcode());
-                                       treeitem.setAttribute('copy_id',copy.id());
-                                       treeitem.setAttribute('volume_id',volume.id());
-                                       //treeitem.setAttribute('copy',js2JSON(copy));
-                               treechildren.appendChild(treeitem);
-
-                               var treerow = document.createElement('treerow');
-                               treeitem.appendChild(treerow);
-
-                               var list = [ 
-                                       copy.barcode() ,
-                                       '',
-                                       '',
-                                       lib.shortname() ,
-                                       callnumber ,
-                                       copy.copy_number() ,
-                                       copy.location(), //mw.G.acpl_hash[ copy.location() ].name() ,
-                                       copy.circ_lib(), //mw.G.org_tree_hash[ copy.circ_lib() ].shortname(),
-                                       yesno( copy.circulate() ) ,
-                                       yesno( copy.ref() ) ,
-                                       yesno( copy.opac_visible() ) ,
-                                       copy.circ_as_type() ,
-                                       copy.circ_modifier() ,
-                                       copy.loan_duration() ,
-                                       copy.fine_level() ,
-                                       copy.create_date() ,
-                                       copy.creator() ,
-                                       copy.edit_date() ,
-                                       copy.editor() ,
-                                       yesno( copy.deposit() ),
-                                       copy.deposit_amount() ,
-                                       copy.price() ,
-                                       mw.G.ccs_hash[ copy.status() ].name()
-                               ];
-
-                               for (var i = 0; i < list.length; i++ ) {
-                                       var treecell = document.createElement('treecell');
-                                               treecell.setAttribute('label',list[i]);
-                                       treerow.appendChild(treecell);
-                               }
-                                               
-                       }
-               } else {
-                       mw.sdump('D_CAT','gather_copies problem: ' + result[y] + '\n');
-                       //throw(result[0]);
-               }
-       }
-       var tree = document.getElementById('browse_list_tree');
-       if (tree.currentIndex != -1) {
-               //mw.sdump('D_CAT','currentIndex != -1 = ' + tree.currentIndex + '\n');
-               //tree.treeBoxObject.scrollToRow( tree.currentIndex );
-               tree.treeBoxObject.ensureRowIsVisible( tree.currentIndex );
-       } else if (flag) {
-               //mw.sdump('D_CAT','currentIndex == -1\n');
-               var find = find_my_treerow_index();
-               mw.sdump('D_CAT','find = ' + find + ' n_volumes = ' + n_volumes + ' n_copies = ' + n_copies + '\n');
-               //alert('find = ' + find + ' n_volumes = ' + n_volumes + ' n_copies = ' + n_copies + '\n');
-               if (find > 0) { 
-                       find = find + n_volumes + n_copies;
-                       tree.view.selection.select( find ); 
-               }
-               //tree.treeBoxObject.ensureRowIsVisible( find );
-       }
-       var meter = document.getElementById('browse_meter');
-       var real = parseFloat( meter.getAttribute('real') ) + browse_meter_per;
-       meter.setAttribute('real',real);
-       meter.value = Math.ceil( real );
-       if ( counter_peek('gather') == counter_peek('world') ) {
-               document.getElementById('browse_libs').setAttribute('value','Finished');
-               document.getElementById('browse_libs').setAttribute('hidden','true');
-               meter.value = 100;
-               meter.setAttribute('hidden','true');
-       }
-       mw.sdump('D_CAT','gather callback   done : ' + timer_elapsed('gather') + '\n');
-}
-
-
-function build_tree_branch(treechildren,org,hide) {
-       var id = org.id();
-       var name = org.name();
-       var shortname = org.shortname(); org_shortname2id[shortname] = id;
-       var children = org.children();
-       var flag = mw.G.aout_hash[ org.ou_type() ].can_have_vols() == '1';
-       var item = make_treeitem('org_unit_' + id, name, flag);
-       item.setAttribute('hidden',hide);
-       item.setAttribute('ou_id',org.id());
-       //if ( find_id_object_in_list( mw.G.my_orgs, id ) ) { 
-       if ( mw.G.my_orgs_hash[ id ] ) {
-               item.setAttribute('open','true'); 
-               item.setAttribute('hidden','false');
-               item.setAttribute('myorg','true');
-       }
-       item.setAttribute( 
-               'can_have_vols', 
-               //find_id_object_in_list( mw.G.aout_list, org.ou_type() ).can_have_vols() 
-               mw.G.aout_hash[ org.ou_type() ].can_have_vols()
-       );
-       item.setAttribute( 'myid', org.id() );
-       if (children && (children.length > 0)) {
-               var n_treechildren = document.createElement('treechildren');
-               for (var i in children) {
-                       var child = children[i];
-                       build_tree_branch(n_treechildren, child, true);
-               }
-               item.appendChild(n_treechildren);
-       }
-       treechildren.appendChild(item);
-}
-
-function make_treeitem(id,name,flag) {
-       var treeitem = document.createElement('treeitem');
-               treeitem.setAttribute('id',id);
-               treeitem.setAttribute('container','true');
-       var treerow = make_treerow(name,flag);
-               treeitem.appendChild(treerow);
-               treeitem.setAttribute('object_type','org_unit');
-       return treeitem;
-}
-
-function make_treerow(name,flag) {
-       var treerow = document.createElement('treerow');
-       var treecell = document.createElement('treecell');
-               treecell.setAttribute('label',name);
-       treerow.appendChild(treecell);
-       treecell = document.createElement('treecell');
-               if (flag) treecell.setAttribute('label',0);
-       treerow.appendChild(treecell);
-       treecell = document.createElement('treecell');
-               if (flag) treecell.setAttribute('label',0);
-       treerow.appendChild(treecell);
-
-       return treerow;
-}
-
-function get_selected_rows_by_object_type(tree,object_type) {
-       var items = get_list_from_tree_selection(tree);
-       var command = "filter_list(items, function (obj) { return obj.getAttribute('object_type') == '" + object_type + "'; } );";
-       return eval(command);
-}
-
-function build_CopyBrowser_Context(ev) {
-       mw.sdump('D_CAT','build_CopyBrowser_Context: ev.target.tagName = ' + ev.target.tagName + '\n');
-       mw.sdump('D_CAT','this = ' + this.tagName + '\n');
-
-       var popup = document.getElementById('browse_menu');
-       empty_widget(popup);
-
-       var volume_flag = 0; var copy_flag = 0; var library_flag = 0;
-
-       var hitlist = document.getElementById('browse_list_tree');
-       var start = new Object(); var end = new Object();
-       var numRanges = hitlist.view.selection.getRangeCount();
-       for (var t=0; t<numRanges; t++){
-               hitlist.view.selection.getRangeAt(t,start,end);
-               for (var v=start.value; v<=end.value; v++){
-                       var i = hitlist.contentView.getItemAtIndex(v);
-                       //mw.sdump('D_CAT',i + ':' + i.firstChild.childNodes.length + '\n');
-                       switch( i.getAttribute('object_type') ) {
-                               case 'volume' : volume_flag++; break;
-                               case 'copy' : copy_flag++; break;
-                               case 'org_unit' : if (i.getAttribute('can_have_vols') == '1') library_flag++; break;
-                       }
-               }
-       }
-       mw.sdump('D_CAT','volume_flag = ' + volume_flag + ' copy_flag = ' + copy_flag + ' library_flag = ' + library_flag + '\n');
-       if (library_flag > 0) {
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       menuitem.setAttribute('label','Add Volumes');
-                       menuitem.setAttribute('command','cmd_volume_add');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-       }
-       if (volume_flag == 1) {
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       menuitem.setAttribute('label','Mark Volume as Copy Transfer Destination');
-                       menuitem.setAttribute('oncommand','mark_volume("browse_list_tree");');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-       }
-       if (volume_flag > 0) {
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       if (volume_flag > 1) {
-                               menuitem.setAttribute('label','Edit Volumes');
-                       } else {
-                               menuitem.setAttribute('label','Edit Volume');
-                       }
-                       menuitem.setAttribute('command','cmd_volume_edit');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-               menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       menuitem.setAttribute('label','Add Copies');
-                       menuitem.setAttribute('command','cmd_copy_add');
-               menuitem = document.createElement('menuitem');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-       }
-       if (copy_flag > 0) {
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       if (copy_flag > 1) {
-                               menuitem.setAttribute('label','Add Copies to Bucket');
-                       } else {
-                               menuitem.setAttribute('label','Add Copy to Bucket');
-                       }
-                       menuitem.setAttribute('oncommand','add_to_bucket("browse_list_tree");');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       if (copy_flag > 1) {
-                               menuitem.setAttribute('label','Edit Copies');
-                       } else {
-                               menuitem.setAttribute('label','Edit Copy');
-                       }
-                       menuitem.setAttribute('command','cmd_copy_edit');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-       }
-       if (volume_flag > 0) {
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       if (volume_flag > 1) {
-                               menuitem.setAttribute('label','Delete Volumes');
-                       } else {
-                               menuitem.setAttribute('label','Delete Volume');
-                       }
-                       menuitem.setAttribute('command','cmd_volume_delete');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-
-       }
-       if (copy_flag > 0) {
-               var menuitem = document.createElement('menuitem');
-               popup.appendChild(menuitem);
-                       if (copy_flag > 1) {
-                               menuitem.setAttribute('label','Delete Copies');
-                       } else {
-                               menuitem.setAttribute('label','Delete Copy');
-                       }
-                       menuitem.setAttribute('command','cmd_copy_delete');
-               popup.appendChild( document.createElement( 'menuseparator' ) );
-       }
-
-       var menuitem = document.createElement('menuitem');
-       popup.appendChild(menuitem);
-               menuitem.setAttribute('label','Refresh Listing');
-               menuitem.setAttribute('command','cmd_refresh');
-}
-
-function volume_add(tab,params) {
-       mw.sdump('D_CAT','trying to volume_add()\n');
-       params['shortcut'] = 'volume_add';
-       var w;
-       //var items = get_selected_rows(tree);
-       var items = get_list_from_tree_selection(params.tree);
-       items = filter_list(
-               items,
-               function (obj) {
-                       return obj.getAttribute('object_type') == 'org_unit';
-               }
-       );
-       var chrome = 'chrome://open_ils_staff_client/content/cat/volume_copy_add_wizard.xul';
-       if (tab) {
-               parentWindow.new_tab('main_tabbox');
-               w = parentWindow.replace_tab('main_tabbox','Add Volume',chrome);
-       } else {
-               w = mw.new_window( chrome );
-       }
-       mw.sdump('D_CAT','setting use_this_tree\n');
-       w.tree_items = items;
-       w.record_id = find_this_id;
-       w.params = params;
-}
-
-function copy_add(tab,params) {
-       mw.sdump('D_CAT','trying to copy_add()\n');
-       params['shortcut'] = 'copy_add';
-       var w;
-       //var items = get_selected_rows(tree);
-       var items = get_list_from_tree_selection(params.tree);
-       items = filter_list(
-               items,
-               function (obj) {
-                       return obj.getAttribute('object_type') == 'volume';
-               }
-       );
-       var chrome = 'chrome://open_ils_staff_client/content/cat/copy_add_wizard.xul';
-       if (tab) {
-               parentWindow.new_tab('main_tabbox');
-               w = parentWindow.replace_tab('main_tabbox','Add Copy',chrome);
-       } else {
-               w = mw.new_window( chrome );
-       }
-       mw.sdump('D_CAT','setting use_this_tree\n');
-       w.tree_items = items;
-       w.record_id = find_this_id;
-       w.params = params;
-}
-
-function volume_edit(tab,params) {
-       mw.sdump('D_CAT','trying to volume_edit()\n');
-       params['shortcut'] = 'volume_edit';
-       var w;
-       //var items = get_selected_rows(tree);
-       var items = get_list_from_tree_selection(params.tree);
-       items = filter_list(
-               items,
-               function (obj) {
-                       return obj.getAttribute('object_type') == 'volume';
-               }
-       );
-       var chrome = 'chrome://open_ils_staff_client/content/cat/volume_edit_wizard.xul';
-       if (tab) {
-               parentWindow.new_tab('main_tabbox');
-               w = parentWindow.replace_tab('main_tabbox','Edit Volumes',chrome);
-       } else {
-               w = mw.new_window( chrome );
-       }
-       mw.sdump('D_CAT','setting use_this_tree\n');
-       w.tree_items = items;
-       w.record_id = find_this_id;
-       w.params = params;
-
-}
-
-function volume_delete(tab,params) {
-       var volumes = get_selected_rows_by_object_type(params.tree,'volume'); 
-       var cn_list = [];
-       for (var i = 0; i < volumes.length; i++) {
-               var cn = new acn();
-               cn.id( volumes[i].getAttribute('volume_id') );
-               cn.isdeleted( '1' );
-               cn_list.push( cn );
-       }
-       try {
-               var result = user_request(
-                               'open-ils.cat',
-                               'open-ils.cat.asset.volume_tree.fleshed.batch.update',
-                               [ mw.G['auth_ses'][0], cn_list]
-               );
-               mw.sdump('D_CAT','volume_tree.fleshed.batch.update result: ' + js2JSON(result) + '\n');
-       } catch(E) {
-               handle_error(E);
-       }
-       refresh_browse_list();
-}
-
-function copy_delete(tab,params) {
-       var copies = get_selected_rows_by_object_type(params.tree,'copy'); 
-       var cn_list = [];
-       for (var i = 0; i < copies.length; i++) {
-               var cn = new acn();
-               cn.id( copies[i].getAttribute('volume_id') );
-
-               var cp = new acp();
-               cp.id( copies[i].getAttribute('copy_id') );
-               cp.isdeleted( '1' );
-
-               cn.copies( [ cp ] );
-               cn_list.push( cn );
-       }
-       try {
-               var result = user_request(
-                               'open-ils.cat',
-                               'open-ils.cat.asset.volume_tree.fleshed.batch.update',
-                               [ mw.G['auth_ses'][0], cn_list]
-               );
-               mw.sdump('D_CAT','volume_tree.fleshed.batch.update result: ' + js2JSON(result) + '\n');
-       } catch(E) {
-               handle_error(E);
-       }
-       refresh_browse_list();
-}
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/browse_list.xul
deleted file mode 100644 (file)
index 5358ae4..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's Search Result Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE window SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<window id="browse_list_win" title="&browse_list.win_title;" 
-       orient="vertical" style="overflow: scroll" width="800" height="500"
-       onload="my_init();"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/cat/browse_list_overlay.xul"?>
-
-       <!-- OpenSRF -->
-       <script>var myPackageDir = "evergreen";</script>
-       <OpenSRF id="OpenSRF_js" />
-
-       <!-- The logic for this app -->
-       <Evergreen id="browse_list_js" />
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="browse_list_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="browse_list_keys" />
-
-       <!-- Context menus -->
-       <popupset id="browse_list_popupset" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <vbox id="browse_list_vbox" class="test_class"/>
-
-</window>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/browse_list_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/browse_list_overlay.xul
deleted file mode 100644 (file)
index ae4473c..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
-<overlay id="browse_list_overlay" 
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<!-- The javascript logic for the staff client -->
-<Evergreen id="browse_list_js">
-       <!--<script src="chrome://evergreen/content/evergreen/fieldmapper.js" />-->
-       <util id="util_js"/>
-       <script src="browse_list.js" />
-</Evergreen>
-
-<!-- Some logic abstracted a bit.  Sort of like an API list -->
-<commandset id="browse_list_cmds">
-       <command id="cmd_edit_browse" oncommand="spawn_editors();"/>
-       <command id="cmd_volume_add" oncommand="volume_add(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
-       <command id="cmd_volume_edit" oncommand="volume_edit(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
-       <command id="cmd_volume_delete" oncommand="volume_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
-       <command id="cmd_copy_add" oncommand="copy_add(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
-       <!--<command id="cmd_copy_edit" oncommand="spawn_batch_copy_editor(window.app_shell, 'new_tab', 'main_tabbox', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list });"/>-->
-       <command id="cmd_copy_edit" oncommand="spawn_batch_copy_editor(window.parent_window.document, 'replace_iframe', 'copy_editor', { 'tree' : document.getElementById('browse_list_tree') , 'refresh_func' : refresh_browse_list }); window.parent_window.document.getElementById('copy_editor_tab').disabled = false;"/>
-       <command id="cmd_copy_delete" oncommand="copy_delete(false,{ 'tree' : 'browse_list_tree', 'refresh_func' : refresh_browse_list });"/>
-       <command id="cmd_toggle_my_libs" oncommand="button_toggle_my_libraries(event);"/>
-       <command id="cmd_toggle_libs" oncommand="button_toggle_libraries(event);"/>
-       <command id="cmd_refresh" oncommand="refresh_browse_list();"/>
-       <command id="cmd_alert" oncommand="alert('Not Yet Implemented');"/>
-</commandset>
-
-<!-- Context menus -->
-<popupset id="browse_list_popupset">
-       <popup id="browse_menu" onpopupshowing="build_CopyBrowser_Context(event);">
-       <!--
-               <menuitem id="browse_menu1" label="Add Volume" command="cmd_volume_add"/>
-               <menuitem id="browse_menu2" label="Edit Volume" command="cmd_alert" disabled="true"/>
-               <menuseparator id="browse_menu_sep1"/>
-               <menuitem id="browse_menu3" label="Add Copy" command="cmd_copy_add" disabled="true"/>
-               <menuitem id="browse_menu4" label="Edit Copy" command="cmd_copy_edit"/>
-               <menuseparator id="browse_menu_sep2"/>
-               <menuitem id="browse_menu5" label="Refresh Display" command="cmd_refresh"/>
-       -->
-       </popup>
-</popupset>
-
-<!-- The top level widget for the cat client -->
-<vbox id="browse_list_vbox" flex="1">
-       <hbox id="browse_list_buttonbox"/>
-       <tree id="browse_list_tree"/>
-</vbox>
-
-<hbox id="browse_list_buttonbox">
-       <!--
-       <button id="browse_list_button1" label="Hide My Libraries" alt_label="Show My Libraries" toggle="1" command="cmd_toggle_my_libs"/>
-       -->
-       <button id="browse_list_button3" label="Refresh" command="cmd_refresh"/>
-       <button id="browse_list_button2" label="Show Other Libraries With Copies" alt_label="Show Just My Libraries" toggle="1" command="cmd_toggle_libs"/>
-       <label id="browse_libs"/>
-       <progressmeter id="browse_meter" mode="normal" value="0" flex="1"/>
-</hbox>
-
-<tree id="browse_list_tree" enableColumnDrag="true" flex="1">
-       <treecols id="browse_list_treecols">
-               <treecol id="browse1" label="&browse_list.location;" flex="2" primary="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse1b" label="Volumes" flex="0"/> <splitter class="tree-splitter"/>
-               <treecol id="browse1a" label="Copies" flex="0"/> <splitter class="tree-splitter"/>
-               <treecol id="browse2" label="&browse_list.library;" flex="1"/> <splitter class="tree-splitter"/>
-               <treecol id="browse3" label="&browse_list.callnumber;" flex="1"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4" label="&browse_list.copy_number;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4aa" label="&browse_list.location2;" flex="1"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4a" label="&browse_list.circ_lib;" flex="1"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4b" label="&browse_list.circulate;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4bb" label="&browse_list.ref;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4bbb" label="&browse_list.opac_visible;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4c" label="&browse_list.circ_as_type;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4d" label="&browse_list.circ_modifier;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4e" label="&browse_list.loan_duration;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse4f" label="&browse_list.fine_level;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse5" label="&browse_list.create_date;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse6" label="&browse_list.creator;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse7" label="&browse_list.edit_date;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse8" label="&browse_list.editor;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse9" label="&browse_list.deposit;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse10" label="&browse_list.deposit_amount;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse11" label="&browse_list.price;" flex="1" hidden="true"/> <splitter class="tree-splitter"/>
-               <treecol id="browse12" label="&browse_list.status;" flex="1" hidden="false"/> <splitter class="tree-splitter"/>
-       </treecols>
-       <treechildren id="browse_list_tree_children" context="browse_menu"/>
-</tree>
-
-<!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-<keyset id="browse_list_keys">
-       <key id="" modifiers="accel" key="A" command="cmd_"/>
-</keyset>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/cat.js b/Evergreen/staff_client/chrome/content/evergreen/cat/cat.js
deleted file mode 100644 (file)
index 5874990..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-function my_init() {
-       document.getElementById('search-entry-box').focus();
-       mw.sdump('D_CAT','TESTING: cat.js: ' + mw.G['main_test_variable'] + '\n');
-       populate_lib_list(
-               'search-copy-count-menu',
-               'search-copy-count-popup',
-               mw.G.user_ou
-       );
-}
-
-function search(s_type, s_loc, s_fmt, s_ord, s_term) {
-       var w_type = document.getElementById(s_type);
-       var w_loc = document.getElementById(s_loc);
-       var w_fmt = document.getElementById(s_fmt);
-       var w_term = document.getElementById(s_term);
-       var w_order = document.getElementById(s_ord);
-       var frame_box = document.getElementById('cat_result_box');
-       while (frame_box.lastChild) { frame_box.removeChild(frame_box.lastChild); }
-       switch(w_type.value) {
-               case 'barcode':
-                       alert('Not Yet Implemented');
-                       break;
-               case 'id':
-                       alert('Not Yet Implemented');
-                       break;
-               case 'title': case 'author': case 'tcn': case 'subject':
-                       var frame = document.createElement('iframe');
-                       frame_box.appendChild(frame);
-                       frame.setAttribute('flex','1');
-                       frame.setAttribute('src','chrome://evergreen/content/cat/record_list.xul');
-                       frame.contentWindow.parentWindow = parentWindow;
-                       frame.contentWindow.search_term = w_term.value;
-                       frame.contentWindow.search_type = w_type.value;
-                       frame.contentWindow.search_location = w_loc.value;
-                       frame.contentWindow.search_order = w_order.value;
-                       frame.contentWindow.catWindow = this;
-                       frame.contentWindow.tabWindow = tabWindow;
-                       frame.contentWindow.mw = mw;
-                       frame.contentWindow.am_i_a_top_level_tab = false;
-                       mw.sdump('D_CAT','here ====>\n');
-                       frame.contentWindow.addEventListener('load',function (e) { mw.sdump('D_CAT','here1<==\n'); this.test_hash['hello1'] = 'boo'; }, false);
-                       frame.contentWindow.addEventListener('load',function (e) { mw.sdump('D_CAT','here2<==\n'); this.test_hash['hello2'] = 'boo'; }, false);
-                       break;
-               case 'isbn':
-                       alert('Not Yet Implemented');
-                       break;
-               case 'callnumber':
-                       alert('Not Yet Implemented');
-                       break;
-               case 'all':
-                       alert('Not Yet Implemented');
-                       break;
-               default:
-                       alert('This case is not handled: ' + w_type.value);
-                       break;
-       }
-}
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/cat.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/cat.xul
deleted file mode 100644 (file)
index dddaba1..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's Search Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE page SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<page id="cat_win" title="&cat.title;" 
-       orient="vertical" style="overflow: scroll"
-       onload="my_init();"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/cat/cat_overlay.xul"?>
-
-       <!-- OpenSRF -->
-       <script>var myPackageDir = "evergreen";</script>
-       <OpenSRF id="OpenSRF_js" />
-
-       <!-- The logic for this app -->
-       <Evergreen id="cat_js" />
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="cat_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="cat_keys" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <vbox id="cat_vbox" class="test_class"/>
-
-</page>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/cat_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/cat_overlay.xul
deleted file mode 100644 (file)
index 1640a46..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
-<overlay id="cat_overlay" 
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<!-- The javascript logic for the staff client -->
-<Evergreen id="cat_js">
-       <script>var ses;</script>
-       <util id="util_js"/>
-       <script src="cat.js" />
-</Evergreen>
-
-<!-- Some logic abstracted a bit.  Sort of like an API list -->
-<commandset id="cat_cmds">
-       <command id="cmd_search" oncommand="
-               search(
-                       'search-type-menu',
-                       'search-copy-count-menu',
-                       'search-format-menu',
-                       'search-order-menu',
-                       'search-entry-box'
-               );
-       "/>
-       <command id="cmd_test" oncommand="
-               /*spawn_copy_browser( document.getElementById('search-entry-box').value );*/
-               spawn_marc_editor( document.getElementById('search-entry-box').value );
-       "/>
-       <command id="cmd_alert" oncommand="
-               alert('Not Yet Implemented');
-       
-       "/>
-</commandset>
-
-<!-- The top level widget for the cat client -->
-<vbox id="cat_vbox" flex="1" style="min-width: 100px; overflow: scroll;">
-       <vbox id="cat_search_box"/>
-       <vbox id="cat_result_box" flex="1"/>
-</vbox>
-
-<!-- The search box -->
-<vbox id="cat_search_box">
-       <groupbox id="search_groupbox"/>
-</vbox>
-
-<groupbox id="search_groupbox">
-       <caption label="&cat.search_criteria;"/>
-       <grid id="search_grid"/>
-</groupbox>
-
-<grid id="search_grid">
-       <columns> 
-               <column/> <column/> 
-               <column/> <column/> 
-               <column/>
-               <column flex="1"/> 
-       </columns>
-       <rows>
-               <row id="search_row1"/>
-               <row id="search_row2"/>
-               <row id="search_row3"/>
-       </rows>
-</grid>
-
-<row id="search_row1">
-       <label 
-               value="&cat.search_type;" 
-               control="search-type-menu" 
-               accesskey="&cat.search_type.key;"
-       />
-       <menulist id="search-type-menu"/>
-
-       <label
-               value="&cat.search_term;" 
-               control="search-entry-box" 
-               accesskey="&cat.search_term.key;"
-       />
-       <textbox id="search-entry-box" flex="1"/>
-
-
-       <!--<label 
-               value="&cat.search_location;" 
-               control="search-location-menu" 
-               accesskey="&cat.search_location.key;"
-       />
-       <menulist id="search-location-menu"/>-->
-</row>
-<row id="search_row2">
-       <label 
-               value="&cat.search_format;" 
-               control="search-format-menu" 
-               accesskey="&cat.search_format.key;"
-       />
-       <menulist id="search-format-menu"/>
-       <label 
-               value="&cat.search_count_copy;" 
-               control="search-copy-count-menu" 
-               accesskey="&cat.search_count_copy.key;"
-       />
-       <menulist id="search-copy-count-menu"/>
-
-</row>
-<row id="search_row3">
-       <label 
-               value="&cat.search_order;" 
-               control="search-order-menu" 
-               accesskey="&cat.search_order.key;"
-       />
-       <menulist id="search-order-menu"/>
-       <spacer/>
-       <hbox>
-               <button label="&cat.search_submit;" accesskey="&cat.search_submit.key;" command="cmd_search"/>
-               <button label="&cat.search_advanced;" accesskey="&cat.search_advanced.key;" command="cmd_alert"/>
-       </hbox>
-
-
-</row>
-
-<!-- The search location -->
-<!-- This should be populated by a script -->
-<menulist id="search-location-menu">
-       <menupopup id="search-location-popup">
-               <menuitem label="This Library (Athens-Clarke County Library)" value="PINES.ARL.ATH" />
-               <menuitem label="This Library System (Athens Regional Library)" value="PINES.ARL" />
-               <menuitem label="All PINES Libraries" value="PINES" />
-       </menupopup>
-</menulist>
-
-<menulist id="search-copy-count-menu">
-       <menupopup id="search-copy-count-popup"/>
-</menulist>
-
-
-
-<!-- The search format -->
-<menulist id="search-format-menu">
-       <menupopup id="search-format-popup" command="cmd_alert">
-               <menuitem label="&cat.type_of_material;" value="all" />
-               <menuitem label="&cat.fixed.BKS;" value="BKS" />
-               <menuitem label="&cat.fixed.SER;" value="SER" />
-               <menuitem label="&cat.fixed.VIS;" value="VIS" />
-               <menuitem label="&cat.fixed.MIX;" value="MIX" />
-               <menuitem label="&cat.fixed.MAP;" value="MAP" />
-               <menuitem label="&cat.fixed.SCO;" value="SCO" />
-               <menuitem label="&cat.fixed.REC;" value="REC" />
-               <menuitem label="&cat.fixed.COM;" value="COM" />
-       </menupopup>
-</menulist>
-
-<!-- The search order -->
-<menulist id="search-order-menu">
-       <menupopup id="search-order-popup" command="cmd_alert">
-               <menuitem label="&cat.search_title;" value="title" />
-               <menuitem label="&cat.search_author;" value="author" />
-               <menuitem label="&cat.search_pubyear;" value="pubyear" />
-       </menupopup>
-</menulist>
-
-
-<!-- The search type -->
-<menulist id="search-type-menu">
-       <menupopup id="search-type-popup">
-               <menuitem label="&cat.search_barcode;" value="barcode" />
-               <menuitem label="&cat.search_tcn;" value="tcn" />
-               <menuitem label="&cat.search_isbn;" value="isbn" />
-               <menuitem label="&cat.search_title;" value="title" selected="true"/>
-               <menuitem label="&cat.search_author;" value="author" />
-               <menuitem label="&cat.search_subject;" value="subject" />
-               <menuitem label="&cat.search_callnumber;" value="callnumber" />
-               <menuitem label="&cat.search_id;" value="id" />
-               <menuitem label="&cat.search_all;" value="all" />
-       </menupopup>
-</menulist>
-
-<!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-<keyset id="cat_keys">
-       <key id="" modifiers="accel" key="A" command="cmd_"/>
-</keyset>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy.js b/Evergreen/staff_client/chrome/content/evergreen/cat/copy.js
deleted file mode 100644 (file)
index 33ddfcf..0000000
+++ /dev/null
@@ -1,359 +0,0 @@
-var local_stat_cats;
-var local_stat_cat_entries = {};
-
-function my_init() {
-       mw.sdump('D_CAT','entering my_init for copy.js\n');
-       mw.sdump('D_CAT','TESTING: copy.js: ' + mw.G['main_test_variable'] + '\n');
-       mw.sdump('D_CAT','real_parentWindow: ' + real_parentWindow + '\n');
-       populate_copy_status_list('copy-status-menu','copy-status-popup','0');
-       populate_copy_location_list('shelving-location-menu','shelving-location-popup');
-       populate_lib_list_with_branch('circulating-library-menu','circulating-library-popup', mw.G.user_ou, mw.G.org_tree, true );
-       mw.sdump('D_CAT','super_dump cn_list = ' + super_dump_norecurse(cn_list) + '\n');
-       mw.sdump('D_CAT','my_init: cn_list = ' + js2JSON(cn_list) + '\n');
-       /*cn_list = fixJSON(cn_list);
-       mw.sdump('D_CAT','super_dump cn_list = ' + super_dump_norecurse(cn_list) + '\n');
-       mw.sdump('D_CAT','my_init: cn_list = ' + js2JSON(cn_list) + '\n');*/
-       var pertinent_libs = [];
-       for (var i = 0; i < cn_list.length; i++) {
-               var cn = cn_list[i];
-               for (var j = 0; j < cn.copies().length; j++) {
-                       var cp = cn.copies()[j];
-                       add_to_listbox(
-                               i,j,
-                               mw.G.org_tree_hash[ cn.owning_lib() ].shortname(),
-                               cn.label(),
-                               cp.barcode()
-                       );
-               }
-               pertinent_libs.push( cn.owning_lib() );
-       }
-       local_stat_cats = mw.G.asc_list;
-       populate_listbox_with_local_stat_cats_myself(
-               local_stat_cats,
-               local_stat_cat_entries,
-               'local_attr_listbox',
-               pertinent_libs,
-               'open-ils.circ',
-               'open-ils.circ.stat_cat.asset.multirange.intersect.retrieve',
-               false
-       );
-       /*
-       if (params.select_all) {
-               document.getElementById('ephemeral_listbox').selectAll();
-       }
-       */
-       transfer_attributes();
-       apply_attributes();
-}
-
-function transfer_attributes(event) {
-       /*
-       var items = event.target.selectedItems;
-       mw.sdump('D_CAT','selectedItems.length = ' + items.length + '\n');
-       if (items.length == 0) { return; }
-       */
-
-       // Dump items
-
-       /*
-       var dump_copies = map_list(
-               items,
-               function (obj) {
-                       var cnp = obj.getAttribute('cn_pos');
-                       var cpp = obj.getAttribute('cp_pos');
-                       return cn_list[cnp].copies()[cpp];
-               }
-       );
-       */
-
-       var dump_copies = map_flat_list(
-               cn_list,
-               function (cn) {
-                       return cn.copies();
-               }
-       );
-
-       for (var i in dump_copies) {
-               mw.sdump('D_CAT','\n\n\n,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_\n\n\n');
-               mw.sdump('D_CAT', js2JSON(dump_copies[i]) );
-               mw.sdump('D_CAT','\n\n\n,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_\n\n\n');
-       }
-
-       // Transfer values from first item to XUL
-
-       /*
-       var cp_pos = items[0].getAttribute('cp_pos');
-       var cn_pos = items[0].getAttribute('cn_pos');
-       var cp_list = cn_list[cn_pos].copies();
-       var copy = cp_list[cp_pos];
-       */
-       var copy = cn_list[0].copies()[0];
-       if (copy.circ_lib()) set_widget_value_for_display(
-               document.getElementById('circulating-library-menu'),
-               copy.circ_lib().id()
-       );
-       if (copy.location()) set_widget_value_for_display(
-               document.getElementById('shelving-location-menu'),
-               copy.location().id()
-       );
-       if (copy.status()) set_widget_value_for_display(
-               document.getElementById('copy-status-menu'),
-               copy.status().id()
-       );
-       if (copy.loan_duration()) set_widget_value_for_display(
-               document.getElementById('loan-duration-menu'),
-               copy.loan_duration()
-       );
-       if (copy.fine_level()) set_widget_value_for_display(
-               document.getElementById('fine-level-menu'),
-               copy.fine_level()
-       );
-       if (copy.circulate()) set_widget_value_for_display(
-               document.getElementById('circulate_menu'),
-               copy.circulate()
-       );
-       if (copy.deposit()) set_widget_value_for_display(
-               document.getElementById('deposit_menu'),
-               copy.deposit()
-       );
-       if (copy.deposit_amount()) set_widget_value_for_display(
-               document.getElementById('deposit_amount'),
-               copy.deposit_amount()
-       );
-       if (copy.price()) set_widget_value_for_display(
-               document.getElementById('price'),
-               copy.price()
-       );
-       if (copy.ref()) set_widget_value_for_display(
-               document.getElementById('reference_menu'),
-               copy.ref()
-       );
-       if (copy.opac_visible()) set_widget_value_for_display(
-               document.getElementById('opac_visible_menu'),
-               copy.opac_visible()
-       );
-
-       for (var i in copy.stat_cat_entries()) {
-               var entry = copy.stat_cat_entries()[i];
-               var menuitem = document.getElementById('menuitem_stat_cat_entry_' + entry.id());
-               if (menuitem) {
-                       menuitem.parentNode.parentNode.selectedItem = menuitem;
-               }
-       }
-       mw.sdump('D_CAT','select fired\n');
-}
-
-
-function save_attributes() {
-       real_parentWindow.cn_list = cn_list;
-       real_parentWindow.document.getElementById('volume_add').canAdvance = true;
-       //window.close();
-}
-
-function apply_attributes() {
-       var circ_lib = document.getElementById('circulating-library-menu').value;
-       var shelving_loc = document.getElementById('shelving-location-menu').value;
-       var copy_status = document.getElementById('copy-status-menu').value;
-       var loan_duration = document.getElementById('loan-duration-menu').value;
-       var fine_level = document.getElementById('fine-level-menu').value;
-       var circulate = document.getElementById('circulate_menu').value;
-       var deposit = document.getElementById('deposit_menu').value;
-       var deposit_amount = document.getElementById('deposit_amount').value;
-       var price = document.getElementById('price').value;
-       var ref = document.getElementById('reference_menu').value;
-       var opac = document.getElementById('opac_visible_menu').value;
-       /*
-       var listbox = document.getElementById('ephemeral_listbox');
-       var items = listbox.selectedItems;
-       mw.sdump('D_CAT','selectedItems.length = ' + items.length + '\n');
-       */
-       for (var i = 0; i < cn_list.length; i++) {
-               for (var j = 0; j < cn_list[i].copies().length; j++) {
-                       /*
-                       var listitem = items[i];
-                       var cn_pos = listitem.getAttribute('cn_pos');
-                       var cp_pos = listitem.getAttribute('cp_pos');
-                       var copy_node = cn_list[cn_pos].copies()[cp_pos];
-                       */
-                       var copy_node = cn_list[i].copies()[j];
-                       copy_node.circ_lib(     mw.G.org_tree_hash[ circ_lib ]);
-                       copy_node.location(     mw.G.acpl_hash[ shelving_loc ]);
-                       copy_node.status(       mw.G.ccs_hash[ copy_status ]);
-                       copy_node.loan_duration(loan_duration);
-                       copy_node.fine_level(fine_level);
-                       copy_node.circulate(circulate);
-                       copy_node.deposit(deposit);
-                       copy_node.deposit_amount(deposit_amount);
-                       copy_node.price(price);
-                       copy_node.ref(ref);
-                       copy_node.opac_visible(opac);
-                       copy_node.ischanged(1);
-               }
-       }
-
-       mw.sdump('D_CAT','changed cn_list: ' + js2JSON(cn_list) + '\n');
-}
-
-function apply_attribute(ev) {
-       mw.sdump('D_CAT','Entering apply_attribute with element id = ');
-       var popup_id;
-       if (ev.target.tagName == 'menuitem') {
-               popup_id = ev.target.parentNode.getAttribute('id');
-       } else {
-               popup_id = ev.target.getAttribute('id');
-       }
-       mw.sdump('D_CAT',popup_id + '\n');
-       mw.sdump('D_CAT','ev.target = ' + ev.target + '  .tagName = ' + ev.target.tagName + '\n');
-
-       var circ_lib = document.getElementById('circulating-library-menu').value;
-       var shelving_loc = document.getElementById('shelving-location-menu').value;
-       var copy_status = document.getElementById('copy-status-menu').value;
-       var loan_duration = document.getElementById('loan-duration-menu').value;
-       var fine_level = document.getElementById('fine-level-menu').value;
-       var circulate = document.getElementById('circulate_menu').value;
-       var deposit = document.getElementById('deposit_menu').value;
-       var deposit_amount = document.getElementById('deposit_amount').value;
-       var price = document.getElementById('price').value;
-       var ref = document.getElementById('reference_menu').value;
-       var opac = document.getElementById('opac_visible_menu').value;
-       /*
-       var listbox = document.getElementById('ephemeral_listbox');
-       var items = listbox.selectedItems;
-
-       mw.sdump('D_CAT','selectedItems.length = ' + items.length + '\n');
-       */
-       mw.sdump('D_CAT','before  cn_list: ' + js2JSON(cn_list) + '\n');
-       for (var i = 0; i < cn_list.length; i++) {
-       for (var j = 0; j < cn_list[i].copies().length; j++) {
-               /*
-               var listitem = items[i];
-               var cn_pos = listitem.getAttribute('cn_pos');
-               var cp_pos = listitem.getAttribute('cp_pos');
-               var copy_node = cn_list[cn_pos].copies()[cp_pos];
-               */
-               var copy_node = cn_list[i].copies()[j];
-
-               mw.sdump('D_CAT','\n\n\n\n+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+\n\n\n\n');
-               mw.sdump('D_CAT','Setting copy ' + copy_node.id() + '...\n');
-               switch(popup_id) {
-                       case 'circulating-library-popup':
-                               mw.sdump('D_CAT','\tbefore circ_lib = ' + js2JSON(copy_node.circ_lib()) + '\n');
-                               copy_node.circ_lib(     mw.G.org_tree_hash[ circ_lib ] );
-                               mw.sdump('D_CAT','\tafter  circ_lib = ' + js2JSON(copy_node.circ_lib()) + '\n');
-                               break;
-                       case 'shelving-location-popup':
-                               mw.sdump('D_CAT','\tbefore location = ' + js2JSON(copy_node.location()) + '\n');
-                               copy_node.location(     mw.G.acpl_hash[ shelving_loc ] );
-                               mw.sdump('D_CAT','\tafter  location = ' + js2JSON(copy_node.location()) + '\n');
-                               break;
-                       case 'copy-status-popup':
-                               mw.sdump('D_CAT','\tbefore status = ' + js2JSON(copy_node.status()) + '\n');
-                               copy_node.status(       mw.G.ccs_hash[ copy_status ]);
-                               mw.sdump('D_CAT','\tafter  status = ' + js2JSON(copy_node.status()) + '\n');
-                               break;
-                       case 'loan-duration-popup':
-                               mw.sdump('D_CAT','\tbefore loan_duration = ' + js2JSON(copy_node.loan_duration()) + '\n');
-                               copy_node.loan_duration(loan_duration);
-                               mw.sdump('D_CAT','\tafter  loan_duration = ' + js2JSON(copy_node.loan_duration()) + '\n');
-                               break;
-                       case 'fine-level-popup':
-                               mw.sdump('D_CAT','\tbefore fine_level = ' + js2JSON(copy_node.fine_level()) + '\n');
-                               copy_node.fine_level(fine_level);
-                               mw.sdump('D_CAT','\tafter  fine_level = ' + js2JSON(copy_node.fine_level()) + '\n');
-                               break;
-                       case 'circulate_popup':
-                               mw.sdump('D_CAT','\tbefore circulate = ' + js2JSON(copy_node.circulate()) + '\n');
-                               copy_node.circulate(circulate);
-                               mw.sdump('D_CAT','\tafter  circulate = ' + js2JSON(copy_node.circulate()) + '\n');
-                               break;
-                       case 'deposit_popup':
-                               mw.sdump('D_CAT','\tbefore deposit = ' + js2JSON(copy_node.deposit()) + '\n');
-                               copy_node.deposit(deposit);
-                               mw.sdump('D_CAT','\tafter  deposit = ' + js2JSON(copy_node.deposit()) + '\n');
-                               break;
-                       case 'deposit_amount':
-                               mw.sdump('D_CAT','\tbefore deposit_amount = ' + js2JSON(copy_node.deposit_amount()) + '\n');
-                               copy_node.deposit_amount(deposit_amount);
-                               mw.sdump('D_CAT','\tafter  deposit_amount = ' + js2JSON(copy_node.deposit_amount()) + '\n');
-                               break;
-                       case 'price':
-                               mw.sdump('D_CAT','\tbefore price = ' + js2JSON(copy_node.price()) + '\n');
-                               copy_node.price(price);
-                               mw.sdump('D_CAT','\tafter  price = ' + js2JSON(copy_node.price()) + '\n');
-                               break;
-                       case 'reference_popup':
-                               mw.sdump('D_CAT','\tbefore ref = ' + js2JSON(copy_node.ref()) + '\n');
-                               copy_node.ref(ref);
-                               mw.sdump('D_CAT','\tafter  ref = ' + js2JSON(copy_node.ref()) + '\n');
-                               break;
-                       case 'opac_visible_popup':
-                               mw.sdump('D_CAT','\tbefore opac_visible = ' + js2JSON(copy_node.opac_visible()) + '\n');
-                               copy_node.opac_visible(opac);
-                               mw.sdump('D_CAT','\tafter  opac_visible = ' + js2JSON(copy_node.opac_visible()) + '\n');
-                               break;
-                       default:
-                               mw.sdump('D_CAT','\t++++++++ Unhandled.. this should be a stat_cat: ' + popup_id + ' / ' + ev.target.tagName + '\n');
-                               update_stat_cat_entry(copy_node,ev.target);
-                               break;
-               }
-               mw.sdump('D_CAT','\n\n\n\n+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+\n\n\n\n');
-               copy_node.ischanged(1);
-       }
-       }
-
-       mw.sdump('D_CAT','changed cn_list: ' + js2JSON(cn_list) + '\n');
-}
-
-function update_stat_cat_entry(copy,menuitem) {
-       mw.sdump('D_CAT','\tupdate_stat_cat_entry: value = ' + menuitem.value + '\n');
-       var entries = copy.stat_cat_entries();
-       //mw.sdump('D_CAT','\n\n\ncopy = ' + js2JSON(copy) + '\n');
-       //mw.sdump('D_CAT','\n\n\ncopy.stat_cat_entries() = ' + js2JSON(copy.stat_cat_entries()) + '\n');
-       var stat_cat_id = menuitem.getAttribute('stat_cat');
-       var entry = find_attr_object_in_list(entries,'stat_cat',stat_cat_id);
-       if (entry) {
-               mw.sdump('D_CAT','\tReplacing old stat_cat_entry with ');
-
-               entries = filter_list(
-                       entries,
-                       function (obj) {
-                               return (obj.id() != entry.id());
-                       }
-               );
-
-       } else {
-               mw.sdump('D_CAT','\tAppending new stat_cat_entry = ');
-       }
-       mw.sdump('D_CAT',js2JSON(local_stat_cat_entries[menuitem.value]) + '\n');
-       entries.push( local_stat_cat_entries[ menuitem.value ] );
-       copy.stat_cat_entries( entries );
-}
-
-var add_to_listbox_first_comma = 0;
-
-function add_to_listbox(cn_pos,cp_pos,name,callnumber,barcode) {
-       mw.sdump('D_CAT','xul: name = ' + name + ' cn = ' + callnumber + ' bc = ' + barcode + '\n');
-       var desc = document.getElementById('description_box');
-       if (add_to_listbox_first_comma++ == 0) {
-               desc.appendChild( document.createTextNode( ' ' + barcode ) );
-       } else {
-               desc.appendChild( document.createTextNode( ', ' + barcode ) );
-       }
-       /*
-       var listbox = document.getElementById('ephemeral_listbox');
-       var listitem = document.createElement('listitem');
-               listitem.setAttribute('cn_pos',cn_pos);
-               listitem.setAttribute('cp_pos',cp_pos);
-       listbox.appendChild(listitem);
-       var listcell1 = document.createElement('listcell');
-               listcell1.setAttribute('label',name);
-       listitem.appendChild(listcell1);
-       var listcell2 = document.createElement('listcell');
-               listcell2.setAttribute('label',callnumber);
-       listitem.appendChild(listcell2);
-       var listcell3 = document.createElement('listcell');
-               listcell3.setAttribute('label',barcode);
-       listitem.appendChild(listcell3);
-       */
-}
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/copy.xul
deleted file mode 100644 (file)
index d083ca1..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's Copy Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE page SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<page id="copy_win" title="&copy.title;" 
-       orient="vertical" style="overflow: scroll" persist="width height"
-       onload="
-               my_init();
-       "
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/cat/copy_overlay.xul"?>
-
-       <!-- OpenSRF -->
-       <script>var myPackageDir = "evergreen";</script>
-       <OpenSRF id="OpenSRF_js" />
-
-       <!-- The logic for this app -->
-       <Evergreen id="copy_js" />
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="copy_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="copy_keys" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <vbox id="copy_vbox" class="test_class"/>
-
-</page>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy_add_wizard.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/copy_add_wizard.xul
deleted file mode 100644 (file)
index 2c3c323..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0"?>
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<!-- This DTD declaration needs to be fixed for Mozilla locales -->
-<!DOCTYPE wizard SYSTEM "chrome://evergreen/locale/cat.dtd">
-<wizard id="volume_add" title="&copy.wizard.title;" 
-       orient="vertical" style="overflow: auto"
-       onload="my_init();" width="800" height="600"
-       onwizardfinish="send_to_bill();"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/cat/volume_copy_add_overlay.xul"?>
-
-       <!-- OpenSRF -->
-       <script>var myPackageDir = "evergreen";</script>
-       <OpenSRF id="OpenSRF_js" />
-
-       <!-- The logic for this app -->
-       <Evergreen id="volume_js" />
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="volume_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="volume_keys" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <!--<wizardpage id="page1"/>-->
-       <wizardpage id="page2"/>
-       <wizardpage id="page3"/>
-       <wizardpage id="page4"/>
-
-</wizard>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy_display.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/copy_display.xul
deleted file mode 100644 (file)
index 8bb7753..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: About -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-
-<window id="copy_display_win" title="hello"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <OpenSRF id="OpenSRF_js"/>
-       <util id="util_js"/>
-
-       <vbox id="copy_display_vbox" flex="1" pack="center" align="center">
-               <label name="click_label" datum="1" click_evt="click_evt"/>
-               <label name="edit_date" datum="1" render_filter="^(.){10}" click_evt="click_evt" />
-               <label name="call_number" datum="1" render_path="label" click_evt="click_evt" />
-               <label name="fine_level" datum="1" click_evt="click_evt"/>
-               <label name="creator" datum="1" render_path="usrname" click_evt="click_evt"/>
-               <label name="creator" datum="1" render_path="home_ou/name" click_evt="click_evt"/>
-               <textbox name="status" datum="1" change_evt="edit_evt" click_evt="click_evt"/>
-               <textbox name="circulate" datum="1" change_evt="edit_evt" click_evt="click_evt"/>
-               <label name="circ_as_type" datum="1" click_evt="click_evt"/>
-               <label name="stat_cat_entries" datum="1" click_evt="click_evt"/>
-               <label name="isnew" datum="1" click_evt="click_evt"/>
-               <label name="editor" datum="1" render_path="usrname" click_evt="click_evt"/>
-               <label name="ischanged" datum="1" click_evt="click_evt"/>
-               <label name="id" datum="1" click_evt="click_evt"/>
-               <label name="isdeleted" datum="1" click_evt="click_evt"/>
-               <textbox name="deposit" datum="1" change_evt="edit_evt" click_evt="click_evt"/>
-               <label name="location" datum="1" click_evt="click_evt"/>
-               <label name="loan_duration" datum="1" click_evt="click_evt"/>
-               <label name="ref" datum="1" click_evt="click_evt"/>
-               <label name="create_date" datum="1" click_evt="click_evt"/>
-               <textbox name="barcode" datum="1" change_evt="validate_evt,edit_evt" click_evt="click_evt" />
-               <label name="deposit_amount" datum="1" click_evt="click_evt"/>
-               <textbox name="opac_visible" datum="1" change_evt="edit_evt" click_evt="click_evt"/>
-               <label name="copy_number" datum="1" click_evt="click_evt"/>
-               <textbox name="price" datum="1" change_evt="edit_evt" click_evt="click_evt"/>
-               <label name="circ_modifier" datum="1" click_evt="click_evt"/>
-               <label name="circ_lib" datum="1" render_path="name" click_evt="click_evt"/>
-       </vbox>
-
-</window>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.js b/Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.js
deleted file mode 100644 (file)
index 3c5b278..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-var cn_list;
-
-function copy_edit_init() {
-       mw.sdump('D_CAT','entering my_init for copy_edit.js\n');
-       mw.sdump('D_CAT','TESTING: copy_edit.js: ' + mw.G['main_test_variable'] + '\n');
-       mw.sdump('D_CAT','Gathering copies to put in the acn object...\n');
-       var id_mapped_list = [];
-       var filtered_list = [];
-       if (params.tree) {
-               var list = get_list_from_tree_selection( params.tree );
-               mw.sdump('D_CAT','list.length = ' + list.length + '\n');
-               filtered_list = filtered_list.concat( 
-                       filter_list(
-                               list,
-                               function (obj) {
-                                       return (obj.getAttribute('object_type') == 'copy');
-                               }
-                       )
-               );
-               mw.sdump('D_CAT','filtered_list.length = ' + filtered_list.length + '\n');
-               id_mapped_list = id_mapped_list.concat(
-                       map_list(
-                               filtered_list,
-                               function (obj) {
-                                       return obj.getAttribute('copy_id');
-                               }
-                       )
-               );
-               mw.sdump('D_CAT','id_mapped_list.length = ' + id_mapped_list.length + '\n');
-       }
-       if (params.copy_ids) {
-               id_mapped_list = id_mapped_list.concat( params.copy_ids );
-       }
-       var result = [];
-       try {
-               result = user_request(
-                       'open-ils.search',
-                       'open-ils.search.asset.copy.fleshed.batch.retrieve', 
-                       [ id_mapped_list ]
-               )[0];
-       } catch(E) {
-               handle_error(E);
-       }
-       mw.sdump('D_CAT','result.length = ' + result.length + '\n');
-       cn_list = new Array();
-       for (var i in result) {
-               cn_list[i] = new acn();
-               try { cn_list[i].label( filtered_list[i].getAttribute('callnumber') ); } catch(E) { cn_list[i].label( 'dummy callnumber' ); }
-               try { cn_list[i].owning_lib( filtered_list[i].getAttribute('ou_id') ); } catch(E) { cn_list[i].owning_lib( 1 ); }
-               cn_list[i].copies( [ result[i] ] );
-       }
-       mw.sdump('D_CAT','cn_list = ' + js2JSON(cn_list) + '\n');
-       spawn_legacy_copy_editor();
-}
-
-function spawn_legacy_copy_editor() {
-       mw.sdump('D_CAT','trying to spawn_copy_editor()\n');
-       var params = { 'select_all' : true };
-       var chrome = 'chrome://evergreen/content/cat/copy.xul';
-       var frame = document.getElementById('copy_edit_frame');
-       frame.setAttribute('src',chrome);
-       frame.setAttribute('flex','1');
-       frame.contentWindow.cn_list = cn_list;
-       frame.contentWindow.mw = mw;
-       frame.contentWindow.real_parentWindow = this;
-       frame.contentWindow.parentWindow = window.app_shell;
-       frame.contentWindow.params = params;
-}
-
-function save_edited_copies() {
-       //mw.sdump('D_CAT','trying to save ====================================================================================\n\n\n');
-       //mw.sdump('D_CAT','cn_list = ' + js2JSON(cn_list) + '\n\n');
-       var copies = [];
-       for (var i = 0; i < cn_list.length; i++) {
-               var cn_copies = cn_list[i].copies();
-               for (var j = 0; j < cn_copies.length; j++) {
-                       copies.push( cn_copies[j] );
-               }
-       }
-       //mw.sdump('D_CAT','copies = ' + js2JSON(copies) + '\n\n');
-       try {
-               var result = user_request(
-                       'open-ils.cat',
-                       'open-ils.cat.asset.copy.fleshed.batch.update',
-                       [ mw.G.auth_ses[0], copies ]
-               )[0];
-               if (result == '1') {
-                       alert('Successfully updated these copies.\n');
-               } else {
-                       throw('There was an error updating the copies.\n');
-               }
-               mw.sdump('D_CAT','Result = ' + js2JSON(result) + '\n');
-               refresh_spawning_browse_list();
-       } catch(E) {
-               handle_error(E);
-       }
-}
-
-function refresh_spawning_browse_list() {
-       try {
-               params.refresh_func();
-       } catch(E) {
-               mw.sdump('D_CAT','refresh_spawning_browse_list error: ' + js2JSON(E) + '\n');
-       }
-}
-
-function spawn_marc_from_copy_editor() {
-       try {
-               var record_id = user_request(
-                       'open-ils.search',
-                       'open-ils.search.biblio.find_by_barcode',
-                       [ cn_list[0].copies()[0].barcode() ]
-               )[0].ids[0];
-               marc_view(app_shell,record_id);
-       } catch(E) {
-               handle_error(E);
-       }
-}
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit.xul
deleted file mode 100644 (file)
index b6271c2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's Copy Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE page SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<page id="copy_edit_win" title="&copy.title;" 
-       orient="vertical" style="overflow: scroll" persist="width height"
-       onload=" copy_edit_init(); "
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/cat/copy_edit_overlay.xul"?>
-
-       <!-- OpenSRF -->
-       <script>var myPackageDir = "evergreen";</script>
-       <OpenSRF id="OpenSRF_js" />
-
-       <!-- The logic for this app -->
-       <Evergreen id="copy_edit_js" />
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="copy_edit_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="copy_edit_keys" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <vbox id="copy_edit_vbox" class="test_class"/>
-
-</page>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/copy_edit_overlay.xul
deleted file mode 100644 (file)
index 8d83c1d..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
-<overlay id="copy_edit_overlay" 
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<!-- The javascript logic for the staff client -->
-<Evergreen id="copy_edit_js">
-       <util id="util_js"/>
-       <!--<script src="chrome://evergreen/content/util/RemoteRequest.js" />
-       <script src="chrome://evergreen/content/util/ses.js" />-->
-       <script src="copy_edit.js" />
-</Evergreen>
-
-<!-- Some logic abstracted a bit.  Sort of like an API list -->
-<commandset id="copy_edit_cmds">
-       <command id="cmd_alert" oncommand="
-               alert(event.target.tagName + '  Not Yet Implemented');
-       "/>
-       <command id="cmd_edit_save" oncommand="
-               save_edited_copies();
-       "/>
-       <command id="cmd_edit_close" oncommand="
-               mw.close_tab(app_shell,'main_tabbox');
-       "/>
-       <command id="cmd_view_marc" oncommand="
-               spawn_marc_from_copy_editor();
-       "/>
-       <command id="cmd_refresh_parent" oncommand="
-               refresh_spawning_browse_list();
-       "/>
-</commandset>
-
-<vbox id="copy_edit_vbox" flex="1">
-       <iframe id="copy_edit_frame" flex="1"/>
-       <hbox id="copy_edit_hbox" flex="0">
-               <button id="copy_edit_close" label="Close Editor" command="cmd_edit_close"/>
-               <button id="copy_edit_marc" label="View MARC" command="cmd_view_marc"/>
-               <spacer id="copy_edit_spacer" flex="1"/>
-               <button id="copy_edit_save" label="Save Changes" command="cmd_edit_save"/>
-       </hbox>
-</vbox>
-
-<!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-<keyset id="copy_edit_keys">
-       <key id="" modifiers="accel" key="A" command="cmd_"/>
-</keyset>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/copy_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/copy_overlay.xul
deleted file mode 100644 (file)
index 8489172..0000000
+++ /dev/null
@@ -1,315 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
-<overlay id="copy_overlay" 
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<!-- The javascript logic for the staff client -->
-<Evergreen id="copy_js">
-       <util id="util_js"/>
-       <!--<script src="chrome://evergreen/content/util/RemoteRequest.js" />
-       <script src="chrome://evergreen/content/util/ses.js" />-->
-       <script src="copy.js" />
-</Evergreen>
-
-<!-- Some logic abstracted a bit.  Sort of like an API list -->
-<commandset id="copy_cmds">
-       <command id="cmd_alert" oncommand="
-               alert(event.target.tagName + '  Not Yet Implemented');
-       "/>
-       <command id="cmd_apply" oncommand="
-               apply_attribute(event);
-       "/>
-       <command id="cmd_save" oncommand="
-               save_attributes();
-       "/>
-</commandset>
-
-<!-- The top level widget for the cat client -->
-<vbox id="copy_vbox" flex="1">
-       <vbox flex="1">
-               <hbox flex="1">
-                       <deck id="pines_info_deck"/>
-                       <splitter collapse="after"> <grippy/> </splitter>
-                       <vbox>
-                               <deck id="local_info_deck"/>
-                               <!--
-                               <splitter collapse="after"> <grippy/> </splitter>
-                               <vbox>
-                                       <listbox id="notes_listbox"/>   
-                                       <hbox id="note_button_box"/>
-                               </vbox>
-                               -->
-                       </vbox>
-               </hbox>
-               <hbox id="copy_button_box"/>
-       </vbox>
-       <splitter collapse="after"> <grippy/> </splitter>
-       <vbox flex="1" hidden="false">
-               <deck id="bottom_deck"/>
-       </vbox>
-</vbox>
-
-<hbox id="copy_button_box">
-       <!--
-       <button label="&copy.save;" accesskey="&copy.save.key;" command="cmd_alert"/>
-       <spacer flex="1"/>
-       <button label="&copy.reload;" accesskey="&copy.reload.key;" command="cmd_alert"/>
-       <button label="&copy.bucket;" accesskey="&copy.bucket.key;" command="cmd_alert"/>
-       <button label="&copy.clone;" accesskey="&copy.clone.key;" command="cmd_alert"/>
-       <button label="&copy.transfer;" accesskey="&copy.transfer.key;" command="cmd_alert"/>
-       <button label="&copy.delete;" accesskey="&copy.delete.key;" command="cmd_alert"/>
-       <button id="apply_attr_button" label="Apply these Attributes to the selected Copies" command="cmd_apply"/>
-       <button id="save_attr_button" label="Save Changes" command="cmd_save"/>
-       -->
-</hbox>
-
-<hbox id="note_button_box">
-       <hbox flex="1">
-               <button label="&copy.notes.delete;" accesskey="&copy.notes.delete.key;" command="cmd_alert"/>
-               <button label="&copy.notes.add;" accesskey="&copy.notes.add.key;" command="cmd_alert"/>
-       </hbox>
-       <button label="&copy.close;" accesskey="&copy.close.key;" oncommand="window.close();"/>
-</hbox>
-
-<deck id="bottom_deck" flex="1">
-       <vbox>
-               <description id="description_box">Modifying the following copies:</description>
-               <listbox id="ephemeral_listbox" flex="1" seltype="multiple" onselect="transfer_attributes(event);" hidden="true">
-                       <listhead>
-                               <listheader/>
-                               <listheader label="Location"/>
-                               <listheader label="Call Number"/>
-                               <listheader label="Barcode"/>
-                       </listhead>
-                       <listcols>
-                               <listcol/>
-                               <listcol flex="1"/>
-                               <listcol flex="1"/>
-                               <listcol flex="1"/>
-                       </listcols>
-               </listbox>
-       </vbox>
-</deck>
-
-
-<deck id="pines_info_deck" flex="1">
-       <vbox>
-               <listbox id="pines_attr_listbox"/>
-       </vbox>
-</deck>
-
-<deck id="local_info_deck" flex="1">
-       <vbox>
-               <listbox id="local_attr_listbox"/>
-               <hbox pack="end"><button disabled="true" label="&copy.edit_categories;" command="cmd_alert"/></hbox>
-       </vbox>
-</deck>
-
-<!-- At some point we will programatically populate these grids and menus -->
-
-<menulist id="shelving-location-menu">
-       <menupopup id="shelving-location-popup" command="cmd_apply">
-               <menuitem id="shelving-location-prompt" label="Select one..." hidden="true"/>
-       </menupopup>
-</menulist>
-
-<listbox id="notes_listbox" flex="1">
-       <listhead>
-               <listheader label="&copy.notes.opac;"/>
-               <listheader label="&copy.notes.date;"/>
-               <listheader label="&copy.notes.from;"/>
-               <listheader label="&copy.notes;"/>
-       </listhead>
-       <listcols>
-               <listcol/>
-               <listcol/>
-               <listcol/>
-               <listcol flex="1"/>
-       </listcols>
-       <!--
-       <listitem allowevents="true">
-               <listcell>
-                       <checkbox/>
-               </listcell>
-               <listcell label="2004-12-01"/>
-               <listcell label="Admin"/>
-               <listcell label="Legacy Fields: Item Type = BOOK, Item Cat1 = FICTION, Item Cat2 = ADULT"/>
-       </listitem>
-       -->
-</listbox>
-
-<listbox id="local_attr_listbox" flex="1">
-       <listhead>
-               <listheader />
-               <listheader label="&copy.local.attr;"/>
-               <listheader label="&copy.local.attr.value;"/>
-       </listhead>
-       <listcols>
-               <listcol />
-               <listcol flex="1"/>
-               <listcol flex="2"/>
-       </listcols>
-       <!--
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.stat.genre;"/>
-               <listcell>
-                       <menulist id="stat-genre-menu"/>
-                       <hbox pack="end" flex="1">
-                               <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
-                       </hbox>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.stat.audience;"/>
-               <listcell>
-                       <menulist id="stat-audience-menu"/>
-                       <hbox pack="end" flex="1">
-                               <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
-                       </hbox>
-               </listcell>
-       </listitem>
-       -->
-</listbox>
-
-<listbox id="pines_attr_listbox" flex="1">
-       <listhead>
-               <listheader label="&copy.pines.attr;"/>
-               <listheader label="&copy.pines.attr.value;"/>
-       </listhead>
-       <listcols>
-               <listcol flex="1"/>
-               <listcol flex="2"/>
-       </listcols>
-       <listitem allowevents="true" hidden="true">
-               <listcell label="&copy.attr.barcode;"/>
-               <listcell label="330620563200"/>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.copy_status;"/>
-               <listcell>
-                       <menulist id="copy-status-menu"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.shelving_location;"/>
-               <listcell>
-                       <menulist id="shelving-location-menu"/>
-                       <!--<hbox pack="end" flex="1">
-                               <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
-                       </hbox>-->
-               </listcell>
-       </listitem>
-
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.circulating_lib;"/>
-               <listcell>
-                       <menulist id="circulating-library-menu"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.loan_duration;"/>
-               <listcell>
-                       <menulist id="loan-duration-menu"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.fine_level;"/>
-               <listcell>
-                       <menulist id="fine-level-menu"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.circulate;"/>
-               <listcell>
-                       <menulist id="circulate_menu"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.deposit;"/>
-               <listcell>
-                       <menulist id="deposit_menu"/>
-                       <label value="&copy.attr.deposit_amount;"/>
-                       <textbox id="deposit_amount" size="6" onchange="apply_attribute(event);" value="0.00"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.price;"/>
-               <listcell>
-                       <textbox id="price" size="6" onchange="apply_attribute(event);" value="0.00"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.reference_material;"/>
-               <listcell>
-                       <menulist id="reference_menu"/>
-               </listcell>
-       </listitem>
-       <listitem allowevents="true">
-               <listcell label="&copy.attr.opac_visible;"/>
-               <listcell>
-                       <menulist id="opac_visible_menu"/>
-               </listcell>
-       </listitem>
-</listbox>
-
-<menulist id="opac_visible_menu">
-       <menupopup id="opac_visible_popup" command="cmd_apply">
-               <menuitem label="&copy.attr.opac_visible.yes;" value="1" selected="true"/>
-               <menuitem label="&copy.attr.opac_visible.no;" value="0"/>
-       </menupopup>
-</menulist>
-
-<menulist id="reference_menu">
-       <menupopup id="reference_popup" command="cmd_apply" >
-               <menuitem label="&copy.attr.reference_material.no;" value="0" selected="true"/>
-               <menuitem label="&copy.attr.reference_material.yes;" value="1"/>
-       </menupopup>
-</menulist>
-
-<menulist id="deposit_menu">
-       <menupopup id="deposit_popup" command="cmd_apply">
-               <menuitem label="&copy.attr.deposit.no;" value="0" selected="true"/>
-               <menuitem label="&copy.attr.deposit.yes;" value="1"/>
-       </menupopup>
-</menulist>
-
-<menulist id="circulate_menu">
-       <menupopup id="circulate_popup" command="cmd_apply">
-               <menuitem label="&copy.attr.circulate.yes;" value="1" selected="true"/>
-               <menuitem label="&copy.attr.circulate.no;" value="0"/>
-       </menupopup>
-</menulist>
-
-<menulist id="fine-level-menu">
-       <menupopup id="fine-level-popup" command="cmd_apply">
-               <menuitem label="&copy.attr.fine_level.normal;" value="2" selected="true"/>
-               <menuitem label="&copy.attr.fine_level.high;" value="3"/>
-               <menuitem label="&copy.attr.fine_level.low;" value="1"/>
-       </menupopup>
-</menulist>
-
-<menulist id="loan-duration-menu">
-       <menupopup id="loan-duration-popup" command="cmd_apply">
-               <menuitem label="&copy.attr.loan_duration.normal;" value="2" selected="true"/>
-               <menuitem label="&copy.attr.loan_duration.long;" value="3"/>
-               <menuitem label="&copy.attr.loan_duration.short;" value="1"/>
-       </menupopup>
-</menulist>
-
-<menulist id="circulating-library-menu">
-       <menupopup id="circulating-library-popup" command="cmd_apply">
-       </menupopup>
-</menulist>
-
-<menulist id="copy-status-menu">
-       <menupopup id="copy-status-popup" command="cmd_apply">
-               <!-- <menuitem label="&copy.attr.copy_status.example1;" value="&copy.attr.copy_status.example1;"/> -->
-       </menupopup>
-</menulist>
-
-<!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-<keyset id="copy_keys">
-       <key id="" modifiers="accel" key="A" command="cmd_"/>
-</keyset>
-
-</overlay>
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/details.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/details.xul
deleted file mode 100644 (file)
index 7e08783..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's Search Result Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE window SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<window id="details_win" title="Record Details" 
-       orient="vertical" style="overflow: scroll" width="800" height="500"
-       onload="my_init();"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-
-       <script>
-       <![CDATA[
-               var myPackageDir = "evergreen";
-
-               function my_init() {
-
-                       /*document.getElementById('copy_editor_tab').disabled = true;*/
-                       chain_exec(
-                               my_init_spawn_brief_view,
-                               my_init_spawn_marc_view,
-                               my_init_spawn_copy_browser,
-                               /* my_init_spawn_opac_view, */
-                               my_init_spawn_marc_editor
-                       );
-
-               }
-
-               function my_init_spawn_brief_view() {
-                       spawn_brief_view(
-                               document, 'replace_iframe', 'brief_view', {
-                                       'find_this_id' : find_this_id
-                               }
-                       ).find_this_id = find_this_id;
-               }
-
-               function my_init_spawn_marc_view() {
-                       var html = user_request(
-                               "open-ils.search",
-                               "open-ils.search.biblio.record.html",
-                               [ find_this_id ]
-                       )[0];
-                       spawn_interface(
-                               document, 'replace_browser', 'marc_view',
-                               'data:text/html,' + html,
-                               'MARC View2', {}
-                       );
-               }
-
-               function my_init_spawn_marc_editor() {
-                       spawn_marc_editor(
-                               document, 'replace_iframe', 'marc_edit', {
-                                       'find_this_id' : find_this_id
-                               }
-                       ).find_this_id = find_this_id;
-               }
-
-               function my_init_spawn_copy_browser() {
-                       var w = spawn_copy_browser(
-                               document, 'replace_iframe', 'copy_browser', {
-                                       'find_this_id' : find_this_id
-                               }
-                       );
-                       w.find_this_id = find_this_id;
-                       w.parent_window = window;
-               }
-
-               function my_init_spawn_opac_view() {
-                       dump('trying to spawn: ' + params.opac_url + '\n');
-                       spawn_interface(
-                               document, 'replace_browser', 'opac_view',
-                               params.opac_url, 'OPAC View', {}
-                       );
-               }
-       ]]>
-       </script>
-
-       <vbox flex="1">
-               <hbox id="brief_view"/>
-               <tabbox flex="1">
-                       <tabs>
-                               <!-- <tab label="OPAC View"/> -->
-                               <tab label="MARC View"/>
-                               <tab label="MARC Edit"/>
-                               <tab label="Copy Browser"/>
-                               <tab label="Copy Editor" id="copy_editor_tab" />
-                       </tabs>
-                       <tabpanels flex="1">
-                               <!-- <tabpanel id="opac_view"/> -->
-                               <tabpanel id="marc_view"/>
-                               <tabpanel id="marc_edit"/>
-                               <tabpanel id="copy_browser"/>
-                               <tabpanel id="copy_editor">
-                                       <description>
-                                               Select some copies in the Copy Browser tab to edit.
-                                       </description>
-                               </tabpanel>
-                       </tabpanels>
-               </tabbox>
-       </vbox>
-
-</window>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/marc.js b/Evergreen/staff_client/chrome/content/evergreen/cat/marc.js
deleted file mode 100644 (file)
index 830fd8f..0000000
+++ /dev/null
@@ -1,915 +0,0 @@
-mw.sdump('D_CAT','loading marc.js\n');
-
-var character_measure = {};
-var tree;
-var meta;
-var backup_tree;
-
-function my_init() {
-       mw.sdump('D_CAT','Entering my_init() : ' + timer_elapsed('cat') + '\n');
-       mw.sdump('D_CAT','TESTING: marc.js: ' + mw.G['main_test_variable'] + '\n');
-
-       try {
-               mw.sdump('D_CAT',"DOC ID " + find_this_id + "\n" );
-       } catch(E) {
-               
-       }
-
-       if (! params.import_tree ) {
-               tree = retrieve_record( find_this_id );
-               /*
-               meta = retrieve_meta_record( find_this_id );
-               document.getElementById('meta_create_date').setAttribute('value',
-                       meta.create_date().split('.')[0]        
-               );
-               document.getElementById('meta_creator').setAttribute('value',
-                       meta.creator()  
-               );
-               document.getElementById('meta_edit_date').setAttribute('value',
-                       meta.edit_date().split('.')[0]
-               );
-               document.getElementById('meta_editor').setAttribute('value',
-                       meta.editor()   
-               );
-               document.getElementById('meta_tcn_publisher').setAttribute('value',
-                       meta.tcn_value()        
-               );
-               if (params.record_columns) {
-                       var text = document.createTextNode(
-                               params.record_columns[1] + ' / ' + params.record_columns[2]
-                       );
-                       document.getElementById('meta_title_author').appendChild(
-                               text
-                       );
-               }
-               */
-       } else {
-               tree = params.import_tree;
-       }
-       if (tree.name() == 'collection') { 
-               tree = find_list(
-                       tree.children(),
-                       function (obj) {
-                               return (obj.name() == 'record');
-                       }
-               ); 
-       }
-
-       //mw.sdump('D_CAT','Retrieved: ' + js2JSON(tree) + '\n');
-       //mw.sdump('D_CAT','Retrieved: ' + js2JSON(meta) + '\n');
-       build_grid( 
-               document.getElementById('ctrl_rows'), 
-               document.getElementById('data_rows'), 
-               tree
-       );
-       fixed_fields_show_only('fixed_grid','BKS');
-       apply_event_listeners('fixed_grid','fixed');
-       character_measure = measure_character('marc_win','M');
-       window.addEventListener('resize',my_resize_handler,false);
-       handle_tag_change();
-       document.getElementById('data_rows').firstChild.firstChild.firstChild.focus();
-       mw.sdump('D_CAT','Exiting my_init() : ' + timer_elapsed('cat') + '\n');
-}
-
-function measure_character(w,c) {
-       var el = document.getElementById(w);
-       var b = document.createElement('hbox');
-       var l = document.createElement('label');
-       l.setAttribute('class','marc');
-       el.appendChild(b);
-       b.appendChild(l);
-       var lwidth = l.boxObject.width;
-       l.value = c;
-       lwidth = Math.abs( l.boxObject.width - lwidth);
-       var lheight = l.boxObject.height;
-       b.removeChild(l); el.removeChild(b);
-       return { "width" : lwidth, "height" : lheight };
-}
-
-function my_resize_handler(ev) {
-       mw.sdump('D_CAT','resize\n');
-       resizeAllWrappers('ctrl_rows');
-       resizeAllWrappers('data_rows');
-}
-
-function retrieve_record(id) {
-       mw.sdump('D_CAT','Entering retrieve_record() : ' + timer_elapsed('cat') + '\n');
-       var result;
-       try {
-               result = user_request(
-                       'open-ils.cat',
-                       'open-ils.cat.biblio.record.tree.retrieve',
-                       [ id ]
-               );
-       } catch(E) {
-               handle_error(E);
-       }
-       //var result = [ JSON2js( test_nodeset() ) ];
-       /*var result = user_request(
-               'open-ils.cat',
-               'open-ils.cat.biblio.record.tree.retrieve.test',
-               [ id ]
-       );*/
-       if (typeof(result[0]) != 'object') {
-               alert( 'user_request gave ' + js2JSON(result) );
-               mw.sdump('D_CAT','Exiting retrieve_record() : ' + timer_elapsed('cat') + '\n');
-               return 0;
-       } else {
-               /*
-               mw.sdump('D_CAT','Entering nodeset2tree() : ' + timer_elapsed('cat') + '\n');
-               result[0] = nodeset2tree( result[0] )[0];
-               mw.sdump('D_CAT','Exiting nodeset2tree() : ' + timer_elapsed('cat') + '\n');
-               */
-               mw.sdump('D_CAT','Exiting retrieve_record() : ' + timer_elapsed('cat') + '\n');
-               return result[0];
-       }
-}
-
-function retrieve_meta_record(id) {
-       mw.sdump('D_CAT','Entering retrieve_meta_record() : ' + timer_elapsed('cat') + '\n');
-       var result;
-       try {
-               result = user_request(
-                       'open-ils.cat',
-                       'open-ils.cat.biblio.record.metadata.retrieve',
-                       [ id ]
-               );
-       } catch(E) {
-               handle_error(E);
-       }
-       if (typeof(result[0]) != 'object') {
-               alert( 'user_request gave ' + js2JSON(result) );
-               mw.sdump('D_CAT','Exiting retrieve_meta_record() : ' + timer_elapsed('cat') + '\n');
-               return 0;
-       } else {
-               mw.sdump('D_CAT','Exiting retrieve_meta_record() : ' + timer_elapsed('cat') + '\n');
-               return result[0][0];
-       }
-}
-
-
-
-function empty_me(p) {
-       while (p.lastChild) {
-               //mw.sdump('D_CAT','emptying ' + p.lastChild.tagName + '\n');
-               empty_me(p.lastChild);
-               p.removeChild(p.lastChild);
-       }
-}
-
-function empty_grid( ctrl_rows, data_rows ) {
-       var rows = document.getElementById(ctrl_rows);
-       empty_me(rows);
-       rows = document.getElementById(data_rows);
-       empty_me(rows);
-}
-
-function build_grid( ctrl_rows, data_rows, root ) {
-       mw.sdump('D_CAT','Entering build_grid() : ' + timer_elapsed('cat') + '\n');
-       var ctrl_count = 1; var data_count = 1;
-       //mw.sdump('D_CAT', 'what is root?\n' + pretty_print(js2JSON(root)) + '\n');
-       mw.sdump('D_CAT','root.children.length = ' + root.children.length + '\n');
-       root_loop: 
-       var children = root.children();
-       for (var i in children) {
-               var node = children[i];
-               var node_type = node.node_type();
-               var row = {};
-               switch(node_type) {
-                       case 18: case '18': /* namespace */ 
-                               break;
-                       case 1: case '1': /* element */
-                               row = get_row(node);
-                               switch(row.type) {
-                                       case 'leader': case 'controlfield':
-                                                       populate_xul_row( 
-                                                               ctrl_rows, 
-                                                               row, 
-                                                               'ctrl_' + ctrl_count++
-                                                       );
-                                               break;
-                                       case 'datafield':
-                                                       populate_xul_row( 
-                                                               data_rows, 
-                                                               row, 
-                                                               'data_' + data_count++
-                                                       );
-                                               break;
-                                       default:
-                                               mw.sdump('D_CAT','Unexpected row type: ' + 
-                                                       js2JSON(node) + '\n');
-                                               break;
-                               }
-                               break;
-                       default: /* eh? */
-                               mw.sdump('D_CAT', 'Did not expect node_type = ' + node_type + 
-                                       ' : ' + js2JSON(node) + '\n');
-                               break;
-               }
-               //mw.sdump('D_CAT', i + ' ' + dump_ns_node(node) + '\n');
-       }
-       mw.sdump('D_CAT','Exiting build_grid() : ' + timer_elapsed('cat') + '\n');
-}
-
-function get_row( top ) {
-       var row = { 
-               'field' : { 'id' : '1' },
-               'tag' : { 'value' : '', 'id' : '-1' },
-               'ind1' : { 'value' : '', 'id' : '-1' },
-               'ind2' : { 'value' : '', 'id' : '-1' },
-               'data' : { 'value' : '', 'id' : '-1' }
-       };
-       var name = top.name(); 
-       var id = top.intra_doc_id(); 
-       var children = top.children();
-       row.field.id = id;
-       mw.sdump('D_CAT','Making row.... row.field.id = <' + id + '>\n');
-       if (name == 'leader') { row.tag.value = 'LDR'; row.tag.id = id; }
-       row.type = name;
-       top_loop:
-       for (var i in children) {
-               var node = children[i];
-               var node_type = node.node_type();
-               var node_name = node.name();
-               var node_value = node.value();
-               var node_id = node.intra_doc_id();
-               var node_children = node.children();
-               switch(node_type) {
-                       case 18: case '18': /* namespace */ 
-                               continue top_loop;
-                       case 2: case '2': /* attribute */ 
-                               switch(node_name) {
-                                       case 'tag':
-                                               row.tag.value = node_value;
-                                               row.tag.id = node_id;
-                                               break;
-                                       case 'ind1':
-                                               row.ind1.value = node_value;
-                                               row.ind1.id = node_id;
-                                               break;
-                                       case 'ind2':
-                                               row.ind2.value = node_value;
-                                               row.ind2.id = node_id;
-                                               break;
-                                       default:
-                                               mw.sdump('D_CAT','\tattribute surprise on node_name = ' +
-                                                       node_name + ' : ' 
-                                                       + js2JSON(node) + '\n');
-                                               break;
-                               }
-                               break;
-                       case 1: case '1': /* element */
-                               switch(node_name) {
-                                       case 'subfield':
-                                               row.data.value = row.data.value + 
-                                               String.fromCharCode(8225) +
-                                               node_children[0].value() + ' ' + 
-                                               node_children[1].value() + ' ';
-                                               row.data.id = node_id;
-                                               break;
-                                       default:
-                                               mw.sdump('D_CAT','\telement surprise on node_name = ' +
-                                                       node_name + ' : ' 
-                                                       + js2JSON(node) + '\n');
-                                               break;
-                               }
-                               break;
-                       case 3: case '3': /* textNode */
-                               row.data.value = node_value;
-                               row.data.id = node_id;
-                               break;
-                       default: /* eh? */
-                               mw.sdump('D_CAT','\tunknown type surprise on node_type = ' +
-                                       node_type + ' : '  +
-                                       js2JSON(node) + '\n');
-                               break;
-               }
-       }
-       //mw.sdump('D_CAT',js2JSON(row) + '\n');
-       return row;
-}
-
-function build_xul_row( id, type ) {
-       switch(type) {
-               case 'leader': case 'controlfield':
-                       return build_ctrl_row( id );
-                       break;
-               case 'datafield':
-                       return build_data_row( id );
-                       break;
-               default:
-                       mw.sdump('D_CAT','Unexpected row type\n');
-                       break;
-       }
-}
-
-function build_data_row( id ) {
-       //mw.sdump('D_CAT','Entering build_xul_row() : ' + timer_elapsed('cat') + '\n');
-       var xul_row = document.createElement('row');
-       xul_row.setAttribute('id',id);
-       xul_row.setAttribute('class','field_row data_row');
-       //xul_rows.appendChild(xul_row);
-
-       /* the elements in the row */
-       var wrapper1 = document.createElement('hbox');
-       wrapper1.setAttribute( 'class', 'marc_wrapper marc_tag_wrapper');
-       var xul_col1 = document.createElement('textbox');
-               xul_col1.setAttribute( 'cols', '3');
-               xul_col1.setAttribute( 'rows', '1');
-               xul_col1.setAttribute( 'multiline', 'true');
-               xul_col1.setAttribute( 'size', '3');
-               xul_col1.setAttribute( 'class', 'marc marc_tag');
-               wrapper1.appendChild(xul_col1);
-               xul_row.appendChild(wrapper1);
-       var wrapper2 = document.createElement('hbox');
-       wrapper2.setAttribute( 'class', 'marc_wrapper marc_ind_wrapper marc_ind1_wrapper');
-       var xul_col2 = document.createElement('textbox');
-               xul_col2.setAttribute( 'cols', '1');
-               xul_col2.setAttribute( 'rows', '1');
-               xul_col2.setAttribute( 'multiline', 'true');
-               xul_col2.setAttribute( 'size', '1');
-               xul_col2.setAttribute( 'class', 'marc marc_ind marc_ind1');
-               wrapper2.appendChild(xul_col2);
-               xul_row.appendChild(wrapper2);
-       var wrapper3 = document.createElement('hbox');
-       wrapper3.setAttribute( 'class', 'marc_wrapper marc_ind_wrapper marc_ind2_wrapper');
-       var xul_col3 = document.createElement('textbox');
-               xul_col3.setAttribute( 'cols', '1');
-               xul_col3.setAttribute( 'rows', '1');
-               xul_col3.setAttribute( 'multiline', 'true');
-               xul_col3.setAttribute( 'size', '1');
-               xul_col3.setAttribute( 'class', 'marc marc_ind marc_ind2');
-               wrapper3.appendChild(xul_col3);
-               xul_row.appendChild(wrapper3);
-       var wrapper4 = document.createElement('hbox');
-       wrapper4.setAttribute( 'class', 'marc_wrapper marc_data_wrapper');
-       var xul_col4 = document.createElement('textbox');
-               xul_col4.setAttribute( 'subfields', 'true');
-               xul_col4.setAttribute( 'cols', '60');
-               xul_col4.setAttribute( 'size', '60');
-               xul_col4.setAttribute( 'rows', '1');
-               xul_col4.setAttribute( 'multiline', 'true');
-               xul_col4.setAttribute( 'class', 'marc marc_data resizable');
-               xul_col4.setAttribute( 'flex', '1');
-               wrapper4.appendChild(xul_col4);
-               xul_row.appendChild(wrapper4);
-
-       return xul_row;
-       //mw.sdump('D_CAT','Exiting build_xul_row() : ' + timer_elapsed('cat') + '\n');
-}
-
-function build_ctrl_row( id ) {
-       //mw.sdump('D_CAT','Entering build_xul_row() : ' + timer_elapsed('cat') + '\n');
-       var xul_row = document.createElement('row');
-       xul_row.setAttribute('class','field_row ctrl_row');
-       xul_row.setAttribute('id',id);
-       //xul_rows.appendChild(xul_row);
-
-       /* the elements in the row */
-       var wrapper1 = document.createElement('hbox');
-       wrapper1.setAttribute( 'class', 'marc_wrapper marc_tag_wrapper ctrl_wrapper');
-       var xul_col1 = document.createElement('textbox');
-               xul_col1.setAttribute( 'cols', '3');
-               xul_col1.setAttribute( 'rows', '1');
-               xul_col1.setAttribute( 'multiline', 'true');
-               xul_col1.setAttribute( 'size', '3');
-               xul_col1.setAttribute( 'class', 'marc marc_tag ctrl');
-               xul_col1.setAttribute( 'disabled', 'true');
-               wrapper1.appendChild(xul_col1);
-               xul_row.appendChild(wrapper1);
-       var wrapper4 = document.createElement('hbox');
-       wrapper4.setAttribute( 'class', 'marc_wrapper marc_data_wrapper ctrl_wrapper');
-       var xul_col4 = document.createElement('textbox');
-               xul_col4.setAttribute( 'cols', '60');
-               xul_col4.setAttribute( 'size', '60');
-               xul_col4.setAttribute( 'rows', '1');
-               xul_col4.setAttribute( 'multiline', 'true');
-               xul_col4.setAttribute( 'class', 'marc marc_data ctrl');
-               xul_col4.setAttribute( 'flex', '1');
-               xul_col4.setAttribute( 'disabled', 'true');
-               wrapper4.appendChild(xul_col4);
-               xul_row.appendChild(wrapper4);
-
-       return xul_row;
-       //mw.sdump('D_CAT','Exiting build_xul_row() : ' + timer_elapsed('cat') + '\n');
-}
-
-
-function apply_event_listeners(c,which) {
-       switch(which) {
-               case 'ctrl':
-                       break;
-               case 'data':
-                       c[0].firstChild.addEventListener("change",handle_tag_change,false);
-                       c[0].firstChild.addEventListener("keypress",handle_keypress,false);
-                       c[1].firstChild.addEventListener("keypress",handle_keypress,false);
-                       c[1].firstChild.addEventListener("change",handle_tag_change,false);
-                       c[2].firstChild.addEventListener("keypress",handle_keypress,false);
-                       c[2].firstChild.addEventListener("change",handle_tag_change,false);
-                       c[3].firstChild.addEventListener("keypress",handle_keypress,false);
-                       c[3].firstChild.addEventListener("change",handle_tag_change,false);
-                       c[3].firstChild.addEventListener("change",handle_change,false);
-                       break;
-               case 'fixed':
-                       var g = document.getElementById(c);
-                       var nl = g.getElementsByTagName('textbox');
-                       for (var i in nl) {
-                               if (typeof(nl[i])=='object') {
-                                       nl[i].addEventListener("change",handle_fixed_change,false);
-                               }
-                       }
-                       break;
-       }
-}
-
-function populate_xul_row( xul_rows, row, id ) {
-
-       var r = document.getElementById(id);
-       if (!r) {
-               r = build_xul_row(id,row.type);
-               xul_rows.appendChild(r);
-               //r = document.getElementById(id);
-       }
-       r.setAttribute('notempty','true');
-       r.setAttribute('mynode',row.field.id);
-       var c = r.childNodes;
-       switch(row.type) {
-               case 'leader': case 'controlfield':
-                       c[0].firstChild.value = row.tag.value;
-                       c[0].firstChild.select();
-                       c[0].firstChild.setAttribute('mynode', row.tag.id);
-                       c[1].firstChild.value = row.data.value;
-                       c[1].firstChild.select();
-                       c[1].firstChild.setAttribute('mynode', row.data.id);
-                       apply_event_listeners(c,'ctrl');
-                       break;
-               case 'datafield':
-                       c[0].firstChild.value = row.tag.value;
-                       c[0].firstChild.select();
-                       c[0].firstChild.setAttribute('mynode', row.tag.id);
-                       c[1].firstChild.value = row.ind1.value;
-                       c[1].firstChild.select();
-                       c[1].firstChild.setAttribute('mynode', row.ind1.id);
-                       c[2].firstChild.value = row.ind2.value;
-                       c[2].firstChild.select();
-                       c[2].firstChild.setAttribute('mynode', row.ind2.id);
-                       c[3].firstChild.value = row.data.value;
-                       c[3].firstChild.select();
-                       c[3].firstChild.setAttribute('mynode', row.data.id);
-                       apply_event_listeners(c,'data');
-                       break;
-       }
-       //resizeWrapper(c3);
-}
-
-function handle_change(ev) {
-       mw.sdump('D_CAT','handle_change\n');
-       var t = ev.target;
-       // parse subfields
-       resizeWrapper(t);
-}
-
-function resizeWrapper(t) {
-       if (t.tagName != 'textbox') { return; }
-       var wrapper = t.parentNode;
-       var width = wrapper.boxObject.width;
-       var height = wrapper.boxObject.height;
-
-       /*var lwidth = character_measure.width * t.value.length; // linux */
-       var lwidth = (character_measure.width*2+5) * t.value.length; // windows
-       var lheight = character_measure.height;
-
-       if (width == 0) { width = lwidth; }
-       var xrows = Math.ceil( lwidth / width );
-       if (xrows < 1) { xrows = 1; }
-       var xheight = (xrows * (lheight+5)); 
-
-       //mw.sdump('D_CAT',wrapper.parentNode.id + ' wrapper: ' + width + 'x' + height + ' label: ' + lwidth + 'x' + lheight + '\n');
-       wrapper.setAttribute('style','min-height: ' + xheight + 'px;');
-}
-
-function resizeAllWrappers(rows) {
-       mw.sdump('D_CAT','Entering resizeAllWrappers() : ' + timer_elapsed('cat') + '\n');
-       var p = document.getElementById(rows);
-       var c = p.childNodes;
-       for (var r in c) {
-               if (typeof(c[r])=='object') {
-                       if (c[r].getAttribute('notempty')) {
-                               resizeWrapper(c[r].lastChild.firstChild);
-                       } else {
-                               p.removeChild(c[r]);
-                       }
-               }
-       }
-       mw.sdump('D_CAT','Exiting resizeAllWrappers() : ' + timer_elapsed('cat') + '\n');
-}
-
-function find_element_with_id(ns_slice,id) {
-       // we might change this in the future to be a hash lookup
-       // { node id => [lvl 1 index, lvl 2 index, lvl 3 index]  }
-       // with the hash being populated when the tree is generated
-       // and updated when we go to insert nodes
-       //mw.sdump('D_CAT','Find ' + id + ' in ' + js2JSON(ns_slice) + '\n');
-       //mw.sdump('D_CAT','Find ' + id + '\n');
-       for (i in ns_slice) {
-               if (ns_slice[i].intra_doc_id() == id) {
-                       //mw.sdump('D_CAT','Found at index ' + i + '\n');
-                       return i;
-               }
-       }
-       mw.sdump('D_CAT',id + 'not found in' + js2JSON(ns_slice) + '\n');
-}
-
-function delete_children(branch) {
-       var children = branch.children();
-       for (var c in children) {
-               children[c].isdeleted(1);
-               mw.sdump('D_CAT', children[c].name() + ':' +
-                       children[c].id() + ':' +
-                       children[c].intra_doc_id() + '.is_deleted = 1\n');
-               if (children[c].children()) {
-                       delete_children(children[c]);
-               }
-       }
-}
-
-function submit_marc() {
-       // walk through the marc grid and compare with the tree
-       // 1) updates and deletes
-
-mw.sdump('D_CAT','Updates and Deletes\n');
-       backup_tree = JSON2js( js2JSON( tree ) );
-
-       var tree_fields = tree.children(); // LEVEL 1
-       var ctrl_rows = document.getElementById('ctrl_rows').childNodes;
-       for (var r = 0; r < ctrl_rows.length ; r++) {
-               //if (r == 0) { continue; } // skip leader for now
-               //mw.sdump('D_CAT', r + '\n');
-               var tag_node_id;
-               try {
-                       tag_node_id = ctrl_rows[r].getAttribute('mynode');
-               } catch(E) {
-                       mw.sdump('D_CAT','Could not find mynode in ctrl_rows[' + r + ']\n');
-                       continue;
-               }
-               //mw.sdump('D_CAT', r + ':' + ctrl_rows[r].tagName + ':' + tag_node_id + '\n' );
-               if (tag_node_id) {
-mw.sdump('D_CAT','Processing ctrl_rows[' + r + '], tag_node_id = ' + tag_node_id + '\n');
-                       if (tag_node_id < 0) { continue; } // new node, handle elsewhere
-mw.sdump('D_CAT','1st find =========================================\n')
-                       var tree_pos = find_element_with_id(tree_fields,tag_node_id);
-                       if (tree_pos == null) { alert('tree_pos problem!'); }
-                       var tree_field = tree_fields[tree_pos];
-
-                       if (ctrl_rows[r].getAttribute('hidden') == 'true') {
-                               tree_field.isdeleted(1);
-                               mw.sdump('D_CAT', tree_field.name() + ':' +
-                                       tree_field.id() + ':' +
-                                       tree_field.intra_doc_id() + '.isdeleted = 1\n');
-                               delete_children(tree_field);
-                               continue;
-                       }
-
-                       var col1 = ctrl_rows[r].childNodes[0].firstChild;
-                       var col2 = ctrl_rows[r].childNodes[1].firstChild;
-                       var id1 = col1.getAttribute('mynode');
-                       var id2 = col2.getAttribute('mynode');
-                       mw.sdump('D_CAT','id1 = ' + id1 + ' col1.value = ' + col1.value + '  id2 = ' + id2 + ' col2.value = ' + col2.value + '\n');
-                       var tree_field_children = tree_field.children(); // LEVEL 2
-
-                       if (r == 0) { // leader is special.  Only one child
-                               if (tree_field_children[0].value() != col2.value) {
-                                       tree_field_children[0].value(col2.value);
-                                       tree_field_children[0].ischanged(1);
-                                       mw.sdump('D_CAT', tree_field_children[0].name() + ':' +
-                                               tree_field_children[0].id() + ':' +
-                                               tree_field_children[0].intra_doc_id() +
-                                               '.ischanged = 1\n');
-                               }
-                               continue;
-                       }
-
-mw.sdump('D_CAT','2nd find =========================================\n')
-                       var tree_tag = find_element_with_id(tree_field_children,id1);
-mw.sdump('D_CAT','3rd find =========================================\n')
-                       var tree_value = find_element_with_id(tree_field_children,id2);
-                       if (tree_tag == null) { alert('tree_tag problem!'); }
-                       if (tree_value == null) { alert('tree_value problem!'); }
-                       if (tree_field_children[tree_tag].value() != col1.value) {
-                               tree_field_children[tree_tag].value(col1.value);
-                               tree_field_children[tree_tag].ischanged(1);
-                               mw.sdump('D_CAT', tree_field_children[tree_tag].name() + ':' +
-                                       tree_field_children[tree_tag].id() + ':' +
-                                       tree_field_children[tree_tag].intra_doc_id() +
-                                       '.ischanged = 1\n');
-                       }
-                       if (tree_field_children[tree_value].value() != col2.value) {
-                               tree_field_children[tree_value].value(col2.value);
-                               tree_field_children[tree_value].ischanged(1);
-                               mw.sdump('D_CAT', tree_field_children[tree_value].name() + ':' +
-                                       tree_field_children[tree_value].id() + ':' +
-                                       tree_field_children[tree_value].intra_doc_id() +
-                                       '.ischanged = 1\n');
-                       }
-               }
-       }
-       var data_rows = document.getElementById('data_rows').childNodes;
-       for (var r = 0; r < data_rows.length ; r++ ) {
-               var tag_node_id;
-               try {
-                       tag_node_id = data_rows[r].getAttribute('mynode');
-               } catch(E) {
-                       continue;
-               }
-               //mw.sdump('D_CAT', r + ':' + data_rows[r].tagName + ':' + tag_node_id + '\n' );
-               if (tag_node_id) {
-mw.sdump('D_CAT','Processing data_rows[' + r + '], tag_node_id = ' + tag_node_id + '\n');
-                       if (tag_node_id < 0) { continue; } // new node, handle elsewhere
-mw.sdump('D_CAT','4th find =========================================\n')
-                       var tree_pos = find_element_with_id(tree_fields,tag_node_id);
-                       if (tree_pos == null) { alert('tree_pos problem!'); }
-                       var tree_field = tree_fields[tree_pos];
-
-                       if (data_rows[r].getAttribute('hidden') == 'true') {
-                               tree_field.isdeleted(1);
-                               mw.sdump('D_CAT',tree_field.name() + ':' +
-                                       tree_field.id() + ':' +
-                                       tree_field.intra_doc_id() +
-                                       '.isdeleted = 1\n');
-                               delete_children(tree_field);
-                               continue;
-                       }
-
-                       var col1 = data_rows[r].childNodes[0].firstChild;
-                       var col2 = data_rows[r].childNodes[1].firstChild;
-                       var col3 = data_rows[r].childNodes[2].firstChild;
-                       var col4 = data_rows[r].childNodes[3].firstChild;
-                       var id1 = col1.getAttribute('mynode');
-                       var id2 = col2.getAttribute('mynode');
-                       var id3 = col3.getAttribute('mynode');
-                       var id4 = col4.getAttribute('mynode');
-                       var tree_field_children = tree_field.children(); // LEVEL 2
-mw.sdump('D_CAT','5th find =========================================\n')
-                       var tree_tag = find_element_with_id(tree_field_children,id1);
-mw.sdump('D_CAT','6th find =========================================\n')
-                       var tree_ind1 = find_element_with_id(tree_field_children,id2);
-mw.sdump('D_CAT','7th find =========================================\n')
-                       var tree_ind2 = find_element_with_id(tree_field_children,id3);
-mw.sdump('D_CAT','8th find =========================================\n')
-                       var tree_data = find_element_with_id(tree_field_children,id4);
-                       if (tree_tag == null) { alert('tree_tag problem!'); }
-                       if (tree_ind1 == null) { alert('tree_ind1 problem!'); }
-                       if (tree_ind2 == null) { alert('tree_ind2 problem!'); }
-                       if (tree_data == null) { alert('tree_data problem!'); }
-                       if (tree_field_children[tree_tag].value() != col1.value) {
-                               tree_field_children[tree_tag].value(col1.value);
-                               tree_field_children[tree_tag].ischanged(1);
-                               mw.sdump('D_CAT', tree_field_children[tree_tag].name() + ':' +
-                                       tree_field_children[tree_tag].id() + ':' +
-                                       tree_field_children[tree_tag].intra_doc_id() +
-                                       '.is_changed = 1\n');
-                       }
-                       if (tree_field_children[tree_ind1].value() != col2.value) {
-                               tree_field_children[tree_ind1].value(col2.value);
-                               tree_field_children[tree_ind1].ischanged(1);
-                               mw.sdump('D_CAT', tree_field_children[tree_ind1].name() + ':' +
-                                       tree_field_children[tree_ind1].id() + ':' +
-                                       tree_field_children[tree_ind1].intra_doc_id() +
-                                       '.is_changed = 1\n');
-                       }
-                       if (tree_field_children[tree_ind2].value() != col3.value) {
-                               tree_field_children[tree_ind2].value(col3.value);
-                               tree_field_children[tree_ind2].ischanged(1);
-                               mw.sdump('D_CAT', tree_field_children[tree_ind2].name() + ':' +
-                                       tree_field_children[tree_ind2].id() + ':' +
-                                       tree_field_children[tree_ind2].intra_doc_id() +
-                                       '.is_changed = 1\n');
-                       }
-                       process_subfields(tree_field_children,col4.value); // LEVEL 3
-               }
-       }
-
-
-       // 2) inserts
-mw.sdump('D_CAT','Inserts\n');
-
-       for (var r = 0; r < ctrl_rows.length ; r++) {
-               var newnode;
-               try {
-                       newnode = ctrl_rows[r].getAttribute('newnode');
-               } catch(E) {
-                       continue;
-               }
-               if (newnode=='true') {
-mw.sdump('D_CAT','New node = ctrl_rows[' + r + ']');
-                       if (ctrl_rows[r].getAttribute('hidden')=='true') { continue; }
-                       var col1 = ctrl_rows[r].childNodes[0].firstChild.value;
-                       var col2 = ctrl_rows[r].childNodes[1].firstChild.value;
-                       var level1 = new brn(); 
-                               populate_node( level1, 1, 'controlfield' );
-                       var level2a = new brn(); 
-                               populate_node( level2a, 2, 'tag' );
-                               level2a.value(col1);
-                       var level2b = new brn();
-                               populate_node( level2b, 3, null );
-                               level2b.value(col2);
-                       level1.children([ level2a, level2b ]);
-                       ctrl_rows[r].setAttribute('mynode', level1.intra_doc_id());
-mw.sdump('D_CAT',' with intra_doc_id = ' + level1.intra_doc_id() + '\n');
-                       insert_into_tree(tree.children(),ctrl_rows[r],level1);
-               }
-       }
-
-       for (var r = 0; r < data_rows.length ; r++) {
-               var newnode;
-               try {
-                       newnode = data_rows[r].getAttribute('newnode');
-               } catch(E) {
-                       continue;
-               }
-               if (newnode=='true') {
-mw.sdump('D_CAT','New node = data_rows[' + r + ']');
-                       if (data_rows[r].getAttribute('hidden')=='true') { continue; }
-                       var col1 = data_rows[r].childNodes[0].firstChild.value;
-                       var col2 = data_rows[r].childNodes[1].firstChild.value;
-                       var col3 = data_rows[r].childNodes[2].firstChild.value;
-                       var col4 = data_rows[r].childNodes[3].firstChild.value;
-                       var level1 = new brn(); 
-                               populate_node( level1, 1, 'datafield' );
-                       var level2a = new brn(); 
-                               populate_node( level2a, 2, 'tag' );
-                               level2a.value(col1);
-                       var level2b = new brn();
-                               populate_node( level2b, 2, 'ind1' );
-                               level2b.value(col2);
-                       var level2c = new brn();
-                               populate_node( level2c, 2, 'ind2' );
-                               level2c.value(col3);
-                       level1.children([ level2a, level2b, level2c ]);
-                       process_subfields(level1.children(),col4);
-                       data_rows[r].setAttribute('mynode', level1.intra_doc_id());
-mw.sdump('D_CAT',' with intra_doc_id = ' + level1.intra_doc_id() + '\n');
-                       insert_into_tree(tree.children(),data_rows[r],level1);
-               }
-
-       }
-       //mw.sdump('D_CAT','******\nSending: ' + pretty_print(js2JSON(tree)) + '\n');
-       mw.sdump('D_CAT','Auth session: ' + mw.G['auth_ses'][0] + '\n');
-       try {
-               if (params.import_tree) {
-
-                       if (params.new_tree) {
-                               tree = user_request(
-                                       'open-ils.cat',
-                                       'open-ils.cat.biblio.record_tree.create',
-                                       [ mw.G.auth_ses[0], tree ]
-                               )[0];
-                       } else {
-                               tree = user_request(
-                                       'open-ils.cat',
-                                       'open-ils.cat.biblio.record.tree.import',
-                                       [ mw.G['auth_ses'][0], tree ]
-                               )[0];
-                       }
-               } else {
-                       tree = user_request(
-                                       'open-ils.cat',
-                                       'open-ils.cat.biblio.record.tree.commit',
-                                       [ mw.G['auth_ses'][0], tree ]
-                       )[0];
-               }
-               if (typeof(tree) == 'object') {
-                       mw.sdump('D_CAT','\n\n\n\nnew tree = ' + js2JSON(tree) + '\n');
-                       params.import_tree = false;
-                       new_node_id = -1;
-                       empty_grid('ctrl_rows','data_rows');
-                       build_grid( 
-                               document.getElementById('ctrl_rows'), 
-                               document.getElementById('data_rows'), 
-                               tree
-                       );
-                       handle_tag_change();
-                       my_resize_handler();
-                       alert('MARC record successfully updated.');
-               } else {
-                       throw('result: ' + tree + '\n');
-               }
-       } catch(E) {
-               mw.sdump('D_CAT','backup_tree\n');
-               tree = backup_tree;
-               handle_tag_change();
-               my_resize_handler();
-               handle_error(E);
-       }
-}
-
-function insert_into_tree(branch,r,n) {
-       var s = nextSibling_not_hidden(r);
-       if (s) {
-               mw.sdump('D_CAT','9th find =========================================\n')
-               mw.sdump('D_CAT','s = ' + s + '\n');
-               mw.sdump('D_CAT','s.getAttribute mynode = <' + s.getAttribute('mynode') + '>\n');
-               var pos = find_element_with_id(branch,s.getAttribute('mynode'));
-               branch.splice(pos,0,n);
-       } else {
-               branch.push(n);
-       }
-}
-
-var new_node_id = -1;
-function populate_node(node,ntype,name) {
-       node.intra_doc_id( new_node_id-- );
-       node.isnew( 1 );
-       node.node_type( ntype );
-       node.name( name );
-       mw.sdump('D_CAT', node.name() + ':' + node.intra_doc_id() + '.is_new = 1\n');
-}
-
-function process_subfields(tfc,datastring) {
-       mw.sdump('D_CAT','process_subfields: <' + tfc + '> <' + datastring + '>\n');
-       var orig_subfields = [];
-       //mw.sdump('D_CAT','\n');
-       for (var i in tfc) {
-               mw.sdump('D_CAT',i + ' : ' + typeof(tfc[i]) + ' : ' + js2JSON(tfc[i]) + ' : node_type() = ' + tfc[i].node_type() + '\n');
-               try {
-                       if (tfc[i].node_type() == 1) {
-                               var orig_data = tfc[i].children()[1].value();
-                               orig_data = orig_data.replace(/^\s+/,'').replace(/\s+$/,'');
-                               orig_subfields.push( [ 
-                                       i, // subfield node index
-                                       tfc[i].children()[0].value(), // subf indicator
-                                       orig_data // data
-                               ] );
-                       }
-
-               } catch(E) {
-                       mw.sdump('D_CAT','\tan error? gasp: ' + js2JSON(E) + '\n');
-                       continue;
-               }
-       }
-       datastring = datastring.replace(/^\s+/,'').replace(/\s+$/,'');
-       var local_subf_array = datastring.split(String.fromCharCode(8225));
-       // Our validation routines should assert that the beginning of
-       // a data string start with the subfield delimiter symbol.  We're
-       // passing the buck of the 'implicit' subfield-a check elsewhere.
-       local_subf_array.shift();
-       mw.sdump('D_CAT','orig_subfields = ' + js2JSON(orig_subfields) + '\n');
-       mw.sdump('D_CAT','local_subfields = ' + js2JSON(local_subf_array) + '\n');
-       for (var i in local_subf_array) {
-               if ((local_subf_array[i]=='')||(local_subf_array==null)) { continue; }
-               var s_ind = local_subf_array[i].substr(0,1);
-               var s_data = local_subf_array[i].substr(1).replace(/^\s+/,'').replace(/\s+$/,'');
-               mw.sdump('D_CAT','Processing code = ' + s_ind + ' and value = ' + s_data + '\n');
-               if (!orig_subfields[i]) { // new subfield
-                       mw.sdump('D_CAT','making new subfield : i = ' + i + '\n');
-                       var level1 = new brn(); 
-                               populate_node( level1, 1, 'subfield' );
-                       var level2a = new brn(); 
-                               populate_node( level2a, 2, 'code' );
-                               level2a.value(s_ind);
-                       var level2b = new brn();
-                               populate_node( level2b, 3, null );
-                               level2b.value(s_data);
-                       level1.children([ level2a, level2b ]);
-                       tfc.push(level1);
-                       mw.sdump('D_CAT','New node = ' + js2JSON(level1) + '\n');
-               } else {
-                       var orig_node = orig_subfields[i][0];
-                       var orig_ind = orig_subfields[i][1];
-                       var orig_data = orig_subfields[i][2];
-                       if (orig_ind != s_ind) { // update subf indicator
-                               tfc[orig_node].children()[0].value(s_ind);
-                               tfc[orig_node].children()[0].ischanged(1);
-                               mw.sdump('D_CAT', tfc[orig_node].children()[0].name() + ':' +
-                                       tfc[orig_node].children()[0].id() + ':' +
-                                       tfc[orig_node].children()[0].intra_doc_id() +
-                                       '.is_changed = 1\n');
-                       mw.sdump('D_CAT','Updated node = ' + js2JSON(tfc[orig_node].children()[0]) + '\n');
-                       }
-                       if (orig_data != s_data) { // update subf data
-                               tfc[orig_node].children()[1].value(s_data);
-                               tfc[orig_node].children()[1].ischanged(1);
-                               mw.sdump('D_CAT', tfc[orig_node].children()[1].name() + ':' +
-                                       tfc[orig_node].children()[1].id() + ':' +
-                                       tfc[orig_node].children()[1].intra_doc_id() +
-                                       '.is_changed = 1\n');
-                       mw.sdump('D_CAT','Updated node = ' + js2JSON(tfc[orig_node].children()[1]) + '\n');
-                       }
-               }
-       }
-       // delete any remaining
-       for (var i = local_subf_array.length; i < orig_subfields.length; i++) {
-               var orig_node = orig_subfields[i][0];
-               tfc[orig_node].isdeleted(1);
-               mw.sdump('D_CAT', tfc[orig_node].name() + ':' +
-                       tfc[orig_node].id() + ':' +
-                       tfc[orig_node].intra_doc_id() + '.is_deleted = 1\n');
-               delete_children(tfc[orig_node]);
-       }
-}
-
-
-
-function test_nodeset() {
-       return null;
-}
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/marc.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/marc.xul
deleted file mode 100644 (file)
index 3fded65..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Cataloger's MARC Screen -->
-
-<!-- Stylesheets -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
-<?xml-stylesheet href="chrome://evergreen/skin/marc.css" type="text/css"?>
-
-<!-- Localization -->
-<!DOCTYPE window SYSTEM "chrome://evergreen/locale/cat.dtd">
-
-<window id="marc_win" title="&cat.title;" 
-       orient="vertical" style="overflow: scroll" 
-       width="800" height="600" persist="width height"
-       onload="
-               my_init();
-       "
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- Overlays for this XUL file -->
-       <?xul-overlay href="chrome://evergreen/content/OpenSRF/OpenSRF_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
-       <?xul-overlay href="chrome://evergreen/content/cat/marc_overlay.xul"?>
-
-       <!-- OpenSRF -->
-       <script>var myPackageDir = "evergreen";</script>
-       <OpenSRF id="OpenSRF_js" />
-
-       <!-- The logic for this app -->
-       <Evergreen id="marc_js" />
-
-       <!-- XUL'ified abstraction for logic to attach to widgets -->
-       <commandset id="marc_cmds" />
-
-       <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
-       <keyset id="marc_keys" />
-
-       <!-- Layout to be filled in by overlays and javascript -->
-       <vbox id="marc_vbox" class="test_class"/>
-
-</window>
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/marc_fixed.js b/Evergreen/staff_client/chrome/content/evergreen/cat/marc_fixed.js
deleted file mode 100644 (file)
index 220710e..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-function pad_fixed(value,field) {
-       var padding = '';
-       if (field == '008') {
-               for (var i = value.length; i<40; i++) {
-                       padding = padding + ' ';
-               }
-       } else if (field == 'LDR') {
-               for (var i = value.length; i<24; i++) {
-                       padding = padding + ' ';
-               }
-       }
-       return padding;
-}
-
-
-function handle_fixed_change(ev) {
-       mw.sdump('D_CAT','Entering handle_fixed_change\n');
-       if (ev.target.tagName != 'textbox') { mw.sdump('D_CAT','early exit\n'); return; }
-       var t = ev.target;
-       var field = t.getAttribute('field');
-       var spos = t.getAttribute('spos');
-       var epos = t.getAttribute('epos');
-       var size = t.getAttribute('size');
-       if ( (epos - spos + 1) != size ) { 
-               mw.sdump('D_CAT','Invalid fixed field DTD: field='+field+' spos='+spos+
-                       ' epos='+epos+' size='+size+'\n');
-               alert('Invalid fixed field DTD: field='+field+' spos='+spos+
-                       ' epos='+epos+' size='+size+'\n');
-       }
-       if (t.value.length > size) {
-               t.value = t.value.substr(0,size);
-       } else if (t.value.length < size) {
-               var padding = '';
-               for (var i = 0; i<(size-t.value.length); i++) {
-                       padding = padding + ' ';
-               }
-               t.value = t.value + padding;
-       }
-       var fixed = find_textbox('ctrl_rows', field);
-       //mw.sdump('D_CAT','length of fixed: ' + fixed.value.length + '\n');
-       fixed.value = fixed.value + pad_fixed(fixed.value,field);
-       mw.sdump('D_CAT','length of fixed: ' + fixed.value.length + '\n');
-
-       //mw.sdump('D_CAT','field='+field+' spos='+spos+' epos='+epos+' size='+size+' t="'+t.value+'"\n');
-       mw.sdump('D_CAT','replacing "'+fixed.value+'"\n');
-       fixed.value = fixed.value.substr(0,spos) + t.value + fixed.value.substr(1+Number(epos));
-       mw.sdump('D_CAT','     with "'+fixed.value+'"\n');
-}
-
-function find_textbox(where, field) {
-       var rows = document.getElementById(where).childNodes;
-       var ideal_sibling;
-       for (var r in rows) {
-               if (typeof(rows[r])=='object') {
-                       //mw.sdump('D_CAT',r + ':' + rows[r] + '\n');
-                       var t = rows[r].childNodes[0].firstChild;
-                       if (t.value == field) {
-                               return rows[r].childNodes[1].firstChild;
-                       } else if (t.value < field) {
-                               ideal_sibling = rows[r];
-                       }
-               }
-       }
-       var new_r = build_ctrl_row('ctrl_' + new_row_id--);
-       new_r.setAttribute('notempty','true');                  
-       new_r.setAttribute('newnode','true');
-       if (ideal_sibling.nextSibling) {
-               rows.insertBefore(new_r,ideal_sibling.nextSibling);
-       } else {
-               rows.appendChild(new_r);
-       }
-       new_r.childNodes[0].firstChild.value = field;
-       new_r.childNodes[1].firstChild.value = padding;
-       return new_r.childNodes[1].firstChild;
-}
-
-function fixed_fields_update_all(grid) {
-       var g = document.getElementById(grid);
-       var nl = g.getElementsByTagName('textbox');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       var t = nl[i];
-                       var field = t.getAttribute('field');
-                       var spos = t.getAttribute('spos');
-                       var epos = t.getAttribute('epos');
-                       var size = t.getAttribute('size');
-                       var data = find_textbox('ctrl_rows',field);
-                       data.value = data.value + pad_fixed(data.value,field);
-                       t.value = data.value.substr(spos,size);
-               }
-       }
-}
-
-
-function fixed_fields_hide_all(grid) {
-       var g = document.getElementById(grid);
-       var nl = g.getElementsByTagName('label');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       nl[i].setAttribute('hidden','true');
-               }
-       }
-       nl = g.getElementsByTagName('textbox');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       nl[i].setAttribute('hidden','true');
-               }
-       }
-}
-
-function fixed_fields_show_all(grid) {
-       var g = document.getElementById(grid);
-       var nl = g.getElementsByTagName('label');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       nl[i].setAttribute('hidden','false');
-               }
-       }
-       nl = g.getElementsByTagName('textbox');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       nl[i].setAttribute('hidden','false');
-               }
-       }
-}
-
-function fixed_fields_show_only(grid,attr) {
-       fixed_fields_hide_all(grid);
-       fixed_fields_update_all(grid);
-       var g = document.getElementById(grid);
-       var nl = g.getElementsByTagName('label');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       if (nl[i].getAttribute(attr) == 'true') {
-                               nl[i].setAttribute('hidden','false');
-                       }
-               }
-       }
-       nl = g.getElementsByTagName('textbox');
-       for (var i in nl) {
-               if (typeof(nl[i])=='object') {
-                       if (nl[i].getAttribute(attr) == 'true') {
-                               nl[i].setAttribute('hidden','false');
-                       }
-               }
-       }
-}
-
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/marc_keys.js b/Evergreen/staff_client/chrome/content/evergreen/cat/marc_keys.js
deleted file mode 100644 (file)
index 6deb8d6..0000000
+++ /dev/null
@@ -1,221 +0,0 @@
-function handle_keyup(ev) {
-       if (ev.target.tagName != 'textbox') { return; }
-       //mw.sdump('D_CAT','keyCode:' + ev.keyCode + ' charCode:' + ev.charCode + ' shift:' + ev.shiftKey + ' ctrl:' + ev.ctrlKey + ' meta:' + ev.metaKey + '\n');
-       resizeWrapper(ev.target);
-}
-
-function handle_keypress(ev) {
-       mw.sdump('D_CAT','keyCode:' + ev.keyCode + ' charCode:' + ev.charCode + ' shift:' + ev.shiftKey + ' ctrl:' + ev.ctrlKey + ' meta:' + ev.metaKey + '\n');
-       if (ev.target.tagName != 'textbox') { return; }
-       var rstatus = false;
-       if (ev.charCode) {
-               switch(ev.charCode) {
-                       case 100: 
-                               if (ev.ctrlKey) { /* control+d */
-                                       rstatus = handle_key_c_d(ev);
-                               }
-                               break;
-               }
-       } else if (ev.keyCode) {
-               switch(ev.keyCode) {
-                       case 13: /* enter */
-                       case 77: /* mac enter */
-                               rstatus = handle_key_enter(ev);
-                               break;
-                       case 46: 
-                               if (ev.ctrlKey) { /* control+del */
-                                       rstatus = handle_key_c_del(ev);
-                               }
-                               break;
-                       case 9: 
-                               if (ev.shiftKey) { /* shift+tab */
-                                       rstatus = navigate_col_left(ev.target,true);
-                               } else { /* tab */
-                                       rstatus = navigate_col_right(ev.target,true);
-                               }
-                               break;
-               }
-       }
-       resizeWrapper(ev.target);
-       if (rstatus) {
-               ev.preventDefault();
-       }
-       return rstatus;
-}
-
-function handle_key_c_d(ev) {
-       if (ev.target.tagName != 'textbox') { return; }
-       var t = ev.target;
-       if ((ev.ctrlKey)&&(ev.charCode==100)&&(t.getAttribute('subfields')=='true')) {
-               var n_ev = document.createEvent("KeyEvents");
-               if (n_ev) { /* the best way... fake a keypress */
-                       n_ev.initKeyEvent("keypress", 1, 1, null, 0, 0, 0, 0, 0, 8225);
-                       t.inputField.dispatchEvent(n_ev);
-               } else { /* this destroys the widget's undo buffer */
-                       var s_start = t.selectionStart; var s_end = t.selectionEnd;
-                       var first_half = t.value.substr(0,s_start);
-                       var second_half = t.value.substr(s_end);
-                       t.value = first_half + String.fromCharCode(8225) + second_half;
-                       t.setSelectionRange(s_start+1,s_start+1);
-               }
-               return true;
-       } else {
-               return false;
-       }
-}
-
-function handle_key_c_del(ev) {
-       // rows (rows) -> row (r) -> wrapper (w) -> textbox (t)
-       if (ev.target.tagName != 'textbox') { return; }
-       var t = ev.target;
-       var r = t.parentNode.parentNode;
-       if ((ev.ctrlKey)&&(ev.keyCode==46)) {
-               r.setAttribute('hidden','true');
-               handle_tag_change(ev);
-               if (! navigate_row_down(t,which_col_am_i(t),false) ) {
-                       navigate_row_up(t,which_col_am_i(t),false);
-                       mw.sdump('D_CAT',"let's go up\n");
-               }
-               return true;
-       } else {
-               return false;
-       }
-}
-
-var new_row_id = -1;
-function handle_key_enter(ev) {
-       // rows (rows) -> row (r) -> wrapper (w) -> textbox (t)
-       if (ev.target.tagName != 'textbox') { return; }
-       var t = ev.target; 
-       if ((ev.keyCode == 13) || (ev.keyCode == 77)) {
-               if (ev.ctrlKey) { // add new row
-                       var new_r = build_data_row('data_' + new_row_id--);
-                       new_r.setAttribute('notempty','true');                  
-                       new_r.setAttribute('newnode','true');                   
-                       var w = t.parentNode;
-                       var r = w.parentNode;
-                       var rows = r.parentNode;
-                       var sibling_row;
-                       if (ev.shiftKey) {
-                               sibling_row = r;
-                       } else {
-                               sibling_row = r.nextSibling;
-                       }
-                       if (sibling_row) {
-                               rows.insertBefore(new_r,sibling_row);
-                       } else {
-                               rows.appendChild(new_r);
-                       }
-                       var c = new_r.childNodes;
-                       apply_event_listeners(c,'data');
-                       c[1].firstChild.value = ' '; // indicator 1
-                       c[2].firstChild.value = ' '; // indicator 2
-                       c[0].firstChild.focus();
-                       return true;
-               } else { // move to next row
-                       navigate_row_down(t,which_col_am_i(t),true);
-                       return true;
-               }
-       } else {
-               return false;
-       }
-}
-
-function which_col_am_i(t) {
-       var r = t.parentNode.parentNode;
-       for (var i in r.childNodes) {
-               if (t == r.childNodes[i].firstChild) {
-                       return i;
-               }
-       }
-}
-
-function nextSibling_not_hidden(e) {
-       var s = e.nextSibling;
-       while ((s)&&(s.getAttribute('hidden')=='true')) {
-               s = s.nextSibling;
-       }
-       return s;
-}
-
-function previousSibling_not_hidden(e) {
-       var s = e.previousSibling;
-       while ((s)&&(s.getAttribute('hidden')=='true')) {
-               s = s.previousSibling;
-       }
-       return s;
-}
-
-function navigate_row_down(t,c,wrap) {
-       // rows -> row (r) -> wrapper -> textbox (t)
-       var r = t.parentNode.parentNode;
-       var sibling_row = nextSibling_not_hidden(r);
-       if (sibling_row) {
-               sibling_row.childNodes[c].firstChild.focus();
-               if (c == 0) {
-                       sibling_row.childNodes[c].firstChild.select();
-               }
-       } else {
-               if (wrap) {
-                       r.parentNode.firstChild.childNodes[c].firstChild.focus();
-               } else {
-                       return false;
-               }
-       }
-       return true;
-}
-
-function navigate_row_up(t,c,wrap) {
-       // rows -> row (r) -> wrapper -> textbox (t)
-       var r = t.parentNode.parentNode;
-       var sibling_row = previousSibling_not_hidden(r);
-       if (sibling_row) {
-               sibling_row.childNodes[c].firstChild.focus();
-       } else {
-               if (wrap) {
-                       r.parentNode.lastChild.childNodes[c].firstChild.focus();
-               } else {
-                       return false;
-               }
-       }
-       return true;
-}
-
-function navigate_col_left(t,wrap) {
-       // rows -> row -> wrapper (w) -> textbox (t)
-       var w = t.parentNode;
-       var sibling_wrapper = w.previousSibling;
-       if (sibling_wrapper) {
-               sibling_wrapper.firstChild.focus();
-               if (sibling_wrapper.parentNode.childNodes[3] != sibling_wrapper) {
-                       sibling_wrapper.firstChild.select();
-               }
-       } else {
-               if (wrap) {
-                       return navigate_row_up(t,3,false);
-               } else {
-                       return false;
-               }
-       }
-       return true;
-}
-
-function navigate_col_right(t,wrap) {
-       // rows -> row -> wrapper (w) -> textbox (t)
-       var w = t.parentNode;
-       var sibling_wrapper = w.nextSibling;
-       if (sibling_wrapper) {
-               sibling_wrapper.firstChild.focus();
-               if (sibling_wrapper.parentNode.childNodes[3] != sibling_wrapper) {
-                       sibling_wrapper.firstChild.select();
-               }
-       } else {
-               if (wrap) {
-                       return navigate_row_down(t,0);
-               } else {
-                       return false;
-               }
-       }
-       return true;
-}
-
diff --git a/Evergreen/staff_client/chrome/content/evergreen/cat/marc_overlay.xul b/Evergreen/staff_client/chrome/content/evergreen/cat/marc_overlay.xul
deleted file mode 100644 (file)
index 3b1a5ce..0000000
+++ /dev/null
@@ -1,930 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
-<overlay id="marc_overlay" 
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-<!-- The javascript logic for the staff client -->
-<Evergreen id="marc_js">
-       <!--<script src="chrome://evergreen/content/evergreen/fieldmapper.js" />-->
-       <!--<script src="chrome://evergreen/content/util/RemoteRequest.js" />
-       <script src="chrome://evergreen/content/util/ses.js" />-->
-       <util id="util_js"/>
-       <script src="marc_rules.js" />
-       <script src="marc_validate.js" />
-       <script src="marc_fixed.js" />
-       <script src="marc_keys.js" />
-       <script src="marc.js" />
-</Evergreen>
-
-<!-- Some logic abstracted a bit.  Sort of like an API list -->
-<commandset id="marc_cmds">
-       <command id="cmd_marc_validate" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               validate_marc();
-       "/>
-       <command id="cmd_marc_explain" oncommand="
-               explain_marc();
-       "/>
-       <command id="cmd_marc_submit" oncommand="
-               submit_marc();
-       "/>
-       <command id="cmd_marc_reload" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               reload_marc();
-       "/>
-       <command id="cmd_marc_export" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               export_marc();
-       "/>
-       <command id="cmd_marc_legend" oncommand="
-               legend_marc();
-       "/>
-       <command id="cmd_close_window" oncommand="
-               mw.close_tab(app_shell,'main_tabbox');
-       "/>
-       <command id="cmd_marc_fixed_BKS" oncommand="
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','BKS');
-       "/>
-       <command id="cmd_marc_fixed_SER" oncommand="
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','SER');
-       "/>
-       <command id="cmd_marc_fixed_VIS" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','VIS');
-       "/>
-       <command id="cmd_marc_fixed_MIX" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','MIX');
-       "/>
-       <command id="cmd_marc_fixed_MAP" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','MAP');
-       "/>
-       <command id="cmd_marc_fixed_SCO" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','SCO');
-       "/>
-       <command id="cmd_marc_fixed_REC" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','REC');
-       "/>
-       <command id="cmd_marc_fixed_COM" disabled="true" oncommand="
-               alert('Feature Not Yet Implemented');
-               document.getElementById('ctrl_deck').setAttribute('selectedIndex',0);
-               fixed_fields_show_only('fixed_grid','COM');
-       "/>
-       <command id="cmd_marc_control_fields" oncommand="
-               var deck = document.getElementById('data_deck');
-               if (deck.getAttribute('selectedIndex') == '1') {
-                       deck.setAttribute('selectedIndex','0');
-               } else {
-                       deck.setAttribute('selectedIndex','1');
-               }
-       "/>
-       <command id="cmd_marc_cover_art" oncommand="
-               var box = document.getElementById('art_groupbox');
-               if (box.getAttribute('hidden') == 'true') {
-                       box.setAttribute('hidden','false');
-               } else {
-                       box.setAttribute('hidden','true');
-               }
-       "/>
-       <command id="cmd_marc_meta_data" oncommand="
-               var box = document.getElementById('meta_groupbox');
-               if (box.getAttribute('hidden') == 'true') {
-                       box.setAttribute('hidden','false');
-               } else {
-                       box.setAttribute('hidden','true');
-               }
-       "/>
-
-</commandset>
-
-<!-- The top level widget for the cat client -->
-<vbox id="marc_vbox" flex="1">
-       <toolbox id="marc_toolbox"/>
-<!--   <deck id="meta_deck"/>
-       <splitter collapse="before"> <grippy/> </splitter> -->
-       <deck id="ctrl_deck"/>
-       <splitter collapse="before"> <grippy/> </splitter>
-       <deck id="data_deck"/>
-       <hbox id="marc_buttons_box"/>
-</vbox>
-
-<hbox id="marc_buttons_box" class="marc_buttons_box">
-       <button label="&marc.file.close;" accesskey="&marc.file.close.key;" key="file-close-key" observes="cmd_close_window"/>
-       <button label="&marc.file.reload;" accesskey="&marc.file.reload.key;" key="file-reload-key" observes="cmd_marc_reload"/>
-       <button label="&marc.file.publish;" accesskey="&marc.file.publish.key;" key="file-publish-key" observes="cmd_marc_submit"/>
-</hbox>
-
-<!-- The main top level menubar -->
-<toolbox id="marc_toolbox">
-       <menubar id="marc_menubar">
-               <menu id="marc-file" label="&marc.file;" accesskey="&marc.file.key;"/>
-               <menu id="marc-display" label="&marc.display;" accesskey="&marc.display.key;"/>
-       </menubar>
-</toolbox>
-
-<!-- The File menu on the marc menu -->
-<menu id="marc-file">
-       <menupopup id="marc-popup">
-               <menuitem label="&marc.file.validate;" accesskey="&marc.file.validate.key;" key="file-validate-key" observes="cmd_marc_validate"/>
-               <menuseparator />
-               <menuitem label="&marc.file.reload;" accesskey="&marc.file.reload.key;" key="file-reload-key" observes="cmd_marc_reload"/>
-               <menuitem label="&marc.file.export;" accesskey="&marc.file.export.key;" key="file-export-key" observes="cmd_marc_export"/>
-               <menuitem label="&marc.file.publish;" accesskey="&marc.file.publish.key;" key="file-publish-key" observes="cmd_marc_submit"/>
-               <menuseparator />
-               <menuitem label="&marc.file.close;" accesskey="&marc.file.close.key;" key="file-close-key" observes="cmd_close_window"/>
-       </menupopup>
-</menu>
-
-<!-- The Display menu on the marc menu -->
-<menu id="marc-display">
-       <menupopup id="display-popup">
-               <menuitem id="explain_marc" label="&marc.display.explain;" accesskey="&marc.display.explain.key;" key="display-explain-key" observes="cmd_marc_explain"/>
-               <menuitem label="&marc.display.legend;" accesskey="&marc.display.legend.key;" key="file-legend-key" observes="cmd_marc_legend"/>
-               <menuseparator />
-               <menuitem label="&marc.display.cover_art;" accesskey="&marc.display.cover_art.key;" key="file-cover-art-key" observes="cmd_marc_cover_art"/>
-               <menuitem label="&marc.display.meta_data;" accesskey="&marc.display.meta_data.key;" key="file-meta-data-key" observes="cmd_marc_meta_data"/>
-               <menuitem label="&marc.display.control_fields;" accesskey="&marc.display.control_fields.key;" key="file-control-fields-key" observes="cmd_marc_control_fields"/>
-               <menuseparator />
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.BKS;" accesskey="&marc.display.fixed.BKS.key;" key="file-fixed-BKS-key" observes="cmd_marc_fixed_BKS"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.SER;" accesskey="&marc.display.fixed.SER.key;" key="file-fixed-SER-key" observes="cmd_marc_fixed_SER"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.VIS;" accesskey="&marc.display.fixed.VIS.key;" key="file-fixed-VIS-key" observes="cmd_marc_fixed_VIS"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.MIX;" accesskey="&marc.display.fixed.MIX.key;" key="file-fixed-MIX-key" observes="cmd_marc_fixed_MIX"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.MAP;" accesskey="&marc.display.fixed.MAP.key;" key="file-fixed-MAP-key" observes="cmd_marc_fixed_MAP"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.SCO;" accesskey="&marc.display.fixed.SCO.key;" key="file-fixed-SCO-key" observes="cmd_marc_fixed_SCO"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.REC;" accesskey="&marc.display.fixed.REC.key;" key="file-fixed-REC-key" observes="cmd_marc_fixed_REC"/>
-               <menuitem type="radio" name="fixed_field_display" label="&marc.display.fixed.COM;" accesskey="&marc.display.fixed.COM.key;" key="file-fixed-COM-key" observes="cmd_marc_fixed_COM"/>
-       </menupopup>
-</menu>
-
-<deck id="meta_deck" flex="0">
-</deck>
-
-<deck id="ctrl_deck" flex="1">
-       <hbox flex="1">
-               <groupbox id="art_groupbox" hidden="true"/>
-               <vbox flex="1" style="overflow: auto;">
-                       <groupbox id="meta_groupbox"/>
-                       <groupbox id="fixed_groupbox"/>
-               </vbox>
-       </hbox>
-</deck>
-
-<deck id="data_deck" flex="1">
-       <groupbox id="data_groupbox"/>
-       <groupbox id="ctrl_groupbox"/>
-       <groupbox id="help_groupbox"/>
-</deck>
-
-<groupbox id="meta_groupbox" flex="1" hidden="true">
-       <caption label="&marc.groupbox.meta;"/>
-       <grid id="meta_grid"/>
-</groupbox>
-
-<groupbox id="data_groupbox"> 
-       <caption label="&marc.groupbox.data;"/>
-       <grid id="data_grid"/>
-</groupbox>
-
-<groupbox id="ctrl_groupbox">
-       <caption label="&marc.groupbox.control;"/>
-       <grid id="ctrl_grid"/>
-</groupbox>
-
-<groupbox id="fixed_groupbox">
-       <caption label="&marc.groupbox.fixed;"/>
-       <grid id="fixed_grid"/>
-</groupbox>
-
-<groupbox id="art_groupbox">
-       <caption label="&marc.groupbox.cover;"/>
-       <image src="chrome://evergreen/content/images/noimage.jpg"/>
-</groupbox>
-
-<grid id="meta_grid" flex="1" class="meta_grid">
-       <columns class="fixed_columns">
-               <column/> 
-               <column flex="1"/> 
-               <column/> <column /> <column/> <column />
-       </columns>
-       <rows>
-               <row id="meta_row1"/>
-               <row id="meta_row2"/>
-       </rows>
-</grid>
-               
-<row id="meta_row1">
-       <label value="Title/Author"/>
-       <description id="meta_title_author"/>
-       <label value="Creation Date"/>
-       <label id="meta_create_date"/>
-       <label value="Created By"/>
-       <label id="meta_creator"/>
-</row>
-<row id="meta_row2">
-       <label value="TCN/Publisher/etc"/>
-       <label id="meta_tcn_publisher"/>
-       <label value="Modification Date"/>
-       <label id="meta_edit_date"/>
-       <label value="Last Modified By"/>
-       <label id="meta_editor"/>
-</row>
-
-<grid id="fixed_grid" flex="1" class="fixed_grid">
-       <columns class="fixed_columns">
-               <column/> <column flex="1"/> <column/> <column flex="1"/>
-               <column/> <column flex="1"/> <column/> <column flex="1"/>
-               <column/> <column flex="1"/> <column/> <column flex="1"/>
-       </columns>
-       <rows class="fixed_rows">
-               <row id="fixed_row1" class="fixed_row"/>
-               <row id="fixed_row2" class="fixed_row"/>
-               <row id="fixed_row3" class="fixed_row"/>
-               <row id="fixed_row4" class="fixed_row"/>
-       </rows>
-</grid>
-
-<row id="fixed_row1">
-       <hbox>
-               <label 
-                       value="&marc.LDR.type.short;" 
-                       tooltiptext="&marc.LDR.type.desc;"
-                       onclick="window.open('&marc.LDR.type.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.LDR.type.field;"
-                       spos="&marc.LDR.type.field_start_pos;"
-                       epos="&marc.LDR.type.field_end_pos;"
-                       size="&marc.LDR.type.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.LDR.elvl.short;" 
-                       tooltiptext="&marc.LDR.elvl.desc;"
-                       onclick="window.open('&marc.LDR.elvl.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.LDR.elvl.field;"
-                       spos="&marc.LDR.elvl.field_start_pos;"
-                       epos="&marc.LDR.elvl.field_end_pos;"
-                       size="&marc.LDR.elvl.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.srce.short;" 
-                       tooltiptext="&marc.008.srce.desc;"
-                       onclick="window.open('&marc.008.srce.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.srce.field;"
-                       spos="&marc.008.srce.field_start_pos;"
-                       epos="&marc.008.srce.field_end_pos;"
-                       size="&marc.008.srce.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.VIS.SCO.REC.COM.audn.short;" 
-                       tooltiptext="&marc.008.BKS.VIS.SCO.REC.COM.audn.desc;"
-                       onclick="window.open('&marc.008.BKS.VIS.SCO.REC.COM.audn.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-               <label 
-                       value="&marc.008.BKS.SER.VIS.MAP.COM.gpub.short;" 
-                       tooltiptext="&marc.008.BKS.SER.VIS.MAP.COM.gpub.desc;"
-                       onclick="window.open('&marc.008.BKS.SER.VIS.MAP.COM.gpub.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.VIS.SCO.REC.COM.audn.field;"
-                       spos="&marc.008.BKS.VIS.SCO.REC.COM.audn.field_start_pos;"
-                       epos="&marc.008.BKS.VIS.SCO.REC.COM.audn.field_end_pos;"
-                       size="&marc.008.BKS.VIS.SCO.REC.COM.audn.field_size;"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-               <textbox
-                       field="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field;"
-                       spos="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field_start_pos;"
-                       epos="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field_end_pos;"
-                       size="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.LDR.ctrl.short;" 
-                       tooltiptext="&marc.LDR.ctrl.desc;"
-                       onclick="window.open('&marc.LDR.ctrl.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.LDR.ctrl.field;"
-                       spos="&marc.LDR.ctrl.field_start_pos;"
-                       epos="&marc.LDR.ctrl.field_end_pos;"
-                       size="&marc.LDR.ctrl.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.lang.short;" 
-                       tooltiptext="&marc.008.lang.desc;"
-                       onclick="window.open('&marc.008.lang.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.lang.field;"
-                       spos="&marc.008.lang.field_start_pos;"
-                       epos="&marc.008.lang.field_end_pos;"
-                       size="&marc.008.lang.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                       onclick="this.select();"
-               />
-       </hbox>
-</row>
-<row id="fixed_row2">
-       <hbox>
-               <label 
-                       value="&marc.LDR.blvl.short;" 
-                       tooltiptext="&marc.LDR.blvl.desc;"
-                       onclick="window.open('&marc.LDR.blvl.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.LDR.blvl.field;"
-                       spos="&marc.LDR.blvl.field_start_pos;"
-                       epos="&marc.LDR.blvl.field_end_pos;"
-                       size="&marc.LDR.blvl.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.SER.MIX.SCO.REC.form.short;" 
-                       tooltiptext="&marc.008.BKS.SER.MIX.SCO.REC.form.desc;"
-                       onclick="window.open('&marc.008.BKS.SER.MIX.SCO.REC.form.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.SER.MIX.SCO.REC.form.field;"
-                       spos="&marc.008.BKS.SER.MIX.SCO.REC.form.field_start_pos;"
-                       epos="&marc.008.BKS.SER.MIX.SCO.REC.form.field_end_pos;"
-                       size="&marc.008.BKS.SER.MIX.SCO.REC.form.field_size;"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.SER.conf.short;" 
-                       tooltiptext="&marc.008.BKS.SER.conf.desc;"
-                       onclick="window.open('&marc.008.BKS.SER.conf.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.SER.conf.field;"
-                       spos="&marc.008.BKS.SER.conf.field_start_pos;"
-                       epos="&marc.008.BKS.SER.conf.field_end_pos;"
-                       size="&marc.008.BKS.SER.conf.field_size;"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.biog.short;" 
-                       tooltiptext="&marc.008.BKS.biog.desc;"
-                       onclick="window.open('&marc.008.BKS.biog.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-               <label 
-                       value="&marc.008.SER.freq.short;" 
-                       tooltiptext="&marc.008.SER.freq.desc;"
-                       onclick="window.open('&marc.008.SER.freq.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.biog.field;"
-                       spos="&marc.008.BKS.biog.field_start_pos;"
-                       epos="&marc.008.BKS.biog.field_end_pos;"
-                       size="&marc.008.BKS.biog.field_size;"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-               <textbox
-                       field="&marc.008.SER.freq.field;"
-                       spos="&marc.008.SER.freq.field_start_pos;"
-                       epos="&marc.008.SER.freq.field_end_pos;"
-                       size="&marc.008.SER.freq.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.mrec.short;" 
-                       tooltiptext="&marc.008.mrec.desc;"
-                       onclick="window.open('&marc.008.mrec.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.mrec.field;"
-                       spos="&marc.008.mrec.field_start_pos;"
-                       epos="&marc.008.mrec.field_end_pos;"
-                       size="&marc.008.mrec.field_size;"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.ctry.short;" 
-                       tooltiptext="&marc.008.ctry.desc;"
-                       onclick="window.open('&marc.008.ctry.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.ctry.field;"
-                       spos="&marc.008.ctry.field_start_pos;"
-                       epos="&marc.008.ctry.field_end_pos;"
-                       size="&marc.008.ctry.field_size;"
-                       BKS="true" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-</row>
-
-<row id="fixed_row3">
-       <hbox>
-               <label 
-                       value="&marc.008.SER.succ.short;" 
-                       tooltiptext="&marc.008.SER.succ.desc;"
-                       onclick="window.open('&marc.008.SER.succ.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.SER.succ.field;"
-                       spos="&marc.008.SER.succ.field_start_pos;"
-                       epos="&marc.008.SER.succ.field_end_pos;"
-                       size="&marc.008.SER.succ.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.cont.short;" 
-                       tooltiptext="&marc.008.BKS.cont.desc;"
-                       onclick="window.open('&marc.008.BKS.cont.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-               <label 
-                       value="&marc.008.SER.orig.short;" 
-                       tooltiptext="&marc.008.SER.orig.desc;"
-                       onclick="window.open('&marc.008.SER.orig.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.cont.field;"
-                       spos="&marc.008.BKS.cont.field_start_pos;"
-                       epos="&marc.008.BKS.cont.field_end_pos;"
-                       size="&marc.008.BKS.cont.field_size;"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-               <textbox
-                       field="&marc.008.SER.orig.field;"
-                       spos="&marc.008.SER.orig.field_start_pos;"
-                       epos="&marc.008.SER.orig.field_end_pos;"
-                       size="&marc.008.SER.orig.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.SER.VIS.MAP.COM.gpub.short;" 
-                       tooltiptext="&marc.008.BKS.SER.VIS.MAP.COM.gpub.desc;"
-                       onclick="window.open('&marc.008.BKS.SER.VIS.MAP.COM.gpub.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-               <label 
-                       value="&marc.008.SER.entw.short;" 
-                       tooltiptext="&marc.008.SER.entw.desc;"
-                       onclick="window.open('&marc.008.SER.entw.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field;"
-                       spos="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field_start_pos;"
-                       epos="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field_end_pos;"
-                       size="&marc.008.BKS.SER.VIS.MAP.COM.gpub.field_size;"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-               <textbox
-                       field="&marc.008.SER.entw.field;"
-                       spos="&marc.008.SER.entw.field_start_pos;"
-                       epos="&marc.008.SER.entw.field_end_pos;"
-                       size="&marc.008.SER.entw.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.litf.short;" 
-                       tooltiptext="&marc.008.BKS.litf.desc;"
-                       onclick="window.open('&marc.008.BKS.litf.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-               <label 
-                       value="&marc.008.SER.regl.short;" 
-                       tooltiptext="&marc.008.SER.regl.desc;"
-                       onclick="window.open('&marc.008.SER.regl.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.litf.field;"
-                       spos="&marc.008.BKS.litf.field_start_pos;"
-                       epos="&marc.008.BKS.litf.field_end_pos;"
-                       size="&marc.008.BKS.litf.field_size;"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-               <textbox
-                       field="&marc.008.SER.regl.field;"
-                       spos="&marc.008.SER.regl.field_start_pos;"
-                       epos="&marc.008.SER.regl.field_end_pos;"
-                       size="&marc.008.SER.regl.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.BKS.MAP.indx.short;" 
-                       tooltiptext="&marc.008.BKS.MAP.indx.desc;"
-                       onclick="window.open('&marc.008.BKS.MAP.indx.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-               <label 
-                       value="&marc.008.SER.issn.short;" 
-                       tooltiptext="&marc.008.SER.issn.desc;"
-                       onclick="window.open('&marc.008.SER.issn.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.BKS.MAP.indx.field;"
-                       spos="&marc.008.BKS.MAP.indx.field_start_pos;"
-                       epos="&marc.008.BKS.MAP.indx.field_end_pos;"
-                       size="&marc.008.BKS.MAP.indx.field_size;"
-                       BKS="true" SER="false" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-               <textbox
-                       field="&marc.008.SER.issn.field;"
-                       spos="&marc.008.SER.issn.field_start_pos;"
-                       epos="&marc.008.SER.issn.field_end_pos;"
-                       size="&marc.008.SER.issn.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-       <hbox>
-               <label 
-                       value="&marc.008.SER.alph.short;" 
-                       tooltiptext="&marc.008.SER.alph.desc;"
-                       onclick="window.open('&marc.008.SER.alph.help;');"
-                       class="fixed_label"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.008.SER.alph.field;"
-                       spos="&marc.008.SER.alph.field_start_pos;"
-                       epos="&marc.008.SER.alph.field_end_pos;"
-                       size="&marc.008.SER.alph.field_size;"
-                       BKS="false" SER="true" VIS="false" MIX="false" 
-                       MAP="false" SCO="false" REC="false" COM="false" 
-                       onclick="this.select();"
-               />
-       </hbox>
-</row>
-
-<row id="fixed_row4">
-       <hbox>
-               <label 
-                       value="&marc.LDR.desc.short;" 
-                       tooltiptext="&marc.LDR.desc.desc;"
-                       onclick="window.open('&marc.LDR.desc.help;');"
-                       class="fixed_label"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-               />
-       </hbox>
-       <hbox>
-               <textbox
-                       field="&marc.LDR.desc.field;"
-                       spos="&marc.LDR.desc.field_start_pos;"
-                       epos="&marc.LDR.desc.field_end_pos;"
-                       size="&marc.LDR.desc.field_size;"
-                       BKS="true" SER="true" VIS="true" MIX="true" 
-                       MAP="true" SCO="true" REC="true" COM="true" 
-                      &nbs