/[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

Annotation of /trunk/marc_sf.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 139 - (hide annotations)
Wed Oct 29 23:19:58 2003 UTC (16 years, 1 month ago) by dpavlin
File size: 305 byte(s)
removed unneeded delimiter parametar

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

Properties

Name Value
cvs2svn:cvs-rev 1.4

  ViewVC Help
Powered by ViewVC 1.1.26