Skip to content

Commit

Permalink
fix author/title field getting mixed up
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlogic committed Jan 27, 2024
1 parent c95d271 commit 52292b9
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 21 deletions.
46 changes: 46 additions & 0 deletions docs/refs2.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@Book{functionalAnalysisYosida,
author = {吉田 耕作(Kōsaku Yosida)},
title = {Functional Analysis},
year = {1995},
publisher = {Springer Berlin Heidelberg},
series = {Classics in Mathematics},
edition = {Reprint of the 1980 Edition}}

@Book{linearTransformationsInHilbertSpace,
author = {Marshall Harvey Stone},
title = {Linear Transformations in Hilbert Space},
year = {1932},
publisher = {American Mathematical Society},
address = {501 West 116th Street},
series = {Colloquium Publications},
edition = {4th Printing (1951)},
volume = {XV}}

@Article{orthogonalPolynomialFourierTransforms,
author = {Dixit, Atul and Jiu, Lin and Moll, Victor H and Vignat, Christophe},
title = {The finite Fourier transform of classical polynomials},
year = {2015},
journal = {Journal of the Australian Mathematical Society},
publisher = {Cambridge University Press}}

@Book{functionalAnalysisRieszNagy,
author = {Frigyes Riesz and Béla Sz.-Nagy},
title = {Functional Analysis},
year = {2012},
publisher = {Dover Publications},
series = {Dover Books on Mathematics}}

@Book{stochasticFiniteElements,
author = {Ghanem, Roger G. and Spanos, Pol D.},
title = {Stochastic finite elements: a spectral approach},
year = {1991},
publisher = {Springer-Verlag},
address = {Berlin, Heidelberg}}

@Book{stochasticProcessInferenceTheory,
author = {Malempati M. Rao},
title = {Stochastic Processes: Inference Theory},
year = {2014},
publisher = {Springer},
series = {Springer Monographs in Mathematics},
edition = {2nd}}
4 changes: 2 additions & 2 deletions src/main/java/arb/documentation/Article.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public String cite(String by)
.replace(",}", "}");
}

public Article(String author, String title, String year, String journal, String volume, String address)
public Article(String author, String title, String year, String journal, String volume, String pages)
{
this(author,
title,
year,
journal,
new AtomicReference<>(volume),
address,
pages,
new AtomicReference<>(),
new AtomicReference<>());
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/arb/documentation/Bibliography.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
public class Bibliography extends
AbstractBibliography
{
public Book functionalAnalysisYosida = new Book("Functional Analysis",
"吉田 耕作(Kōsaku Yosida)",
public Book functionalAnalysisYosida = new Book("吉田 耕作(Kōsaku Yosida)",
"Functional Analysis",
"1995").setPublisher("Springer Berlin Heidelberg")
.setSeries("Classics in Mathematics")
.setEdition("Reprint of the 1980 Edition");

public Book linearTransformationsInHilbertSpace = new Book("Linear Transformations in Hilbert Space",
"Marshall Harvey Stone",
public Book linearTransformationsInHilbertSpace = new Book("Marshall Harvey Stone",
"Linear Transformations in Hilbert Space",
"1932").setEdition("4th Printing (1951)")
.setVolume("XV")
.setSeries("Colloquium Publications")
Expand All @@ -29,8 +29,8 @@ public class Bibliography extends
"98",
"145--160").setPublisher("Cambridge University Press");

public Book functionalAnalysisRieszNagy = new Book("Functional Analysis",
"Frigyes Riesz and Béla Sz.-Nagy",
public Book functionalAnalysisRieszNagy = new Book("Frigyes Riesz and Béla Sz.-Nagy",
"Functional Analysis",
"2012").setPublisher("Dover Publications")
.setSeries("Dover Books on Mathematics");

Expand All @@ -39,8 +39,8 @@ public class Bibliography extends
"1991").setPublisher("Springer-Verlag")
.setAddress("Berlin, Heidelberg");

public Book stochasticProcessInferenceTheory = new Book("Stochastic Processes: Inference Theory",
"Malempati M. Rao",
public Book stochasticProcessInferenceTheory = new Book("Malempati M. Rao",
"Stochastic Processes: Inference Theory",
"2014").setPublisher("Springer")
.setEdition("2nd")
.setSeries("Springer Monographs in Mathematics");
Expand Down
24 changes: 13 additions & 11 deletions src/main/java/arb/documentation/Book.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ public record Book(String author,
implements
Reference
{

public Book(String author, String title, String year)
{
this(author,
title,
year,
new AtomicReference<>(),
new AtomicReference<>(),
new AtomicReference<>(),
new AtomicReference<>(),
new AtomicReference<>());
}

public String cite(String by)
{
Expand All @@ -29,17 +41,7 @@ public String cite(String by)
.replace(",}", "}");
}

public Book(String author, String title, String year)
{
this(author,
title,
year,
new AtomicReference<>(),
new AtomicReference<>(),
new AtomicReference<>(),
new AtomicReference<>(),
new AtomicReference<>());
}


@Override
public Book setPublisher(String string)
Expand Down

0 comments on commit 52292b9

Please sign in to comment.