- // TODO: display fixed info, not debug
- System.out.println(subtag);
+
+ String sp = "";
+ if (subtag.getParent() != null) {
+ List<String> parents = new ArrayList<String>();
+ for (SearchableTag parent = subtag.getParent(); parent != null; parent = parent
+ .getParent()) {
+ parents.add(parent.getName());
+ }
+ for (String parent : parents) {
+ if (!sp.isEmpty()) {
+ sp += " / ";
+ }
+ sp += parent;
+ }
+ }
+
+ // TODO: i18n
+ if (sp.isEmpty()) {
+ System.out.println(String.format(
+ "%d/%d: %s, %d %s", page, item,
+ subtag.getName(), subtag.getCount(),
+ "stories"));
+ } else {
+ System.out.println(String.format(
+ "%d/%d: %s (%s), %d %s", page, item,
+ subtag.getName(), sp,
+ subtag.getCount(), "stories"));
+ }