This commit is contained in:
wangjinlei
2023-07-05 17:34:02 +08:00
parent fcb7122d7a
commit e6f5d4f6a4

View File

@@ -596,7 +596,8 @@ public class TypesetController {
// System.out.println(a.getString("author"));
// String tttt = String.valueOf(tif).replace("<b>", "").replace("</b>", "").replace("<i>", "").replace("</i>", "").trim().toUpperCase();
if (!a.getString("title").isEmpty()) {
// if (!a.getString("title").isEmpty()) {
if (a.getString("refer_type").equals("journal")) {
ParagraphRenderData chc_pdd = new ParagraphRenderData();
Style chch = new Style();
chch.setFontFamily("Charis SIL");
@@ -621,7 +622,25 @@ public class TypesetController {
chc_pdd.addText("\n");
chc_pdd.addText(new TextRenderData(a.getString("doilink"), lstitle));
refsl.add(chc_pdd);
} else {
}else if(a.getString("refer_type").equals("book")){
ParagraphRenderData chc_pd = new ParagraphRenderData();
Style chch = new Style();
chch.setFontFamily("Charis SIL");
chch.setFontSize(7.5);
chch.setColor("f98f36");
Style cheche = new Style();
cheche.setItalic(true);
cheche.setFontFamily("Charis SIL");
cheche.setFontSize(7.5);
chc_pd.addText(new TextRenderData(a.getString("author") + " ", chch));
chc_pd.addText(new TextRenderData(a.getString("title") + ". ", chch));
chc_pd.addText(new TextRenderData(a.getString("dateno") + ". ", chch));
chc_pd.addText(new TextRenderData(a.getString("isbn"), chch));
refsl.add(chc_pd);
}else {
ParagraphRenderData chc_pd = new ParagraphRenderData();
// String tgh_title = String.valueOf(tif).replace("<b>", "").replace("</b>", "").replace("<i>", "").replace("</i>", "");