tui: story reader: fix metadata list
authorNiki Roo <niki@nikiroo.be>
Wed, 13 Mar 2019 08:04:38 +0000 (09:04 +0100)
committerNiki Roo <niki@nikiroo.be>
Wed, 13 Mar 2019 08:04:38 +0000 (09:04 +0100)
src/be/nikiroo/fanfix/reader/tui/TuiReaderStoryWindow.java

index 04d38c507c46187e3478ee5329b64705a407a2c3..79840b9d20071b418c16b8022558d708de3c5699 100644 (file)
@@ -172,11 +172,24 @@ class TuiReaderStoryWindow extends TWindow {
 
                setCurrentTitle(meta.getTitle());
 
+               StringBuilder tags = new StringBuilder();
+               for (String tag : meta.getTags()) {
+                       if (tags.length() > 0) {
+                               tags.append(", ");
+                       }
+                       tags.append(tag);
+               }
+
                table.setRowData(new String[][] { //
                                new String[] { " Author", meta.getAuthor() }, //
                                new String[] { " Publication date", formatDate(meta.getDate()) },
+                               new String[] { " Published on", meta.getPublisher() },
+                               new String[] { " URL", meta.getUrl() },
                                new String[] { " Word count", format(meta.getWords()) },
-                               new String[] { " Source", meta.getSource() } //
+                               new String[] { " Source", meta.getSource() },
+                               new String[] { " Subject", meta.getSubject() },
+                               new String[] { " Language", meta.getLang() },
+                               new String[] { " Tags", tags.toString() } //
                });
                table.setHeaders(Arrays.asList("key", "value"), false);
                table.toTop();