| Lines 1-6
          
      
      
        Link Here | 
        
          | 1 | [% INCLUDE 'doc-head-open.inc' %] | 1 | [% INCLUDE 'doc-head-open.inc' %] | 
        
          | 2 | <title>Koha › Patrons [% IF ( searching ) %]› Search results[% END %]</title> | 2 | <title>Koha › Patrons [% IF ( searching ) %]› Search results[% END %]</title> | 
        
          | 3 | [% INCLUDE 'doc-head-close.inc' %] | 3 | [% INCLUDE 'doc-head-close.inc' %] | 
            
              |  |  | 4 |  | 
            
              | 5 | <script type="text/javascript"> | 
            
              | 6 | //<![CDATA[ | 
            
              | 7 | $(document).ready(function() { | 
            
              | 8 |     $('#add_to_patron_list_submit').attr('disabled', 'disabled'); | 
            
              | 9 |     $('#new_patron_list').hide(); | 
            
              | 10 |  | 
            
              | 11 |     $('#add_to_patron_list').change(function() { | 
            
              | 12 |         var value = $('#add_to_patron_list').val(); | 
            
              | 13 |         if ( value == 'new' ) { | 
            
              | 14 |             $('#new_patron_list').val('') | 
            
              | 15 |             $('#new_patron_list').show(); | 
            
              | 16 |             $('#new_patron_list').focus(); | 
            
              | 17 |         } else if ( value ) { | 
            
              | 18 |             $('#new_patron_list').hide(); | 
            
              | 19 |             $('#add_to_patron_list_submit').removeAttr('disabled'); | 
            
              | 20 |         } else { | 
            
              | 21 |             $('#new_patron_list').hide(); | 
            
              | 22 |             $('#add_to_patron_list_submit').attr('disabled', 'disabled'); | 
            
              | 23 |         } | 
            
              | 24 |  | 
            
              | 25 |     }); | 
            
              | 26 |  | 
            
              | 27 |     $('#new_patron_list').on('input', function() { | 
            
              | 28 |         if ( $('#new_patron_list').val() ) { | 
            
              | 29 |             $('#add_to_patron_list_submit').removeAttr('disabled'); | 
            
              | 30 |         } else { | 
            
              | 31 |             $('#add_to_patron_list_submit').attr('disabled', 'disabled'); | 
            
              | 32 |         } | 
            
              | 33 |     }); | 
            
              | 34 | }); | 
            
              | 35 |  | 
            
              | 36 | function CheckForm() { | 
            
              | 37 |     if ( $('#add_to_patron_list').val() == 'new' ) { | 
            
              | 38 |         if ( $('#new_patron_list').val() ) { | 
            
              | 39 |             var exists = false; | 
            
              | 40 |             $("#add_to_patron_list option").each(function() { | 
            
              | 41 |                 if ( $(this).text() == $('#new_patron_list').val() ) { | 
            
              | 42 |                     exists = true; | 
            
              | 43 |                     return false; | 
            
              | 44 |                 } | 
            
              | 45 |             }); | 
            
              | 46 |  | 
            
              | 47 |             if ( exists ) { | 
            
              | 48 |                 alert( _("You already have a list with that name!") ); | 
            
              | 49 |                 return false; | 
            
              | 50 |             } | 
            
              | 51 |         } else { | 
            
              | 52 |             alert( _("You must give your new patron list a name!") ); | 
            
              | 53 |             return false; | 
            
              | 54 |         } | 
            
              | 55 |     } | 
            
              | 56 |  | 
            
              | 57 |     if ( $('#add_to_patron_list_which').val() == 'all' ) { | 
            
              | 58 |         return confirm( _("Are you sure you want to add the entire set of patron results to this list ( including results on other pages )?") ); | 
            
              | 59 |     } else { | 
            
              | 60 |          if ( $("#add-patrons-to-list-form input:checkbox:checked").length == 0 ) { | 
            
              | 61 |              alert( _("You have not selected any patrons to add to a list!") ); | 
            
              | 62 |              return false; | 
            
              | 63 |          } | 
            
              | 64 |     } | 
            
              | 65 |  | 
            
              | 66 |     return true; | 
            
              | 67 | } | 
            
              | 68 | //]]> | 
            
              | 69 | </script> | 
            
              | 70 |  | 
        
          | 4 | </head> | 71 | </head> | 
        
          | 5 | <body id="pat_member" class="pat"> | 72 | <body id="pat_member" class="pat"> | 
        
          | 6 | [% INCLUDE 'header.inc' %] | 73 | [% INCLUDE 'header.inc' %] | 
  
    | Lines 15-20
          
      
      
        Link Here | 
        
          | 15 | 		    <div class="yui-b"> | 82 | 		    <div class="yui-b"> | 
        
          | 16 | 				<div class="yui-g"> | 83 | 				<div class="yui-g"> | 
        
          | 17 |  | 84 |  | 
            
              |  |  | 85 |                 [% IF patron_list %] | 
            
              | 86 |                     <div class="dialog alert"> | 
            
              | 87 |                         Added [% patrons_added_to_list.size %] patrons to <a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% patron_list.patron_list_id %]">[% patron_list.name %]</a>. | 
            
              | 88 |                     </div> | 
            
              | 89 |                 [% END %] | 
            
              | 90 |  | 
        
          | 18 | 				[% INCLUDE 'patron-toolbar.inc' %] | 91 | 				[% INCLUDE 'patron-toolbar.inc' %] | 
        
          | 19 |  | 92 |  | 
        
          | 20 | 	[% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3> | 93 | 	[% IF ( no_add ) %]<div class="dialog alert"><h3>Cannot add patron</h3> | 
  
    | Lines 36-48
          
      
      
        Link Here | 
        
          | 36 |                         </div> | 109 |                         </div> | 
        
          | 37 |                     [% END %] | 110 |                     [% END %] | 
        
          | 38 |  | 111 |  | 
          
            
              | 39 | 						[% IF ( resultsloop ) %] | 112 |                     [% IF ( resultsloop ) %] | 
            
              | 40 | 						<div id="searchheader"> <h3>Results [% from %] to [% to %] of [% numresults %] found for [% IF ( member ) %]'<span class="ex">[% member %]</span>'[% END %][% IF ( surname ) %]'<span class="ex">[% surname %]</span>'[% END %]</h3></div> | 113 |                     <form id="add-patrons-to-list-form" method="post" action="member.pl" onsubmit="return CheckForm()"> | 
            
              |  |  | 114 |                         <div id="searchheader"> | 
            
              | 115 |                             <h3>Results [% from %] to [% to %] of [% numresults %] found for [% IF ( member ) %]'<span class="ex">[% member %]</span>'[% END %][% IF ( surname ) %]'<span class="ex">[% surname %]</span>'[% END %]</h3> | 
            
              | 116 |  | 
            
              | 117 |                             <div> | 
            
              | 118 |                                 <a href="javascript:void(0)" onclick="$('.selection').prop('checked', true)">Select all</a> | 
            
              | 119 |                                 | | 
            
              | 120 |                                 <a href="javascript:void(0)" onclick="$('.selection').prop('checked', false)">Clear all</a> | 
            
              | 121 |                                 | | 
            
              | 122 |                                 <span> | 
            
              | 123 |                                     <label for="add_to_patron_list_which">Add:</label> | 
            
              | 124 |                                     <select id="add_to_patron_list_which" name="add_to_patron_list_which"> | 
            
              | 125 |                                         <option value="selected">Selected patrons</option> | 
            
              | 126 |                                         <option value="all">All resultant patrons</option> | 
            
              | 127 |                                     </select> | 
            
              | 128 |  | 
            
              | 129 |                                     <label for="add_to_patron_list">to:</label> | 
            
              | 130 |                                     <select id="add_to_patron_list" name="add_to_patron_list"> | 
            
              | 131 |                                         <option value=""></option> | 
            
              | 132 |                                         [% IF patron_lists %] | 
            
              | 133 |                                             <optgroup label="Patron lists:"> | 
            
              | 134 |                                                 [% FOREACH pl IN patron_lists %] | 
            
              | 135 |                                                     <option value="[% pl.patron_list_id %]">[% pl.name %]</option> | 
            
              | 136 |                                                 [% END %] | 
            
              | 137 |                                             </optgroup> | 
            
              | 138 |                                         [% END %] | 
            
              | 139 |  | 
            
              | 140 |                                         <option value="new">[ New list ]</option> | 
            
              | 141 |                                     </select> | 
            
              | 142 |  | 
            
              | 143 |                                     <input type="text" id="new_patron_list" name="new_patron_list" id="new_patron_list" /> | 
            
              | 144 |  | 
            
              | 145 |                                     [% FOREACH key IN search_parameters.keys %] | 
            
              | 146 |                                         <input type="hidden" name="[% key %]" value="[% search_parameters.$key %]" /> | 
            
              | 147 |                                     [% END %] | 
            
              | 148 |  | 
            
              | 149 |                                     <input id="add_to_patron_list_submit" type="submit" class="submit" value="Save"> | 
            
              | 150 |                                 </span> | 
            
              | 151 |                             </div> | 
            
              | 152 |                         </div> | 
        
          | 41 | 						<div class="searchresults"> | 153 | 						<div class="searchresults"> | 
        
          | 42 |  | 154 |  | 
        
          | 43 | 							<table id="memberresultst"> | 155 | 							<table id="memberresultst"> | 
        
          | 44 | 							<thead> | 156 | 							<thead> | 
        
          | 45 | 							<tr> | 157 | 							<tr> | 
            
              |  |  | 158 |                             <th> </th> | 
        
          | 46 | 							<th>Card</th> | 159 | 							<th>Card</th> | 
        
          | 47 | 							<th>Name</th> | 160 | 							<th>Name</th> | 
        
          | 48 | 							<th>Cat</th> | 161 | 							<th>Cat</th> | 
  
    | Lines 65-70
          
      
      
        Link Here | 
        
          | 65 | 							<tr> | 178 | 							<tr> | 
        
          | 66 | 							[% END %] | 179 | 							[% END %] | 
        
          | 67 | 							[% END %] | 180 | 							[% END %] | 
            
              |  |  | 181 |                             <td><input type="checkbox" class="selection" name="borrowernumber" value="[% resultsloo.borrowernumber %]" /></td> | 
        
          | 68 | 							<td>[% resultsloo.cardnumber %]</td> | 182 | 							<td>[% resultsloo.cardnumber %]</td> | 
        
          | 69 |                             <td style="white-space: nowrap;"> | 183 |                             <td style="white-space: nowrap;"> | 
        
          | 70 |                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]"> | 184 |                             <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% resultsloo.borrowernumber %]"> | 
  
    | Lines 92-102
          
      
      
        Link Here | 
        
          | 92 | 							</table> | 206 | 							</table> | 
        
          | 93 | 							<div class="pages">[% IF ( multipage ) %][% paginationbar %][% END %]</div> | 207 | 							<div class="pages">[% IF ( multipage ) %][% paginationbar %][% END %]</div> | 
        
          | 94 | 						</div> | 208 | 						</div> | 
          
            
              | 95 | 						[% ELSE %] | 209 |                     </form> | 
            
              | 96 | 						[% IF ( searching ) %] | 210 |                     [% ELSE %] | 
            
              | 97 | 						<div class="dialog alert">No results found</div> | 211 |                         [% IF ( searching ) %] | 
            
              | 98 | 						[% END %] | 212 |                             <div class="dialog alert">No results found</div> | 
            
              | 99 | 						[% END %] | 213 |                         [% END %] | 
            
              |  |  | 214 |                     [% END %] | 
        
          | 100 |  | 215 |  | 
        
          | 101 | 					</div> | 216 | 					</div> | 
        
          | 102 | 				</div> | 217 | 				</div> |