01adef5edba9ccca53b3f7c18e5ad2b8afe32be1
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / cat / details.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="details_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                         chain_exec(
28                                 my_init_spawn_marc_view,
29                                 my_init_spawn_marc_editor,
30                                 my_init_spawn_copy_browser,
31                                 my_init_spawn_opac_view
32                         );
33
34                 }
35
36                 function my_init_spawn_marc_view() {
37                         var html = user_request(
38                                 "open-ils.search",
39                                 "open-ils.search.biblio.record.html",
40                                 [ find_this_id ]
41                         )[0];
42                         dump('html = ' + html + '\n');
43                         spawn_interface(
44                                 document, 'replace_browser', 'marc_view',
45                                 'data:text/html,' + html,
46                                 'MARC View2', {}
47                         );
48                 }
49
50                 function my_init_spawn_marc_editor() {
51                         spawn_marc_editor(
52                                 document, 'replace_iframe', 'marc_edit', {
53                                         'find_this_id' : find_this_id
54                                 }
55                         ).find_this_id = find_this_id;
56                 }
57
58                 function my_init_spawn_copy_browser() {
59                         spawn_copy_browser(
60                                 document, 'replace_iframe', 'copy_browser', {
61                                         'find_this_id' : find_this_id
62                                 }
63                         ).find_this_id = find_this_id;
64                 }
65
66                 function my_init_spawn_opac_view() {
67                 }
68         ]]>
69         </script>
70
71         <tabbox flex="1">
72                 <tabs>
73                         <tab label="MARC View"/>
74                         <tab label="MARC Edit"/>
75                         <tab label="Copy Browser"/>
76                         <tab label="OPAC View"/>
77                 </tabs>
78                 <tabpanels flex="1">
79                         <tabpanel id="marc_view"/>
80                         <tabpanel id="marc_edit"/>
81                         <tabpanel id="copy_browser"/>
82                         <tabpanel id="opac_view"/>
83                 </tabpanels>
84         </tabbox>
85
86 </window>
87