| 
      
            Lines 109-114
          sub add_update_attribute_type {
      
      
        Link Here
      
     | 
  
        
          | 109 | 
              my $description               = $input->param('description'); | 
          109 | 
              my $description               = $input->param('description'); | 
        
        
          | 110 | 
              my $repeatable                = $input->param('repeatable')                ? 1 : 0; | 
          110 | 
              my $repeatable                = $input->param('repeatable')                ? 1 : 0; | 
        
        
          | 111 | 
              my $unique_id                 = $input->param('unique_id')                 ? 1 : 0; | 
          111 | 
              my $unique_id                 = $input->param('unique_id')                 ? 1 : 0; | 
        
            
               | 
               | 
              112 | 
                  my $trim_value                = $input->param('trim_value')                ? 1 : 0; | 
            
        
          | 112 | 
              my $is_date                   = $input->param('is_date')                   ? 1 : 0; | 
          113 | 
              my $is_date                   = $input->param('is_date')                   ? 1 : 0; | 
        
        
          | 113 | 
              my $opac_display              = $input->param('opac_display')              ? 1 : 0; | 
          114 | 
              my $opac_display              = $input->param('opac_display')              ? 1 : 0; | 
        
        
          | 114 | 
              my $opac_editable             = $input->param('opac_editable')             ? 1 : 0; | 
          115 | 
              my $opac_editable             = $input->param('opac_editable')             ? 1 : 0; | 
        
  
    | 
      
            Lines 146-151
          sub add_update_attribute_type {
      
      
        Link Here
      
     | 
  
        
          | 146 | 
                  { | 
          147 | 
                  { | 
        
        
          | 147 | 
                      repeatable                => $repeatable,  | 
          148 | 
                      repeatable                => $repeatable,  | 
        
        
          | 148 | 
                      unique_id                 => $unique_id,  | 
          149 | 
                      unique_id                 => $unique_id,  | 
        
            
               | 
               | 
              150 | 
                          trim_value                => $trim_value,  | 
            
        
          | 149 | 
                      is_date                   => $is_date,  | 
          151 | 
                      is_date                   => $is_date,  | 
        
        
          | 150 | 
                      opac_display              => $opac_display,  | 
          152 | 
                      opac_display              => $opac_display,  | 
        
        
          | 151 | 
                      opac_editable             => $opac_editable,  | 
          153 | 
                      opac_editable             => $opac_editable,  | 
        
  
    | 
      
            Lines 237-248
          sub edit_attribute_type_form {
      
      
        Link Here
      
     | 
  
        
          | 237 | 
                  $can_be_set_to_unique = 0 if $@;  | 
          239 | 
                  $can_be_set_to_unique = 0 if $@;  | 
        
        
          | 238 | 
                  $attr_type->unique_id(0);  | 
          240 | 
                  $attr_type->unique_id(0);  | 
        
        
          | 239 | 
              }  | 
          241 | 
              }  | 
        
            
               | 
               | 
              242 | 
                  my $can_be_trimmed = 1;  | 
            
            
              | 243 | 
                  if ( $attr_type->trim_value == 0 ) { | 
            
            
              | 244 | 
                      $attr_type->trim_value(1);  | 
            
            
              | 245 | 
                      eval {$attr_type->check_untrimmed_values}; | 
            
            
              | 246 | 
                      $can_be_trimmed = 0 if $@;  | 
            
            
              | 247 | 
                      $attr_type->trim_value(0);  | 
            
            
              | 248 | 
                  }  | 
            
        
          | 240 | 
              $template->param(  | 
          249 | 
              $template->param(  | 
        
        
          | 241 | 
                  attribute_type              => $attr_type,  | 
          250 | 
                  attribute_type              => $attr_type,  | 
        
        
          | 242 | 
                  attribute_type_form         => 1,  | 
          251 | 
                  attribute_type_form         => 1,  | 
        
        
          | 243 | 
                  edit_attribute_type         => 1,  | 
          252 | 
                  edit_attribute_type         => 1,  | 
        
        
          | 244 | 
                  can_be_set_to_nonrepeatable => $can_be_set_to_nonrepeatable,  | 
          253 | 
                  can_be_set_to_nonrepeatable => $can_be_set_to_nonrepeatable,  | 
        
        
          | 245 | 
                  can_be_set_to_unique        => $can_be_set_to_unique,  | 
          254 | 
                  can_be_set_to_unique        => $can_be_set_to_unique,  | 
        
            
               | 
               | 
              255 | 
                      can_be_trimmed              => $can_be_trimmed,  | 
            
        
          | 246 | 
                  confirm_op                  => 'cud-edit_attribute_type_confirmed',  | 
          256 | 
                  confirm_op                  => 'cud-edit_attribute_type_confirmed',  | 
        
        
          | 247 | 
                  categories                  => $patron_categories,  | 
          257 | 
                  categories                  => $patron_categories,  | 
        
        
          | 248 | 
              );  | 
          258 | 
              );  |