debugging. spawn copy editor in second tabbed interface
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Aug 2005 16:13:26 +0000 (16:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 31 Aug 2005 16:13:26 +0000 (16:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1778 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul
Evergreen/staff_client/chrome/content/evergreen/cat/browse_list_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/cat/details.xul
Evergreen/staff_client/chrome/content/evergreen/util/error.js

index 0d28979..c545e1f 100644 (file)
                                [ find_this_id ]
                        )[0];
 
-                       document.getElementById('title').setAttribute('value',mods.title());
-                       document.getElementById('author').setAttribute('value',mods.author());
-                       var s = '';
-                       if (mods.edition()) s = mods.edition();
-                       if (mods.pubdate()) s += ' ' + mods.pubdate();
-                       document.getElementById('edition').setAttribute('value',s);
-                       document.getElementById('tcn').setAttribute('value',mods.tcn());
+                       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',
@@ -60,6 +58,7 @@
                        <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" />
index 269e584..7bc0c0d 100644 (file)
@@ -17,7 +17,8 @@
        <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.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').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);"/>
index 4509631..42afbcf 100644 (file)
                }
 
                function my_init_spawn_copy_browser() {
-                       spawn_copy_browser(
+                       var w = spawn_copy_browser(
                                document, 'replace_iframe', 'copy_browser', {
                                        'find_this_id' : find_this_id
                                }
-                       ).find_this_id = find_this_id;
+                       );
+                       w.find_this_id = find_this_id;
+                       w.parent_window = window;
                }
 
                function my_init_spawn_opac_view() {
                <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="OPAC View"/>
+                               <tab label="Copy Editor" disabled="true"/>
                        </tabs>
                        <tabpanels flex="1">
+                               <tabpanel id="opac_view"/>
                                <tabpanel id="marc_view"/>
                                <tabpanel id="marc_edit"/>
                                <tabpanel id="copy_browser"/>
-                               <tabpanel id="opac_view"/>
+                               <tabpanel id="copy_editor">
+                                       <description>
+                                               Select some copies in the Copy Browser tab to edit.
+                                       </description>
+                               </tabpanel>
                        </tabpanels>
                </tabbox>
        </vbox>
index 8ea2fbb..d4b26c4 100644 (file)
@@ -9,7 +9,7 @@ var arg_dump_full = false;
 
 var sdump_levels = {
        'D_NONE' : false,
-       'D_ALL' : false,
+       'D_ALL' : true,
        'D_ERROR' : true,
        'D_TRACE' :  false,
        'D_TRACE_ENTER' :  false,
@@ -24,7 +24,7 @@ var sdump_levels = {
        'D_PAGED_TREE' : false,
        'D_GRID_LIST' : false,
        'D_HTML_TABLE' : false,
-       'D_TAB' : true,
+       'D_TAB' : false,
 
        'D_AUTH' : false,
 
@@ -50,7 +50,7 @@ var sdump_levels = {
        'D_HOLD_CAPTURE' : true,
        'D_HOLD_CAPTURE_ITEMS' : false,
 
-       'D_CAT' : true,
+       'D_CAT' : false,
 
        'D_PATRON_UTILS' : false,
        'D_CIRC_UTILS' : false,
@@ -60,8 +60,8 @@ var sdump_levels = {
        'D_PRINT' : true,
        'D_SES' : true,
        'D_SES_FUNC' : false,
-       'D_SES_RESULT' : true,
-       'D_SPAWN' : true,
+       'D_SES_RESULT' : false,
+       'D_SPAWN' : false,
        'D_STRING' : false,
        'D_UTIL' : false,
        'D_WIN' : false,