cosmetic/informational
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Feb 2006 19:35:27 +0000 (19:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 6 Feb 2006 19:35:27 +0000 (19:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2984 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_editor.js
Open-ILS/xul/staff_client/server/cat/copy_editor.xul

index c6aa6f3..c712733 100644 (file)
@@ -18,6 +18,7 @@ function my_init() {
                g.cgi = new CGI();
 
                g.session = g.cgi.param('session') || g.cgi.param('ses');
+               g.docid = g.cgi.param('docid');
 
                /******************************************************************************************************/
                /* Get the copy ids from various sources */
@@ -56,6 +57,17 @@ function my_init() {
                }
 
                /******************************************************************************************************/
+               /* Show the Record Details? */
+               if (g.docid) {
+                       document.getElementById('brief_display').setAttribute(
+                               'src',
+                               urls.XUL_BIB_BRIEF + '?docid=' + g.docid
+                       );
+               } else {
+                       document.getElementById('brief_display').setAttribute('hidden','true');
+               }
+
+               /******************************************************************************************************/
                /* Do it */
 
                g.summarize( g.copies );
index 8fe1475..02eef27 100644 (file)
@@ -18,7 +18,7 @@
 
 <window id="cat_copy_editor_win" 
        onload="try { my_init(); } catch(E) { alert(E); }"
-       width="800" height="600"
+       width="800" height="500" sizemode="maximized" persist="width height"
        title="Copies"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
        <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
        <script type="text/javascript" src="copy_editor.js"/>
 
+       <iframe id="brief_display"/>
+
        <groupbox flex="1" style="overflow: auto">
                <caption id="caption" label="Copy Viewer"/>
-               <hbox id="nav" hidden="true">
-                       <spacer flex="1"/>
-                       <button id="save" label="Modify" 
-                               oncommand="g.stash_and_close();"/>
-               </hbox>
+
                <hbox flex="1">
                        <vbox style="overflow: scroll"> <!-- left pane -->
                                <groupbox id="gb_callnumbers">
                        <splitter><grippy /></splitter>
                        <vbox id="right_pane" style="overflow: scroll" flex="1"/> <!-- right pane -->
                </hbox>
+
+               <hbox id="nav" hidden="true">
+                       <spacer flex="1"/>
+                       <button id="save" label="Modify" 
+                               oncommand="g.stash_and_close();"/>
+                       <button id="save" label="Cancel" 
+                               oncommand="window.close();"/>
+               </hbox>
+
                <spacer/>
        </groupbox>