/[webpac2]/trunk/lib/WebPAC/Validate.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/WebPAC/Validate.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 646 by dpavlin, Wed Sep 6 22:42:37 2006 UTC revision 647 by dpavlin, Wed Sep 6 23:13:03 2006 UTC
# Line 199  sub validate_errors { Line 199  sub validate_errors {
199    
200                                          if ( defined( $self->{must_exist_sf}->{$f} ) ) {                                          if ( defined( $self->{must_exist_sf}->{$f} ) ) {
201                                                  foreach my $sf (sort keys %{ $self->{must_exist_sf}->{$f} }) {                                                  foreach my $sf (sort keys %{ $self->{must_exist_sf}->{$f} }) {
202  warn "====> $f $sf must exist\n";  #warn "====> $f $sf must exist\n";
203                                                          push @errors, "$f missing required subfield $sf"                                                          push @errors, "$f missing required subfield $sf"
204                                                                  unless (                                                                  unless (
205                                                                          defined( $subfields->{$f} ) &&                                                                          defined( $subfields->{$sf} )
                                                                         defined( $subfields->{$f}->{$sf} )  
206                                                                  )                                                                  )
207                                                  }                                                  }
208                                          }                                          }

Legend:
Removed from v.646  
changed lines
  Added in v.647

  ViewVC Help
Powered by ViewVC 1.1.26