debugging. spawn copy editor in second tabbed interface
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / cat / brief.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Cataloger's Search Result Screen -->
4
5 <!-- Stylesheets -->
6 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
7 <?xml-stylesheet href="chrome://evergreen/skin/evergreen.css" type="text/css"?>
8 <?xml-stylesheet href="chrome://evergreen/skin/cat.css" type="text/css"?>
9
10 <!-- Localization -->
11 <!DOCTYPE window SYSTEM "chrome://evergreen/locale/cat.dtd">
12
13 <window id="brief_win" title="Record Details" 
14         orient="vertical" style="overflow: scroll" width="800" height="500"
15         onload="my_init();"
16         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
17
18         <!-- Overlays for this XUL file -->
19         <?xul-overlay href="chrome://evergreen/content/util/util_overlay.xul"?>
20
21         <script>
22         <![CDATA[
23                 var myPackageDir = "evergreen";
24
25                 function my_init() {
26
27                         var mods = user_request(
28                                 'open-ils.search',
29                                 'open-ils.search.biblio.record.mods_slim.retrieve',
30                                 [ find_this_id ]
31                         )[0];
32
33                         if (mods.title()) document.getElementById('title').setAttribute('value',mods.title());
34                         if (mods.author()) document.getElementById('author').setAttribute('value',mods.author());
35                         if (mods.edition()) document.getElementById('edition').setAttribute('value',mods.edition());
36                         if (mods.pubdate()) document.getElementById('pubdate').setAttribute('value',mods.pubdate());
37                         if (mods.tcn()) document.getElementById('tcn').setAttribute('value',mods.tcn());
38
39                         user_request(
40                                 'open-ils.cat',
41                                 'open-ils.cat.biblio.record.metadata.retrieve',
42                                 [ find_this_id ],
43                                 function (req) {
44                                         var meta = req.getResultObject()[0];
45                                         document.getElementById('creator').setAttribute('value',meta.creator());
46                                         document.getElementById('editor').setAttribute('value',meta.editor());
47                                         document.getElementById('edit_date').setAttribute('value',formatted_date(meta.edit_date(),"%D"));
48                                 }
49                         );
50                 }
51
52         ]]>
53         </script>
54
55         <groupbox flex="1">
56                 <caption label="Record Details"/>
57                 <hbox flex="1">
58                         <label style="font-weight: bold;" value="Title:" /><label id="title" /> 
59                         <label style="font-weight: bold;" value="Author:" /><label id="author" />
60                         <label style="font-weight: bold;" value="Edition:" /> <label id="edition" />
61                         <label style="font-weight: bold;" value="Pub Date:" /> <label id="pubdate" />
62                 </hbox>
63                 <hbox flex="1">
64                         <label style="font-weight: bold;" value="TCN:" /> <label id="tcn" />
65                         <label style="font-weight: bold;" value="Created By:" /> <label id="creator" />
66                         <label style="font-weight: bold;" value="Last Edited By:" /> <label id="editor" />
67                         <label style="font-weight: bold;" value="Last Edited On:" /> <label id="edit_date" />
68                 </hbox>
69         </groupbox>
70
71 </window>
72