/[webpac2]/trunk/lib/WebPAC/Input.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/Input.pm

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

revision 909 by dpavlin, Tue Oct 30 01:46:41 2007 UTC revision 910 by dpavlin, Tue Oct 30 01:51:20 2007 UTC
# Line 532  sub stats { Line 532  sub stats {
532    
533                          if (defined($s->{sf}->{$f})) {                          if (defined($s->{sf}->{$f})) {
534                                  my @subfields = keys %{ $s->{sf}->{$f} };                                  my @subfields = keys %{ $s->{sf}->{$f} };
 warn "$f has subfields ",dump( @subfields );  
535                                  map {                                  map {
536                                          $o .= sprintf(" %s:%d%s", $_,                                          $o .= sprintf(" %s:%d%s", $_,
537                                                  $s->{sf}->{$f}->{$_}->{count},                                                  $s->{sf}->{$f}->{$_}->{count},
538                                                  $s->{sf}->{$f}->{$_}->{repeatable} ? '*' : '',                                                  $s->{sf}->{$f}->{$_}->{repeatable} ? '*' : '',
539                                          );                                          );
540                                  } (                                  } (
541                                          # first indicators                                          # first indicators and other special subfields
542                                          sort( grep(  /^i[12]$/, @subfields ) ),                                          sort( grep { length($_)  > 1 } @subfields ),
543                                          # then subfileds                                          # then subfileds (single char)
544                                          sort( grep( !/^i[12]$/, @subfields ) ),                                          sort( grep { length($_) == 1 } @subfields ),
545                                  );                                  );
546                          }                          }
547    

Legend:
Removed from v.909  
changed lines
  Added in v.910

  ViewVC Help
Powered by ViewVC 1.1.26