Restore the "Local Administration" link to the splash page feature/admin_hours_2_4
authorDan Scott <dscott@laurentian.ca>
Tue, 1 May 2012 15:43:38 +0000 (11:43 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 16:19:06 +0000 (12:19 -0400)
From Local Admin we can get to Library Hours, and thence satisfaction.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/xul/staff_client/server/index.xhtml

index fafe2a1..69c7baf 100644 (file)
                                 xulG.set_tab(loc, params, {}); 
                 }
                 function local_admin(newtab) {
-                        var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_LOCAL_ADMIN + '?ses=' + window.escape(ses()) + '&session=' + window.escape(ses())); 
+                        // var loc = urls.XUL_REMOTE_BROWSER + '?url=' + window.escape(urls.XUL_LOCAL_ADMIN + '?ses=' + window.escape(ses()) + '&session=' + window.escape(ses())); 
+                        // Crude hack - but works, whereas the previous does not
+                        var loc = '/xul/server/admin' + '?ses=' + window.escape(ses()) + '&session=' + window.escape(ses());
+
                         var params = {'tab_name':'Local Administration', 'browser' : true };
                         var content_params = { 'no_xulG' : false, 'show_nav_buttons' : true, 'show_print_button' : true };
                         
               "#" onclick=
               "try { receipt_editor(false); } catch(E) { alert(E); }; return false;">&staff.client.portal.receipts;</a></td>
             </tr>
+            <tr>
+              <td height="50"></td>
+
+              <td><img class="newtabimg" src="skin/media/images/portal/newtab2.PNG" alt="Open in a new tab"
+              onclick="try { local_admin(); } catch(E) { alert(E); }" /> <a href=
+              "#" onclick=
+              "try { local_admin(); } catch(E) { alert(E); }; return false;">Local administration</a></td>
+            </tr>
+
           </table>
         </div>
       </td>