| 
      
            Lines 114-119
          sub add_update_attribute_type {
      
      
        Link Here
      
     | 
  
        
          | 114 | 
              my $description               = $input->param('description'); | 
          114 | 
              my $description               = $input->param('description'); | 
        
        
          | 115 | 
              my $repeatable                = $input->param('repeatable') ? 1 : 0; | 
          115 | 
              my $repeatable                = $input->param('repeatable') ? 1 : 0; | 
        
        
          | 116 | 
              my $unique_id                 = $input->param('unique_id') ? 1 : 0; | 
          116 | 
              my $unique_id                 = $input->param('unique_id') ? 1 : 0; | 
        
            
               | 
               | 
              117 | 
                  my $trim_value                = $input->param('trim_value') ? 1 : 0; | 
            
        
          | 117 | 
              my $is_date                   = $input->param('is_date') ? 1 : 0; | 
          118 | 
              my $is_date                   = $input->param('is_date') ? 1 : 0; | 
        
        
          | 118 | 
              my $opac_display              = $input->param('opac_display') ? 1 : 0; | 
          119 | 
              my $opac_display              = $input->param('opac_display') ? 1 : 0; | 
        
        
          | 119 | 
              my $opac_editable             = $input->param('opac_editable') ? 1 : 0; | 
          120 | 
              my $opac_editable             = $input->param('opac_editable') ? 1 : 0; | 
        
  
    | 
      
            Lines 151-156
          sub add_update_attribute_type {
      
      
        Link Here
      
     | 
  
        
          | 151 | 
                  { | 
          152 | 
                  { | 
        
        
          | 152 | 
                      repeatable                => $repeatable,  | 
          153 | 
                      repeatable                => $repeatable,  | 
        
        
          | 153 | 
                      unique_id                 => $unique_id,  | 
          154 | 
                      unique_id                 => $unique_id,  | 
        
            
               | 
               | 
              155 | 
                          trim_value                => $trim_value,  | 
            
        
          | 154 | 
                      is_date                   => $is_date,  | 
          156 | 
                      is_date                   => $is_date,  | 
        
        
          | 155 | 
                      opac_display              => $opac_display,  | 
          157 | 
                      opac_display              => $opac_display,  | 
        
        
          | 156 | 
                      opac_editable             => $opac_editable,  | 
          158 | 
                      opac_editable             => $opac_editable,  | 
        
  
    | 
      
            Lines 240-251
          sub edit_attribute_type_form {
      
      
        Link Here
      
     | 
  
        
          | 240 | 
                  $can_be_set_to_unique = 0 if $@;  | 
          242 | 
                  $can_be_set_to_unique = 0 if $@;  | 
        
        
          | 241 | 
                  $attr_type->unique_id(0);  | 
          243 | 
                  $attr_type->unique_id(0);  | 
        
        
          | 242 | 
              }  | 
          244 | 
              }  | 
        
            
               | 
               | 
              245 | 
                  my $can_be_trimmed = 1;  | 
            
            
              | 246 | 
                  if ( $attr_type->trim_value == 0 ) { | 
            
            
              | 247 | 
                      $attr_type->trim_value(1);  | 
            
            
              | 248 | 
                      eval {$attr_type->check_untrimmed_values}; | 
            
            
              | 249 | 
                      $can_be_trimmed = 0 if $@;  | 
            
            
              | 250 | 
                      $attr_type->trim_value(0);  | 
            
            
              | 251 | 
                  }  | 
            
        
          | 243 | 
              $template->param(  | 
          252 | 
              $template->param(  | 
        
        
          | 244 | 
                  attribute_type => $attr_type,  | 
          253 | 
                  attribute_type => $attr_type,  | 
        
        
          | 245 | 
                  attribute_type_form => 1,  | 
          254 | 
                  attribute_type_form => 1,  | 
        
        
          | 246 | 
                  edit_attribute_type => 1,  | 
          255 | 
                  edit_attribute_type => 1,  | 
        
        
          | 247 | 
                  can_be_set_to_nonrepeatable => $can_be_set_to_nonrepeatable,  | 
          256 | 
                  can_be_set_to_nonrepeatable => $can_be_set_to_nonrepeatable,  | 
        
        
          | 248 | 
                  can_be_set_to_unique => $can_be_set_to_unique,  | 
          257 | 
                  can_be_set_to_unique => $can_be_set_to_unique,  | 
        
            
               | 
               | 
              258 | 
                      can_be_trimmed => $can_be_trimmed,  | 
            
        
          | 249 | 
                  confirm_op => 'cud-edit_attribute_type_confirmed',  | 
          259 | 
                  confirm_op => 'cud-edit_attribute_type_confirmed',  | 
        
        
          | 250 | 
                  categories => $patron_categories,  | 
          260 | 
                  categories => $patron_categories,  | 
        
        
          | 251 | 
              );  | 
          261 | 
              );  |