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