| Lines 26-31
          
      
      
        Link Here | 
        
          | 26 |                 <div class="span10"> | 26 |                 <div class="span10"> | 
        
          | 27 |                     <div id="recordedbooks-results-content" class="maincontent searchresults"> | 27 |                     <div id="recordedbooks-results-content" class="maincontent searchresults"> | 
        
          | 28 |                         <h1>RecordedBooks search for '[% q | html %]'</h1> | 28 |                         <h1>RecordedBooks search for '[% q | html %]'</h1> | 
            
              |  |  | 29 |                             [% UNLESS ( loggedinusername ) %] | 
            
              | 30 |                                  <h3 class="rb_login">Sign in to view availability and checkout items or place holds</h3> | 
            
              | 31 |                             [% END %] | 
            
              | 32 |  | 
        
          | 29 |                             <div id="breadcrumbs"> | 33 |                             <div id="breadcrumbs"> | 
        
          | 30 |                                 <p></p> | 34 |                                 <p></p> | 
        
          | 31 |                             </div> | 35 |                             </div> | 
  
    | Lines 81-87
          function search( page ) {
      
      
        Link Here | 
        
          | 81 |         for ( var i = 0; data.items[i]; i++ ) { | 85 |         for ( var i = 0; data.items[i]; i++ ) { | 
        
          | 82 |             var prod = data.items[i]; | 86 |             var prod = data.items[i]; | 
        
          | 83 |             var results = []; | 87 |             var results = []; | 
            
              | 84 |  |  |  | 
        
          | 85 |             results.push( '<tr>' ); | 88 |             results.push( '<tr>' ); | 
        
          | 86 |  | 89 |  | 
        
          | 87 |             results.push( '<td class="info"><span class="title">' ); | 90 |             results.push( '<td class="info"><span class="title">' ); | 
  
    | Lines 154-159
          $( document ).ready( function() {
      
      
        Link Here | 
        
          | 154 |     KOHA.RecordedBooks.with_account_details("#breadcrumbs", function() { | 157 |     KOHA.RecordedBooks.with_account_details("#breadcrumbs", function() { | 
        
          | 155 |         search( 1 ); | 158 |         search( 1 ); | 
        
          | 156 |     }); | 159 |     }); | 
            
              |  |  | 160 |     if( KOHA.RecordedBooks.is_identified() == 'false' ){ | 
            
              | 161 |         $("#breadcrumbs").before('<h3 class="rb_register"><a href="https://[% Koha.Preference('RecordedBooksDomain') %]">To see availability you must register for RecordedBooks using your cardnumber and the email associated with your Koha account</a></h3>'); | 
            
              | 162 |     } | 
        
          | 157 |     [% ELSE %] | 163 |     [% ELSE %] | 
        
          | 158 |         search( 1 ); | 164 |         search( 1 ); | 
        
          | 159 |     [% END %] | 165 |     [% END %] | 
            
              | 160 | -  |  |  |