duplicating the nav bar at the bottom of search pages
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Jan 2007 20:02:56 +0000 (20:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Jan 2007 20:02:56 +0000 (20:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_0@6731 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/result_common.js
Open-ILS/web/opac/skin/default/xml/result/result_table.xml

index 9bce1fe..4fa713e 100644 (file)
@@ -10,7 +10,8 @@ if( findCurrentPage() == MRESULT || findCurrentPage() == RRESULT ) {
        G.evt.result.hitCountReceived.push(resultSetHitInfo);
        G.evt.result.recordReceived.push(resultDisplayRecord, resultAddCopyCounts);
        G.evt.result.copyCountsReceived.push(resultDisplayCopyCounts);
-       G.evt.result.allRecordsReceived.push(resultBuildCaches, resultDrawSubjects, resultDrawAuthors, resultDrawSeries);
+       G.evt.result.allRecordsReceived.push(resultBuildCaches, resultDrawSubjects, 
+      resultDrawAuthors, resultDrawSeries, function(){unHideMe($('result_info_2'))});
        attachEvt('result','lowHits',resultLowHits);
        attachEvt('result','zeroHits',resultZeroHits);
        attachEvt( "common", "locationUpdated", resultSBSubmit );
@@ -151,6 +152,9 @@ function resultSetHitInfo() {
        G.ui.result.current_page.appendChild(text(cpage));
        G.ui.result.num_pages.appendChild(text(pages + ")")); /* the ) is dumb */
 
+       $('current_page2').appendChild(text(cpage));
+       $('num_pages2').appendChild(text(pages + ")")); /* the ) is dumb */
+
        /* set the offsets */
        var offsetEnd = getDisplayCount() + getOffset();  
        if( getDisplayCount() > (getHitCount() - getOffset()))  
@@ -159,8 +163,14 @@ function resultSetHitInfo() {
        G.ui.result.offset_end.appendChild(text(offsetEnd));
        G.ui.result.offset_start.appendChild(text(getOffset() + 1));
 
+       $('offset_end2').appendChild(text(offsetEnd));
+       $('offset_start2').appendChild(text(getOffset() + 1));
+
        G.ui.result.result_count.appendChild(text(getHitCount()));
        unHideMe(G.ui.result.info);
+
+       $('result_count2').appendChild(text(getHitCount()));
+       unHideMe($('result_info_div2'));
 }
 
 function resultLowHits() {
@@ -326,6 +336,9 @@ function resultPaginate() {
                G.ui.result.next_link.setAttribute("href", buildOPACLink(args)); 
                addCSSClass(G.ui.result.next_link, config.css.result.nav_active);
 
+               $('next_link2').setAttribute("href", buildOPACLink(args)); 
+               addCSSClass($('next_link2'), config.css.result.nav_active);
+
                args[PARAM_OFFSET] = getHitCount() - (getHitCount() % getDisplayCount());
 
                /* when hit count is divisible by display count, we have to adjust */
@@ -334,6 +347,9 @@ function resultPaginate() {
 
                G.ui.result.end_link.setAttribute("href", buildOPACLink(args)); 
                addCSSClass(G.ui.result.end_link, config.css.result.nav_active);
+
+               $('end_link2').setAttribute("href", buildOPACLink(args)); 
+               addCSSClass($('end_link2'), config.css.result.nav_active);
        }
 
        if( o > 0 ) {
@@ -347,13 +363,21 @@ function resultPaginate() {
                G.ui.result.prev_link.setAttribute( "href", buildOPACLink(args)); 
                addCSSClass(G.ui.result.prev_link, config.css.result.nav_active);
 
+               $('prev_link2').setAttribute( "href", buildOPACLink(args)); 
+               addCSSClass($('prev_link2'), config.css.result.nav_active);
+
                args[PARAM_OFFSET] = 0;
                G.ui.result.home_link.setAttribute( "href", buildOPACLink(args)); 
                addCSSClass(G.ui.result.home_link, config.css.result.nav_active);
+
+               $('search_home_link2').setAttribute( "href", buildOPACLink(args)); 
+               addCSSClass($('search_home_link2'), config.css.result.nav_active);
        }
 
-       if(getDisplayCount() < getHitCount())
+       if(getDisplayCount() < getHitCount()) {
                unHideMe($('start_end_links_span'));
+               unHideMe($('start_end_links_span2'));
+   }
 
        showCanvas();
        try{searchTimer.stop()}catch(e){}
index 83515fe..1afc031 100644 (file)
                </tbody>
        </table>
 
+
+   <!-- ====================== -->
+   <table style='width: 100%; margin-top: 12px;' id='result_info_2' class='hide_me'>
+      <tbody>
+               
+             <tr style='height: 1em; background: #E0F6E0'>
+                     
+                <td style='vertical-align: top;'  id='next_prev_links2'>
+                        
+                   <span class='hide_me' id='result_info_div2' style='font-size: 9pt;'>
+                      <span> Results </span> 
+                      <b id='offset_start2'> </b>
+                      <span> - </span>
+                      <b id='offset_end2'> </b>
+                      <span> &common.ofAtLeast; </span>
+                      <b id='result_count2'> </b>
+                      <span style='padding-left: 6px;'> (page </span>
+                      <span id='current_page2'> </span>
+                      <span> &common.of; </span>
+                      <span id='num_pages2'> </span>
+                   </span>
+                           
+                   <span id='start_end_links_span2' class='hide_me' 
+                      style='padding-left: 40px;' >
+                   <a class='search_page_nav_link' id='search_home_link2' 
+                      title="First results page">Start</a><a class='search_page_nav_link' 
+                      id='prev_link2' title='Previous page'>&lt;&lt;</a>
+            
+                   <span class='search_page_nav_link' id='page_numbers2'> </span>
+                      <a  class='search_page_nav_link' id='next_link2' 
+                         title='Next Page'>&gt;&gt;</a><a class='search_page_nav_link' 
+                         id='end_link2' title="Last results page">End</a>
+                   </span>
+                        
+                </td>
+                        
+                <td  colspan='5' 
+                   style='padding-bottom: 4px; text-align:center; vertical-align: top; border-bottom: 1px solid #E0E0E0;'>
+               <!--
+                   <span id='search_info_table2' style='font-size: 8pt;'>
+                   <b>Available copies / Total copies </b>
+                   </span>
+               -->
+                </td>
+             </tr>
+      </tbody>
+   </table>
+   <!-- ====================== -->
+
+
        <script language='javascript'>
                config.names.result.format_cell = 'result_table_format_cell';
                config.names.result.format_link = 'resource_link'