Skip to content

Commit acb33a9

Browse files
committed
Biblatex type to genre, number to serial for report, patent, entry, reference.
1 parent a9d855b commit acb33a9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/interop.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,12 @@ impl TryFrom<&tex::Entry> for Entry {
397397
if let Some(parent) = book(&mut item, parent) {
398398
parent.set_issue(number);
399399
} else {
400-
item.set_issue(number);
400+
match item.entry_type {
401+
EntryType::Report | EntryType::Patent | EntryType::Entry | EntryType::Reference => {
402+
item.set_keyed_serial_number("serial", number.to_string())
403+
}
404+
_ => item.set_issue(number),
405+
}
401406
}
402407
}
403408

@@ -558,6 +563,10 @@ impl TryFrom<&tex::Entry> for Entry {
558563
item.set_abstract_(abstract_.into())
559564
}
560565

566+
if let Some(type_) = map_res(entry.type_())? {
567+
item.set_genre(type_.into());
568+
}
569+
561570
if let Some(series) = map_res(entry.series())? {
562571
let title: FormatString = series.into();
563572
let mut new = Entry::new(&entry.key, item.entry_type);

0 commit comments

Comments
 (0)