From df723409a18334f0b1faf7308ee1cad0e42a6f07 Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Tue, 29 Nov 2011 22:41:42 +0000 Subject: [PATCH] Support for markup in citation date column in citation tree and list views svn: r18537 --- src/plugins/view/citationlistview.py | 5 ++++- src/plugins/view/citationtreeview.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/plugins/view/citationlistview.py b/src/plugins/view/citationlistview.py index ce4ddbc60..28dcce52c 100644 --- a/src/plugins/view/citationlistview.py +++ b/src/plugins/view/citationlistview.py @@ -104,6 +104,8 @@ class CitationListView(ListView): _('Source: Publication Information'), _('Source: Last Changed'), ] + # columns that contain markup + MARKUP_COLS = [COL_DATE] # default setting with visible columns, order of the col, and their size CONFIGSETTINGS = ( ('columns.visible', [COL_TITLE_PAGE, COL_ID, COL_DATE, @@ -138,7 +140,8 @@ class CitationListView(ListView): dbstate.db.get_citation_bookmarks(), Bookmarks.CitationBookmarks, nav_group, multiple=True, - filter_class=CitationSidebarFilter) + filter_class=CitationSidebarFilter, + markup = CitationListView.MARKUP_COLS) self.func_list.update({ 'J' : self.jump, diff --git a/src/plugins/view/citationtreeview.py b/src/plugins/view/citationtreeview.py index f0c367327..b59cdd017 100644 --- a/src/plugins/view/citationtreeview.py +++ b/src/plugins/view/citationtreeview.py @@ -104,6 +104,8 @@ class CitationTreeView(ListView): COL_SRC_ABBR, COL_SRC_PINFO ] + # columns that contain markup + MARKUP_COLS = [COL_DATE] # default setting with visible columns, order of the col, and their size CONFIGSETTINGS = ( ('columns.visible', [COL_TITLE_PAGE, COL_ID, COL_SRC_AUTH, @@ -142,7 +144,8 @@ class CitationTreeView(ListView): dbstate.db.get_citation_bookmarks(), Bookmarks.CitationBookmarks, nav_group, multiple=True, - filter_class=SourceSidebarFilter) + filter_class=SourceSidebarFilter, + markup = CitationTreeView.MARKUP_COLS) self.func_list.update({ 'J' : self.jump,