/[webpac]/trunk/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

Contents of /trunk/marc_sf.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 90 - (show annotations)
Sun Jul 13 13:22:50 2003 UTC (16 years, 5 months ago) by dpavlin
File size: 316 byte(s)
repeatable fields (broken when other input formats where introduced) work
again

1 #
2 # get_sf($marc,'field'[,'subfield'])
3 #
4 # e.g. get_sf($row,'700','a')
5 #
6 sub get_sf {
7 my $marc = shift @_;
8 my $f = shift @_;
9 my $s = shift @_;
10
11 my $i = shift @_ || 0;
12
13 my @out = $marc->getvalue({record=>$marc->marc_count(),field=>$f,subfield=>$s,delimiter=>" "});
14 return $out[$i] if (@out && $out[$i]);
15 }
16
17 1;
18

Properties

Name Value
cvs2svn:cvs-rev 1.2

  ViewVC Help
Powered by ViewVC 1.1.26