]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/cat/details.xul
staff cat details no longer preempts opac details page
[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                         /*document.getElementById('copy_editor_tab').disabled = true;*/
28                         chain_exec(
29                                 my_init_spawn_brief_view,
30                                 my_init_spawn_marc_view,
31                                 my_init_spawn_copy_browser,
32                                 /* my_init_spawn_opac_view, */
33                                 my_init_spawn_marc_editor
34                         );
35
36                 }
37
38                 function my_init_spawn_brief_view() {
39                         spawn_brief_view(
40                                 document, 'replace_iframe', 'brief_view', {
41                                         'find_this_id' : find_this_id
42                                 }
43                         ).find_this_id = find_this_id;
44                 }
45
46                 function my_init_spawn_marc_view() {
47                         var html = user_request(
48                                 "open-ils.search",
49                                 "open-ils.search.biblio.record.html",
50                                 [ find_this_id ]
51                         )[0];
52                         spawn_interface(
53                                 document, 'replace_browser', 'marc_view',
54                                 'data:text/html,' + html,
55                                 'MARC View2', {}
56                         );
57                 }
58
59                 function my_init_spawn_marc_editor() {
60                         spawn_marc_editor(
61                                 document, 'replace_iframe', 'marc_edit', {
62                                         'find_this_id' : find_this_id
63                                 }
64                         ).find_this_id = find_this_id;
65                 }
66
67                 function my_init_spawn_copy_browser() {
68                         var w = spawn_copy_browser(
69                                 document, 'replace_iframe', 'copy_browser', {
70                                         'find_this_id' : find_this_id
71                                 }
72                         );
73                         w.find_this_id = find_this_id;
74                         w.parent_window = window;
75                 }
76
77                 function my_init_spawn_opac_view() {
78                         dump('trying to spawn: ' + params.opac_url + '\n');
79                         spawn_interface(
80                                 document, 'replace_browser', 'opac_view',
81                                 params.opac_url, 'OPAC View', {}
82                         );
83                 }
84         ]]>
85         </script>
86
87         <vbox flex="1">
88                 <hbox id="brief_view"/>
89                 <tabbox flex="1">
90                         <tabs>
91                                 <!-- <tab label="OPAC View"/> -->
92                                 <tab label="MARC View"/>
93                                 <tab label="MARC Edit"/>
94                                 <tab label="Copy Browser"/>
95                                 <tab label="Copy Editor" id="copy_editor_tab" />
96                         </tabs>
97                         <tabpanels flex="1">
98                                 <!-- <tabpanel id="opac_view"/> -->
99                                 <tabpanel id="marc_view"/>
100                                 <tabpanel id="marc_edit"/>
101                                 <tabpanel id="copy_browser"/>
102                                 <tabpanel id="copy_editor">
103                                         <description>
104                                                 Select some copies in the Copy Browser tab to edit.
105                                         </description>
106                                 </tabpanel>
107                         </tabpanels>
108                 </tabbox>
109         </vbox>
110
111 </window>
112