#
# marc_sf($marc,'field'[,'subfield'])
#
# e.g. marc_sf($row,'700','a')
#
sub marc_sf {
	my $marc = shift @_;
	my $f = shift @_;
	my $s = shift @_;

	my $i = shift @_ || 0;

	my @out = $marc->getvalue({record=>$marc->marc_count(),field=>$f,subfield=>$s,delimiter=>" "});
	return $out[$i] if (@out && $out[$i]);
}

1;

