brief display
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Aug 2005 13:21:47 +0000 (13:21 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Aug 2005 13:21:47 +0000 (13:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1763 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/brief.xul

index 387f768..0d28979 100644 (file)
                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];
+
+                       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());
+
                        user_request(
                                'open-ils.cat',
                                'open-ils.cat.biblio.record.metadata.retrieve',
                                [ find_this_id ],
                                function (req) {
                                        var meta = req.getResultObject()[0];
-                                       dump('META = ' + js2JSON(meta) + '\n');
+                                       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"));
                                }
                        );
                }
 
        <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" />
+               </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>