projects
/
webpac
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
renamed get_sf to (isis|marc)_sf to avoid warning abouts re-definining of
[webpac]
/
marc_sf.pm
1
#
2
# marc_sf($marc,'field'[,'subfield'])
3
#
4
# e.g. marc_sf($row,'700','a')
5
#
6
sub marc_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