From c229d00a45c4e3e73316a5f54f7a5dd5f9f91002 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 19 Jun 2021 16:11:27 +0200 Subject: [PATCH] Improved parent URL display in craw journal view. --- src/fr/devinsy/statoolinfos/htmlize/CrawlJournalView.java | 7 +++++-- src/fr/devinsy/statoolinfos/htmlize/crawlJournal.xhtml | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/CrawlJournalView.java b/src/fr/devinsy/statoolinfos/htmlize/CrawlJournalView.java index dd76919..82830b2 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/CrawlJournalView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/CrawlJournalView.java @@ -64,10 +64,13 @@ public class CrawlJournalView int index = 0; for (CrawlLog log : journal) { - data.setEscapedContent("crawlLogLine", index, "crawlLogLineUrlLink", log.getUrl().toString()); - data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineUrlLink", "href", log.getUrl().toString()); data.setEscapedContent("crawlLogLine", index, "crawlLogLineParentUrlLink", StringUtils.abbreviate(log.getParentUrlValue(), 35)); data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineParentUrlLink", "href", StringUtils.defaultString(log.getParentUrlValue(), "#")); + data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineParentUrlLink", "title", StringUtils.defaultString(log.getParentUrlValue(), "#")); + + data.setEscapedContent("crawlLogLine", index, "crawlLogLineUrlLink", log.getUrl().toString()); + data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineUrlLink", "href", log.getUrl().toString()); + data.setContent("crawlLogLine", index, "crawlLogLineStatus", log.getStatus().toString()); if (log.getStatus().isError()) diff --git a/src/fr/devinsy/statoolinfos/htmlize/crawlJournal.xhtml b/src/fr/devinsy/statoolinfos/htmlize/crawlJournal.xhtml index 103691b..6621ca4 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/crawlJournal.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/crawlJournal.xhtml @@ -11,7 +11,7 @@ -
+

Journal des téléchargements

@@ -20,11 +20,11 @@
Date : n/a

-
+
- +
ParentParent URL Statut