Add some fields to records
This commit is contained in:
parent
131cd2ea1b
commit
ba6c6ac589
@ -15,6 +15,8 @@ namespace Txt2Bib.Records
|
|||||||
public byte Issue { get; init; } = 1;
|
public byte Issue { get; init; } = 1;
|
||||||
public ushort FirstPage { get; init; } = 1;
|
public ushort FirstPage { get; init; } = 1;
|
||||||
public ushort LastPage { get; init; } = 1;
|
public ushort LastPage { get; init; } = 1;
|
||||||
|
public string Doi { get; init; } = "";
|
||||||
|
public string Url { get; init; } = "";
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
@ -25,6 +27,8 @@ namespace Txt2Bib.Records
|
|||||||
$"\tvolume = \"{Volume}\",\n" +
|
$"\tvolume = \"{Volume}\",\n" +
|
||||||
$"\tnumber = \"{Issue}\",\n" +
|
$"\tnumber = \"{Issue}\",\n" +
|
||||||
$"\tpages = \"{FirstPage}--{LastPage}\",\n" +
|
$"\tpages = \"{FirstPage}--{LastPage}\",\n" +
|
||||||
|
$"\tdoi = \"{Doi}\",\n" +
|
||||||
|
$"\turl = \"{Url}\",\n" +
|
||||||
"}\n";
|
"}\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,6 +39,8 @@ namespace Txt2Bib.Records
|
|||||||
public string[] Author { get; init; } = { "Gianni e Pinotto" };
|
public string[] Author { get; init; } = { "Gianni e Pinotto" };
|
||||||
public string Title { get; init; } = "";
|
public string Title { get; init; } = "";
|
||||||
public string Publisher { get; init; } = "";
|
public string Publisher { get; init; } = "";
|
||||||
|
public string Place { get; init; } = "";
|
||||||
|
public string Url { get; init; } = "";
|
||||||
public ushort Year { get; init; } = 1950;
|
public ushort Year { get; init; } = 1950;
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
@ -42,7 +48,9 @@ namespace Txt2Bib.Records
|
|||||||
return $"@{Type}" + "{" +$"{Author[0][..5]}_{Year},\n" +
|
return $"@{Type}" + "{" +$"{Author[0][..5]}_{Year},\n" +
|
||||||
$"\ttitle = \"{Title}\",\n" +
|
$"\ttitle = \"{Title}\",\n" +
|
||||||
$"\tpublisher = \"{Publisher}\",\n" +
|
$"\tpublisher = \"{Publisher}\",\n" +
|
||||||
|
$"\taddress = \"{Place}\",\n" +
|
||||||
$"\tyear = \"{Year}\",\n" +
|
$"\tyear = \"{Year}\",\n" +
|
||||||
|
$"\turl = \"{Url}\",\n" +
|
||||||
"}\n";
|
"}\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user