| Lines 23-28
          
      
      
        Link Here | 
        
          | 23 |             document.form.state.value=RegExp.$3; | 23 |             document.form.state.value=RegExp.$3; | 
        
          | 24 |             document.form.country.value=RegExp.$4; | 24 |             document.form.country.value=RegExp.$4; | 
        
          | 25 |         }); | 25 |         }); | 
            
              |  |  | 26 |  | 
            
              | 27 |         if ( $("#categorycode").length > 0 ){ | 
            
              | 28 |             update_category_code( $("#categorycode") ); | 
            
              | 29 |         } | 
            
              | 30 |  | 
        
          | 26 |     }); | 31 |     }); | 
        
          | 27 |  | 32 |  | 
        
          | 28 |     function clear_entry(node) { | 33 |     function clear_entry(node) { | 
  
    | Lines 51-56
          
      
      
        Link Here | 
        
          | 51 |         $("select#patron_attr_" + newId, clone).attr('value',''); | 56 |         $("select#patron_attr_" + newId, clone).attr('value',''); | 
        
          | 52 |         original.parentNode.insertBefore(clone, original.nextSibling); | 57 |         original.parentNode.insertBefore(clone, original.nextSibling); | 
        
          | 53 |     } | 58 |     } | 
            
              |  |  | 59 |  | 
            
              | 60 |     function update_category_code(node) { | 
            
              | 61 |         var category_type = $(node).find("option:selected").parents("optgroup").attr("value"); | 
            
              | 62 |         var mytable = $("#attributes_table>tbody"); | 
            
              | 63 |  | 
            
              | 64 |         mytable.find("tr").each(function(){ | 
            
              | 65 |             $(this).hide() | 
            
              | 66 |         }); | 
            
              | 67 |  | 
            
              | 68 |         mytable.find("tr[data-category_type="+category_type+"]").each(function(){ | 
            
              | 69 |             $(this).show(); | 
            
              | 70 |         }); | 
            
              | 71 |         mytable.find("tr[data-category_type='']").each(function(){ | 
            
              | 72 |             $(this).show(); | 
            
              | 73 |         }); | 
            
              | 74 |  | 
            
              | 75 |     } | 
            
              | 76 |  | 
        
          | 54 | 		var MSG_SEPARATOR = _("Separator must be / in field "); | 77 | 		var MSG_SEPARATOR = _("Separator must be / in field "); | 
        
          | 55 |         var MSG_INCORRECT_DAY = _("Invalid day entered in field "); | 78 |         var MSG_INCORRECT_DAY = _("Invalid day entered in field "); | 
        
          | 56 |         var MSG_INCORRECT_MONTH = _("Invalid month entered in field "); | 79 |         var MSG_INCORRECT_MONTH = _("Invalid month entered in field "); | 
  
    | Lines 890-914
          
      
      
        Link Here | 
        
          | 890 |     </li> | 913 |     </li> | 
        
          | 891 |     <li> | 914 |     <li> | 
        
          | 892 |         <label for="categorycode">Category: </label> | 915 |         <label for="categorycode">Category: </label> | 
          
            
              | 893 |         <select id="categorycode" name="categorycode"> | 916 |         <select id="categorycode" name="categorycode" onchange="update_category_code(this);"> | 
        
          | 894 |         [% FOREACH typeloo IN typeloop %] | 917 |         [% FOREACH typeloo IN typeloop %] | 
          
            
              | 895 | 			[% FOREACH categoryloo IN typeloo.categoryloop %] | 918 |             [% FOREACH categoryloo IN typeloo.categoryloop %] | 
            
              | 896 | 				[% IF ( loop.first ) %] | 919 |                 [% IF ( loop.first ) %] | 
            
              | 897 | 					[% IF ( categoryloo.typename_C ) %]<optgroup label="Child">[% END %] | 920 |                     [% IF ( categoryloo.typename_C ) %]<optgroup label="Child"        value="C">[% END %] | 
            
              | 898 | 					[% IF ( categoryloo.typename_A ) %]<optgroup label="Adult">[% END %] | 921 |                     [% IF ( categoryloo.typename_A ) %]<optgroup label="Adult"        value="A">[% END %] | 
            
              | 899 | 					[% IF ( categoryloo.typename_S ) %]<optgroup label="Staff">[% END %] | 922 |                     [% IF ( categoryloo.typename_S ) %]<optgroup label="Staff"        value="S">[% END %] | 
            
              | 900 | 					[% IF ( categoryloo.typename_I ) %]<optgroup label="Organization">[% END %] | 923 |                     [% IF ( categoryloo.typename_I ) %]<optgroup label="Organization" value="I">[% END %] | 
            
              | 901 | 					[% IF ( categoryloo.typename_P ) %]<optgroup label="Professional">[% END %] | 924 |                     [% IF ( categoryloo.typename_P ) %]<optgroup label="Professional" value="P">[% END %] | 
            
              | 902 | 					[% IF ( categoryloo.typename_X ) %]<optgroup label="Statistical">[% END %] | 925 |                     [% IF ( categoryloo.typename_X ) %]<optgroup label="Statistical"  value="X">[% END %] | 
            
              | 903 | 			    [% END %] | 926 |                 [% END %] | 
            
              | 904 | 				[% IF ( categoryloo.categorycodeselected ) %] | 927 |                 [% IF ( categoryloo.categorycodeselected ) %] | 
            
              | 905 |                <option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.categoryname %]</option> | 928 |                     <option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.categoryname %]</option> | 
            
              | 906 | 				[% ELSE %] | 929 |                 [% ELSE %] | 
            
              | 907 | <option value="[% categoryloo.categorycode %]">[% categoryloo.categoryname %]</option> | 930 |                     <option value="[% categoryloo.categorycode %]">[% categoryloo.categoryname %]</option> | 
            
              | 908 | 				[% END %] | 931 |                 [% END %] | 
            
              | 909 | 				[% IF ( loop.last ) %] | 932 |                 [% IF ( loop.last ) %] | 
            
              | 910 | 			        </optgroup> | 933 |                     </optgroup> | 
            
              | 911 | 				[% END %] | 934 |                 [% END %] | 
        
          | 912 |             [% END %] | 935 |             [% END %] | 
        
          | 913 |        [% END %] | 936 |        [% END %] | 
        
          | 914 |        </select> | 937 |        </select> | 
  
    | Lines 1139-1152
          
      
      
        Link Here | 
        
          | 1139 |   <fieldset class="rows" id="memberentry_patron_attributes"> | 1162 |   <fieldset class="rows" id="memberentry_patron_attributes"> | 
        
          | 1140 |     <input type="hidden" name="setting_extended_patron_attributes" value="1" /> | 1163 |     <input type="hidden" name="setting_extended_patron_attributes" value="1" /> | 
        
          | 1141 |     <legend>Additional attributes and identifiers</legend> | 1164 |     <legend>Additional attributes and identifiers</legend> | 
          
            
              | 1142 |     <table> | 1165 |     <table id="attributes_table"> | 
            
              | 1143 |         <tr> | 1166 |         <thead> | 
            
              | 1144 |             <th>Type</th> | 1167 |             <tr> | 
            
              | 1145 |             <th colspan="2">Value</th> | 1168 |                 <th>Class</th> | 
            
              | 1146 |         </tr> | 1169 |                 <th>Type</th> | 
            
              |  |  | 1170 |                 <th colspan="2">Value</th> | 
            
              | 1171 |             </tr> | 
            
              | 1172 |         </thead> | 
            
              | 1173 |         <tbody> | 
        
          | 1147 |         [% FOREACH patron_attribute IN patron_attributes %] | 1174 |         [% FOREACH patron_attribute IN patron_attributes %] | 
          
            
              | 1148 |         <tr> | 1175 |         <tr data-category_type="[% patron_attribute.category_type %]"> | 
            
              | 1149 |             <td>[% patron_attribute.code %] ([% patron_attribute.description %]) | 1176 |             <td>[% patron_attribute.class %]</td> | 
            
              |  |  | 1177 |             <td> | 
            
              | 1178 |                 [% patron_attribute.code %] ([% patron_attribute.description %]) | 
        
          | 1150 |             </td> | 1179 |             </td> | 
        
          | 1151 |             <td> | 1180 |             <td> | 
        
          | 1152 |                 <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" /> | 1181 |                 <input type="hidden" id="[% patron_attribute.form_id %]_code" name="[% patron_attribute.form_id %]_code" value="[% patron_attribute.code |html %]" /> | 
  
    | Lines 1187-1192
          
      
      
        Link Here | 
        
          | 1187 |             </td> | 1216 |             </td> | 
        
          | 1188 |         </tr> | 1217 |         </tr> | 
        
          | 1189 |         [% END %] | 1218 |         [% END %] | 
            
              |  |  | 1219 |         </tbody> | 
        
          | 1190 |     </table> | 1220 |     </table> | 
        
          | 1191 |   </fieldset> | 1221 |   </fieldset> | 
        
          | 1192 | [% END %][% END %][% END %] | 1222 | [% END %][% END %][% END %] |