Lines 1176-1201
sub _standard_request2biblio {
Link Here
|
1176 |
($record) = MarcToUTF8Record( $record, $marcflavour ); |
1176 |
($record) = MarcToUTF8Record( $record, $marcflavour ); |
1177 |
} |
1177 |
} |
1178 |
|
1178 |
|
1179 |
if ($isbn) { |
1179 |
my $marc_isbn; |
1180 |
my $marc_isbn = |
1180 |
my $marc_author; |
1181 |
$marcflavour eq 'MARC21' |
1181 |
my $marc_title; |
1182 |
? MARC::Field->new( '020', '', '', a => $isbn ) |
1182 |
|
1183 |
: MARC::Field->new( '010', '', '', a => $isbn ); |
1183 |
if( $marcflavour eq 'MARC21' ) { |
1184 |
$record->append_fields($marc_isbn); |
1184 |
$record->append_fields(MARC::Field->new( '020', '', '', a => $isbn )) if $isbn; |
1185 |
} |
1185 |
$record->append_fields(MARC::Field->new( '100', '1', '', a => $author )) if $author; |
1186 |
if ($author) { |
1186 |
$record->append_fields(MARC::Field->new( '245', '0', '0', a => $title )) if $title; |
1187 |
my $marc_author = |
1187 |
}elsif( $marcflavour eq 'UNIMARC' ) { |
1188 |
$marcflavour eq 'MARC21' |
1188 |
$record->append_fields(MARC::Field->new( '010', '', '', a => $isbn )) if $isbn; |
1189 |
? MARC::Field->new( '100', '1', '', a => $author ) |
1189 |
$record->append_fields(MARC::Field->new( '200', '', '', $title ? ( 'a' => $title ) : undef, $author ? ( 'f' => $author ) : undef)) if $author || $title; |
1190 |
: MARC::Field->new( '700', '1', '', a => $author ); |
|
|
1191 |
$record->append_fields($marc_author); |
1192 |
} |
1193 |
if ($title) { |
1194 |
my $marc_title = |
1195 |
$marcflavour eq 'MARC21' |
1196 |
? MARC::Field->new( '245', '0', '0', a => $title ) |
1197 |
: MARC::Field->new( '200', '0', '0', a => $title ); |
1198 |
$record->append_fields($marc_title); |
1199 |
} |
1190 |
} |
1200 |
|
1191 |
|
1201 |
# Suppress the record |
1192 |
# Suppress the record |
1202 |
- |
|
|