450963112220223b026c52e713f4ea6d7e1f1396
[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_brief_view,
29                                 my_init_spawn_marc_view,
30                                 my_init_spawn_copy_browser,
31                                 my_init_spawn_marc_editor,
32                                 my_init_spawn_opac_view
33                         );
34
35                 }
36
37                 function my_init_spawn_brief_view() {
38                         spawn_brief_view(
39                                 document, 'replace_iframe', 'brief_view', {
40                                         'find_this_id' : find_this_id
41                                 }
42                         ).find_this_id = find_this_id;
43                 }
44
45                 function my_init_spawn_marc_view() {
46                         var html = user_request(
47                                 "open-ils.search",
48                                 "open-ils.search.biblio.record.html",
49                                 [ find_this_id ]
50                         )[0];
51                         spawn_interface(
52                                 document, 'replace_browser', 'marc_view',
53                                 'data:text/html,' + html,
54                                 'MARC View2', {}
55                         );
56                 }
57
58                 function my_init_spawn_marc_editor() {
59                         spawn_marc_editor(
60                                 document, 'replace_iframe', 'marc_edit', {
61                                         'find_this_id' : find_this_id
62                                 }
63                         ).find_this_id = find_this_id;
64                 }
65
66                 function my_init_spawn_copy_browser() {
67                         spawn_copy_browser(
68                                 document, 'replace_iframe', 'copy_browser', {
69                                         'find_this_id' : find_this_id
70                                 }
71                         ).find_this_id = find_this_id;
72                 }
73
74                 function my_init_spawn_opac_view() {
75                         dump('trying to spawn: ' + params.opac_url + '\n');
76                         spawn_interface(
77                                 document, 'replace_browser', 'opac_view',
78                                 params.opac_url, 'OPAC View', {}
79                         );
80                 }
81         ]]>
82         </script>
83
84         <vbox flex="1">
85                 <hbox id="brief_view"/>
86                 <tabbox flex="1">
87                         <tabs>
88                                 <tab label="MARC View"/>
89                                 <tab label="MARC Edit"/>
90                                 <tab label="Copy Browser"/>
91                                 <tab label="OPAC View"/>
92                         </tabs>
93                         <tabpanels flex="1">
94                                 <tabpanel id="marc_view"/>
95                                 <tabpanel id="marc_edit"/>
96                                 <tabpanel id="copy_browser"/>
97                                 <tabpanel id="opac_view"/>
98                         </tabpanels>
99                 </tabbox>
100         </vbox>
101
102 </window>
103