style updates on the copyright block
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 15:05:19 +0000 (15:05 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 15:05:19 +0000 (15:05 +0000)
hiding copyright on mresult and rresult pages until the page is rendered
to keep the copyright block from bouncing around

git-svn-id: svn://svn.open-ils.org/ILS/trunk@3319 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/mresult.js
Open-ILS/web/opac/skin/default/js/rresult.js
Open-ILS/web/opac/skin/default/xml/footer.xml
Open-ILS/web/opac/skin/default/xml/home/index_body.xml

index 76cbdce..7a6a729 100644 (file)
@@ -13,8 +13,11 @@ attachEvt("result", "idsReceived", mresultCollectRecords);
 
 function mresultUnload() { removeChildren(table); table = null;}
 
+hideMe($('copyright_block')); 
+
 function mresultDoSearch() {
 
+
        if(getOffset() == 0) {
                swapCanvas($('loading_alt'));
                searchTimer = new Timer('searchTimer',$('loading_alt_span'));
@@ -182,8 +185,10 @@ function mresultHandleMods(r) {
        var pagePosition = r.userdata;
        runEvt('result', 'recordReceived', rec, pagePosition, true);
        resultCollectCopyCounts(rec, pagePosition, FETCH_MR_COPY_COUNTS);
-       if(resultPageIsDone())  
+       if(resultPageIsDone()) {
                runEvt('result', 'allRecordsReceived', recordsCache);
+               unHideMe($('copyright_block')); /* *** */
+       }
 }
 
 
index 95b9c49..e609c37 100644 (file)
@@ -10,6 +10,8 @@ attachEvt("common", "run", rresultDoSearch);
 attachEvt("result", "idsReceived", rresultCollectRecords); 
 attachEvt("result", "recordDrawn", rresultLaunchDrawn); 
 
+hideMe($('copyright_block')); 
+
 function rresultDoSearch() {
        table = G.ui.result.main_table;
        hideMe(G.ui.result.row_template);
@@ -80,8 +82,10 @@ function rresultHandleMods(r) {
        var rec = r.getResultObject();
        runEvt('result', 'recordReceived', rec, r.userdata, false);
        resultCollectCopyCounts(rec, r.userdata, FETCH_R_COPY_COUNTS);
-       if(resultPageIsDone())  
+       if(resultPageIsDone()) {
                runEvt('result', 'allRecordsReceived', recordsCache);
+               unHideMe($('copyright_block')); 
+       }
 }
 
 
index 7402cb0..88ac1c0 100644 (file)
@@ -1,18 +1,29 @@
 <!-- Needs serious DTD-ization -->
 
-<div style='width: 100%; text-align:center; vertical-align: bottom; margin-top: 50px;'>
-       <center>
+<div
+       style='width: 100%; text-align:center; vertical-align: bottom; margin-top: 50px;'>
+       <center id='copyright_block'>
                <div 
-                       style='width: 90%; background: #E0F0E0; text-align:center; vertical-align: bottom; border: 1px solid #808080; padding: 10px;'>
-                       <span style='margin-left: 10px; margin-right: 10px;'>
-                               <a target='_blank' class='classic_link' 
-                                       href='http://www.georgialibraries.org/public/findlibrary.html'>Find a Library Mear Me</a>
-                       </span>
-                       <span>Copyright (C) 2005 Georgia Public Library Service</span>
-                       <span style='margin-left: 10px; margin-right: 10px;'>
-                               <a target='_blank' class='classic_link' 
-                                       href='http://www.georgialibraries.org/public/pines.html'>About PINES</a>
-                       </span>
+                       style='width: 80%; background: #EFF6EF; text-align:center; border: 1px solid #808080; padding: 10px;'>
+                       <table width='100%'>
+                               <tr>
+                                       <td width='25%'>
+                                               <span style='margin-left: 10px; margin-right: 10px;'>
+                                                       <a target='_blank' class='classic_link' 
+                                                               href='http://www.georgialibraries.org/public/findlibrary.html'>Find a Library Mear Me</a>
+                                               </span>
+                                       </td>
+                                       <td width='50%'>
+                                               <span>Copyright (C) 2005 Georgia Public Library Service</span>
+                                       </td>
+                                       <td width='25%'>
+                                               <span style='margin-left: 10px; margin-right: 10px;'>
+                                                       <a target='_blank' class='classic_link' 
+                                                               href='http://www.georgialibraries.org/public/pines.html'>About PINES</a>
+                                               </span>
+                                       </td>
+                               </tr>
+                       </table>
                </div>
        </center>
 </div>
index 98eee5b..ed16e34 100644 (file)
@@ -1,5 +1,5 @@
 <body onload='init(); getId("home_adv_search_link").setAttribute("href", buildOPACLink({page:ADVANCED})); getId("home_myopac_link").setAttribute("href", buildOPACLink({page:MYOPAC}, false, true));'>
-       <table width='100%' style='border-collapse: collapse; height: 99%;'>
+       <table width='100%' style='border-collapse: collapse;'>
                <tbody>
                        <tr>
                                <td width='10%'> </td>