]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/index.xhtml
Disable JSPac in staff client
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / index.xhtml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE html PUBLIC
4         "-//W3C//DTD XHTML 1.0 Transitional//EN" 
5         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
6         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
7 ]>
8
9 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
10 <head>
11   <meta name="generator" content=
12   "HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
13
14   <title>&staff.client.portal.title;</title>
15   <script type="text/javascript">
16 // <![CDATA[
17
18   // FIXME - some I18N love still needed in this file.  See @alt on img tags, and javascript for tab names
19
20   function SearchOnBlur() {
21         var textbox = document.getElementById("quicksearch");
22
23         if(textbox && textbox.value == "")
24                 textbox.style.background = "#FFFFFF url(\"skin/media/images/portal/eg_tiny_logo.jpg\") center no-repeat";
25   }
26
27   function SearchOnFocus() {
28         var textbox = document.getElementById("quicksearch");
29         
30         if(textbox)
31                 textbox.style.background = "#FFFFFF";
32   }
33
34   var home_ou_id = 1;
35
36   function SearchOnSubmit() {
37         var textbox = document.getElementById("quicksearch");
38         
39         //var home_ou_id = 1; // 1 = all org units. Should come from staff client scripts
40         // a quicksearch should probably just default to the whole system. Staff can narrow it down later if they want.
41         var search_depth = 0; // 0 = consortium, 1 = system, 2 = library, 3 = sub-library, etc.
42         
43         if(textbox && textbox.value != "") {
44                 var opac_url =  xulG.url_prefix('opac_rresult') + "?rt=keyword&tp=keyword&l=" + home_ou_id + "&d=" + search_depth +"&f=&t=" + escape(textbox.value);
45                 if (urls.opac_rresult.match(/\/eg\/opac\/results/)) {
46                     opac_url =  xulG.url_prefix('opac_rresult') + "?query=" + escape(textbox.value);
47                 }
48                 var params = {'tab_name':'Catalog'};
49                 var content_params = { 'session' : ses(), 'authtime' : ses('authtime'), 'opac_url' : opac_url };
50                 xulG.set_tab(urls.XUL_OPAC_WRAPPER, params, content_params);
51         }
52         
53         return false;
54   }
55   // ]]> 
56   </script>
57   <script type="text/javascript" src="main/constants.js">
58 </script>
59   <script type="text/javascript" src="/opac/common/js/utils.js">
60 </script>
61   <script type="text/javascript" src="/opac/common/js/CGI.js">
62 </script>
63   <script type="text/javascript" src="/opac/common/js/md5.js">
64 </script>
65   <script type="text/javascript" src="/opac/common/js/fmall.js">
66 </script>
67   <script type="text/javascript" src="/opac/common/js/fmgen.js">
68 </script>
69   <script type="text/javascript" src="/opac/common/js/RemoteRequest.js">
70 </script>
71   <script type="text/javascript" src="/opac/common/js/<!--#echo var='locale'-->/OrgTree.js">
72 </script>
73   <script type="text/javascript" src="/opac/common/js/org_utils.js">
74 </script>
75   <script type="text/javascript" src="OpenILS/global_util.js">
76 </script>
77   <script type="text/javascript" src="OpenILS/event_util.js">
78 </script>
79   <script type="text/javascript" src="main/JSAN.js">
80 </script>
81   <script type="text/javascript">
82       // <![CDATA[
83         
84                 //this function will allow for the "Hello, Staff Member" messages
85                 function init() { 
86                         document.getElementById('quicksearch').focus();
87                         SearchOnBlur();
88                         JSAN.use('OpenILS.data'); 
89                         var data = new OpenILS.data(); 
90                         data.stash_retrieve(); 
91                         document.getElementById('staffname').innerHTML = ", " + data.list.au[0].first_given_name(); 
92                         home_ou_id = data.list.au[0].ws_ou();
93                         xulG.set_tab_name('Portal');
94                 }
95                 function jb_open_eg_web_page(path, label) {
96                         var loc = urls.XUL_BROWSER + '?url=' + window.escape(xulG.url_prefix('EG_WEB_BASE') + '/' + path);
97
98                         xulG.set_tab( 
99                                 loc, 
100                                 {tab_name : label, browser : false }, 
101                                 {no_xulG : false, show_print_button : false, show_nav_buttons : true }
102                         );
103                 }
104                 function jb_open_eg_web_page_newtab(path, label) {
105                         var loc = urls.XUL_BROWSER + '?url=' + window.escape(xulG.url_prefix('EG_WEB_BASE') + '/' + path);
106
107                         xulG.new_tab( 
108                                 loc, 
109                                 {tab_name : label, browser : false }, 
110                                 {no_xulG : false, show_print_button : false, show_nav_buttons : true }
111                         );
112                 }
113                 
114                 //Place your helpdesk link here
115                 function helpdesk(newtab) {
116                         xulG.open_external("http://evergreen-ils.org/communicate.php");
117                 }
118                 
119                 //A good place for a Google map.  Evergreen Indiana uses GIS data to create a Google map to verify if a library is within district boundaries
120                 //http://208.119.72.68/evergreen/evergreenmap.html
121                 function address_map(newtab) {
122                         loc = "http://maps.google.com";
123                         var params = {'tab_name':'Locate Address In Map'};
124                         
125                         if(newtab)
126                                 xulG.new_tab(loc, params, {}); 
127                         else
128                                 xulG.set_tab(loc, params, {}); 
129                 }
130                 function local_admin(newtab) {
131                         var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_LOCAL_ADMIN + '?ses=' + window.escape(ses()) + '&session=' + window.escape(ses())); 
132                         var params = {'tab_name':'Local Administration', 'browser' : true };
133                         var content_params = { 'no_xulG' : false, 'show_nav_buttons' : true, 'show_print_button' : true };
134                         
135                         if(newtab)
136                                 xulG.new_tab(loc, params, content_params);
137                         else
138                                 xulG.set_tab(loc, params, content_params);
139                 }
140                 function copy_status(newtab) {
141                         if(newtab)
142                                 xulG.new_tab(urls.XUL_COPY_STATUS,{},{});
143                         else
144                                 xulG.set_tab(urls.XUL_COPY_STATUS,{},{});
145                 }
146                 function hold_pull_list(newtab) {
147                         var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_HOLD_PULL_LIST + '?ses=' + window.escape(ses()));
148                         var params = {'tab_name':'On Shelf Pull List'};
149                         
150                         if(newtab)
151                                 xulG.new_tab(loc, params);
152                         else
153                                 xulG.set_tab(loc, params);
154                 }
155                 function checkout(newtab) {
156                         if(newtab)
157                                 xulG.new_tab(urls.XUL_PATRON_BARCODE_ENTRY,{},{});
158                         else
159                                 xulG.set_tab(urls.XUL_PATRON_BARCODE_ENTRY,{},{});
160                 }
161                 function catalog(newtab) {
162                         var params = {'tab_name':'Catalog'};
163                         var content_params = { 'session' : ses(), 'authtime' : ses('authtime') };
164                         
165                         if(newtab)
166                                 xulG.new_tab(urls.XUL_OPAC_WRAPPER, params, content_params);
167                         else
168                                 xulG.set_tab(urls.XUL_OPAC_WRAPPER, params, content_params);
169                 }
170                 function z39_50(newtab) {
171                         if(newtab)
172                                 xulG.new_tab(urls.XUL_Z3950_IMPORT,{},{});
173                         else
174                                 xulG.set_tab(urls.XUL_Z3950_IMPORT,{},{});
175                 }
176                 function copy_buckets(newtab) {
177                         params = {'tab_name':'Copy Buckets'};
178                         if(newtab)
179                                 xulG.new_tab(urls.XUL_COPY_BUCKETS, params, {});
180                         else
181                                 xulG.set_tab(urls.XUL_COPY_BUCKETS, params, {});
182                 }
183                 function record_buckets(newtab) {
184                         params = {'tab_name':'Record Buckets'};
185                         if(newtab)
186                                 xulG.new_tab(urls.XUL_RECORD_BUCKETS, params, {});
187                         else
188                                 xulG.set_tab(urls.XUL_RECORD_BUCKETS, params, {});
189                 }
190                 function receipt_editor(newtab) {
191                         if(newtab)
192                                 xulG.new_tab(urls.XUL_PRINT_LIST_TEMPLATE_EDITOR, {}, {});
193                         else
194                                 xulG.set_tab(urls.XUL_PRINT_LIST_TEMPLATE_EDITOR, {}, {});
195                 }
196                 function checkin(newtab) {
197                         if(newtab)
198                                 xulG.new_tab(urls.XUL_CHECKIN,{},{});
199                         else
200                                 xulG.set_tab(urls.XUL_CHECKIN,{},{});
201                 }
202                 function MARC_batch_import(newtab) {
203                         if(newtab)
204                                 jb_open_eg_web_page_newtab('vandelay/vandelay', 'Server Settings');
205                         else
206                                 jb_open_eg_web_page('vandelay/vandelay', 'Server Settings');
207                 }
208                 function local_admin_reports(newtab) {
209                         var loc = urls.XUL_BROWSER + '?url=' + window.escape( xulG.url_prefix('XUL_REPORTS') + '?ses=' + ses());
210                         params = {'tab_name' : 'Reports', 'browser' : false }
211                         content_params = {'no_xulG' : false, 'show_print_button' : false, show_nav_buttons : true }
212                         if(newtab)
213                                 xulG.new_tab(loc, params, content_params);
214                         else
215                                 xulG.set_tab(loc, params, content_params);
216                 }
217                 function find_patron(newtab) {
218                         if(newtab)
219                                 xulG.new_patron_tab({},{});
220                         else
221                                 xulG.set_patron_tab({},{});
222                 }
223                 
224                 function spawn_search(s) {
225                         xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON(s) } );
226                 }
227                 function register_patron(newtab) {
228                         function spawn_editor(p) {
229                                 var url = urls.XUL_PATRON_EDIT;
230                                 var param_count = 0;
231                                 for (var i in p) {
232                                         if (param_count++ == 0) url += '?'; else url += '&amp;';
233                                         url += i + '=' + window.escape(p[i]);
234                                 }
235                                 var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape( url );
236                                 xulG.new_tab(loc, {}, { 'show_print_button' : true , 'tab_name' : 'Editing Related Patron' , 'passthru_content_params' : {'spawn_search' : function(s) { spawn_search(s); }, 'spawn_editor' : spawn_editor }});
237                         }
238                         
239                         var loc = urls.XUL_REMOTE_BROWSER  + '?url=' + window.escape( urls.XUL_PATRON_EDIT + '?ses=' + window.escape( ses() ) );
240                         var content_params = { 
241                                                      'show_print_button' : true , 
242                                                      'tab_name' : 'Register Patron' ,
243                                                      'passthru_content_params' : { 'spawn_search' : function(s) { spawn_search(s); },
244                                                                                     'spawn_editor' : spawn_editor }
245                                                  }
246                         if(newtab)
247                                 xulG.new_tab(loc, {}, content_params);
248                         else
249                                 xulG.set_tab(loc, {}, content_params);
250                 }
251                 // ]]>
252   </script>
253   <style type="text/css">
254 /*<![CDATA[*/
255   body {
256   font-family: "Trebuchet MS", Helvetica, Verdana, Arial, sans-serif;
257   }
258
259   hr {
260   border-style: solid;
261   border-color: black;
262   width: 180px;
263   }
264
265   a {
266   font-size: 85%;
267   font-weight: bold;
268   color: black;
269   text-decoration: none;
270   }
271
272   #alignment {
273         border-collapse: collapse;
274         border-style: none;
275         width: 100%;
276   }
277
278   #alignment td {
279         vertical-align: top;
280   }
281
282   .functionlist {
283         border-style: none;
284         margin-left: auto;
285         margin-right: auto;
286   }
287
288   .functionlist td {
289   text-align: left;
290         margin: 2px;
291         padding: 2px;
292   }
293
294   .functionalgroup {
295         text-align: center;
296   }
297
298   a img {
299         border-style: none;
300   }
301
302   .attribution {
303         font-size: 75%;
304   }
305
306   form {
307         margin: 0px;
308         padding: 0px;
309   }
310
311   .newtabimg {
312         float: right;
313         padding-left:4px;
314   }
315
316   .funcimg {
317         width: 48px;
318         height: 48px;
319   }
320
321   /*]]>*/
322   </style>
323   <style type="text/css">
324 /*<![CDATA[*/
325   body.c4 {margin-top: 0px; padding-top: 0px; background-image: url(skin/media/images/portal/background.png);}
326   td.c3 {border: 1px solid black; border-top: 0px; border-bottom: 0px;}
327   span.c2 {font-size:75%;}
328   div.c1 {text-align: center}
329   /*]]>*/
330   </style>
331 </head>
332
333 <body class="c4" onload="init();">
334   <div class="c1">
335     <img src="skin/media/images/portal/logo.png" height="121" width="396" alt="Evergreen logo" /><br />
336     &staff.client.portal.welcome;<span id="staffname"></span><br />
337     <br />
338   </div>
339
340   <table id="alignment">
341     <tr>
342       <td>
343         <div class="functionalgroup">
344           &staff.client.portal.circpatron;
345           <hr />
346
347           <table class="functionlist">
348             <tr>
349               <td height="50"><img src="skin/media/images/portal/forward.png" height="48" width="48"
350               onclick="try { checkout(false); } catch(E) { alert(E); }" alt=
351               "&staff.client.portal.checkout.description;" /></td>
352
353               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
354               onclick="try { checkout(true); } catch(E) { alert(E); }" /><a href="#"
355               onclick=
356               "try { checkout(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.checkout;</a><br />
357               <a href="#" onclick=
358               "try { checkout(false); } catch(E) { alert(E); }; return false;"><span class="c2">
359               &staff.client.portal.retrievebc;</span></a></td>
360             </tr>
361
362             <tr>
363               <td height="50"><img src="skin/media/images/portal/back.png" height="48" width="48" onclick=
364               "try { checkin(false); } catch(E) { alert(E); }" alt=
365               "&staff.client.portal.checkin.description;" /></td>
366
367               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
368               onclick="try { checkin(true); } catch(E) { alert(E); }" /> <a href="#"
369               onclick=
370               "try { checkin(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.checkin;</a><br /></td>
371             </tr>
372
373             <tr>
374               <td height="50"><img src="skin/media/images/portal/registerpatron.png" height="48" width="48"
375               onclick="try { register_patron(false); } catch(E) { alert(E); }" alt=
376               "&staff.client.portal.patronreg.description;" /></td>
377
378               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
379               onclick="try { register_patron(true); } catch(E) { alert(E); }" /> <a href=
380               "#" onclick=
381               "try { register_patron(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.patronreg;</a></td>
382             </tr>
383
384             <tr>
385               <td height="50"><img src="skin/media/images/portal/retreivepatron.png" height="48" width="48"
386               onclick="try { find_patron(false); } catch(E) { alert(E); }" alt=
387               "&staff.client.portal.patronsearch.description;" /></td>
388
389               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
390               onclick="try { find_patron(true); } catch(E) { alert(E); }" /> <a href="#"
391               onclick=
392               "try { find_patron(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.patronsearch;</a></td>
393             </tr>
394
395             <tr>
396               <td height="50"><img class="funcimg" src="skin/media/images/portal/holds.png" height="48"
397               width="48" onclick="try { hold_pull_list(false); } catch(E) { alert(E); }"
398               alt="&staff.client.portal.holdlist.description;" /></td>
399
400               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
401               onclick="try { hold_pull_list(true); } catch(E) { alert(E); }" /> <a href=
402               "#" onclick=
403               "try { hold_pull_list(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.holdlist;</a></td>
404             </tr>
405 <!--
406             <tr>
407               <td height="50"><img src="skin/media/images/portal/map.PNG" alt="Locate Address In Map"
408               onclick="try { address_map(false); } catch(E) { alert(E); }" /></td>
409
410               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
411               onclick="try { address_map(true); } catch(E) { alert(E); }" /> <a href="#"
412               onclick=
413               "try { address_map(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.addrmap;</a></td>
414             </tr>
415 -->
416           </table>
417         </div>
418       </td>
419
420       <td class="c3">
421         <div class="functionalgroup">
422           &staff.client.portal.itemcataloging;
423           <hr />
424
425           <table class="functionlist">
426             <tr>
427               <td colspan="2" rowspan="1">
428                 <form action="#" onsubmit="return SearchOnSubmit();">
429                   <input id="quicksearch" onfocus="SearchOnFocus();" onblur=
430                   "SearchOnBlur();" onkeydown="SearchOnFocus();" /> <input value="&staff.client.portal.search.button;" type="submit" />
431                 </form>
432               </td>
433             </tr>
434
435             <tr>
436               <td height="50"><img src="skin/media/images/portal/book.png" height="48" width="48" onclick=
437               "try { catalog(false); } catch(E) { alert(E); }" alt=
438               "&staff.client.portal.advsearch.description;" /></td>
439
440               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
441               onclick="try { catalog(true); } catch(E) { alert(E); }" /> <a href="#"
442               onclick=
443               "try { catalog(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.advsearch;</a></td>
444             </tr>
445
446             <tr>
447               <td height="50"><img src="skin/media/images/portal/book.png" height="48" width="48" onclick=
448               "try { copy_status(false); } catch(E) { alert(E); }" alt=
449               "&staff.client.portal.itemstatus.description;" /></td>
450
451               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
452               onclick="try { copy_status(true); } catch(E) { alert(E); }" /> <a href="#"
453               onclick=
454               "try { copy_status(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.itemstatus;</a></td>
455             </tr>
456
457             <tr>
458               <td height="50"><img src="skin/media/images/portal/batchimport.png" height="48" width="48"
459               onclick="try { MARC_batch_import(false); } catch(E) { alert(E); }" alt=
460               "&staff.client.portal.marcutil.description;" /></td>
461
462               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
463               onclick="try { MARC_batch_import(true); } catch(E) { alert(E); }" />
464               <a href="#" onclick=
465               "try { MARC_batch_import(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.marcutil;</a></td>
466             </tr>
467
468             <tr>
469               <td height="50"><img src="skin/media/images/portal/z3950.png" height="48" width="48" onclick=
470               "try { z39_50(false); } catch(E) { alert(E); }" alt="&staff.client.portal.z3950.description;" /></td>
471
472               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
473               onclick="try { z39_50(true); } catch(E) { alert(E); }" /> <a href="#"
474               onclick=
475               "try { z39_50(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.z3950;</a></td>
476             </tr>
477
478             <tr>
479               <td height="50"><img src="skin/media/images/portal/bucket.png" height="48" width="48" onclick=
480               "try { copy_buckets(false); } catch(E) { alert(E); }" alt=
481               "&staff.client.portal.copybuckets.description;" /></td>
482
483               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
484               onclick="try { copy_buckets(true); } catch(E) { alert(E); }" /> <a href="#"
485               onclick=
486               "try { copy_buckets(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.copybuckets;</a></td>
487             </tr>
488
489             <tr>
490               <td height="50"><img src="skin/media/images/portal/bucket.png" height="48" width="48" onclick=
491               "try { record_buckets(false); } catch(E) { alert(E); }" alt=
492               "&staff.client.portal.recordbuckets.description;" /></td>
493
494               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
495               onclick="try { record_buckets(true); } catch(E) { alert(E); }" /> <a href=
496               "index.html#" onclick=
497               "try { record_buckets(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.recordbuckets;</a></td>
498             </tr>
499           </table><br />
500         </div>
501       </td>
502
503       <td>
504         <div class="functionalgroup">
505           &staff.client.portal.admin;
506           <hr />
507
508           <table class="functionlist">
509             <tr>
510               <td height="50"><img src="skin/media/images/portal/helpdesk.png" height="48" width="48"
511               onclick="try { helpdesk(false); } catch(E) { alert(E); }" alt=
512               "&staff.client.portal.helpdesk.description;" /></td>
513
514               <td><a href="#"
515               onclick="try { helpdesk(false); } catch(E) { alert(E); }">&staff.client.portal.helpdesk;</a></td>
516             </tr>
517
518             <tr>
519               <td height="50"><img src="skin/media/images/portal/reports.png" height="48" width="48"
520               onclick="try { local_admin_reports(false); } catch(E) { alert(E); }" alt=
521               "&staff.client.portal.reports.description;" /></td>
522
523               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
524               onclick="try { local_admin_reports(true); } catch(E) { alert(E); }" />
525               <a href="#" onclick=
526               "try { local_admin_reports(false); } catch(E) { alert(E); }; return false;">
527               &staff.client.portal.reports;</a></td>
528             </tr>
529
530             <tr>
531               <td height="50"><img src="skin/media/images/portal/receipt_editor.png" height="48" width="48"
532               onclick="try { receipt_editor(false); } catch(E) { alert(E); }" alt=
533               "&staff.client.portal.receipts.description;" /></td>
534
535               <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="&staff.client.portal.open_new_tab.description;"
536               onclick="try { receipt_editor(true); } catch(E) { alert(E); }" /> <a href=
537               "#" onclick=
538               "try { receipt_editor(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.receipts;</a></td>
539             </tr>
540           </table>
541         </div>
542       </td>
543     </tr>
544   </table>
545
546   <div class="attribution c1">&staff.client.portal.copyright;<br />
547   &staff.client.portal.poweredby; <img src="skin/media/images/portal/eg_tiny_logo.jpg" alt="Evergreen logo" /></div>
548 </body>
549 </html>
550
551