Skip to content

Commit

Permalink
Fixed formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-oconnell committed Apr 16, 2024
1 parent 291bff8 commit c8b09b5
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions thoth-export-server/src/marc21/marc21record_thoth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,22 @@ impl Marc21Field<Marc21RecordThoth> for WorkIssues {
.and_then(|f| {
f.add_subfield(b"v", format!("vol. {}.", self.issue_ordinal).as_bytes())
})
.and_then(|f|
self.series.issn_digital.as_ref()
.map_or(Ok(f.clone()), |issn_digital| f.add_subfield(b"x", issn_digital.as_bytes())))
.and_then(|f|
self.series.issn_print.as_ref()
.map_or(Ok(f.clone()), |issn_print| f.add_subfield(b"x", issn_print.as_bytes())))
.and_then(|f| {
self.series
.issn_digital
.as_ref()
.map_or(Ok(f.clone()), |issn_digital| {
f.add_subfield(b"x", issn_digital.as_bytes())
})
})
.and_then(|f| {
self.series
.issn_print
.as_ref()
.map_or(Ok(f.clone()), |issn_print| {
f.add_subfield(b"x", issn_print.as_bytes())
})
})
.and_then(|f| builder.add_field(f))?;
}
Ok(())
Expand Down

0 comments on commit c8b09b5

Please sign in to comment.