/[webpac]/branches/drustvene/marc_sf.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 /branches/drustvene/marc_sf.pm

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

revision 335 by dpavlin, Wed Jun 2 16:13:57 2004 UTC revision 605 by dpavlin, Mon Dec 27 22:16:30 2004 UTC
# Line 10  sub marc_sf { Line 10  sub marc_sf {
10    
11          my $i = shift @_ || 0;          my $i = shift @_ || 0;
12    
13          my $rec = $main::cache->{marc_record} || die '$cache->{marc_record} is undefined!';          my @out;
14            if ($s) {
15          my @out = $marc->getvalue({record=>$rec,field=>$f,subfield=>$s});                  @out = $marc->subfield($f,$s);
16            } else {
17                    @out = $marc->field($f);
18            }
19    
20          return $out[$i] if (@out && $out[$i]);          return $out[$i] if (@out && $out[$i]);
21  }  }

Legend:
Removed from v.335  
changed lines
  Added in v.605

  ViewVC Help
Powered by ViewVC 1.1.26