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